Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Accessing Links with in DIV
#1
Not Solved
Hi Guys,

Can any one tell me the way to access multiple links which are placed with in the DIV in a Webtable or Web based application ...I have attached the sample code with this thread....please help me to sort out this issue ............

I have placed the same code below.

Code:
<div id="vertmenustyle1">

<ul class="sitemapul">

<li><div class="menuWrapper0"><a href="c-2-apparel.aspx" onMouseOver="divMenu.show('sc_tab1', this, 100, 0);" onMouseOut="divMenu.hide('sc_tab1');">Apparel</a></div></li>

<li><div class="menuWrapper0"><a href="c-14-books-and-dvds.aspx">Books and DVDs</a></div></li>

<li><div class="menuWrapper0"><a href="c-3-footwear.aspx" onMouseOver="divMenu.show('sc_tab5', this, 100, 0);" onMouseOut="divMenu.hide('sc_tab5');">Footwear</a></div></li>

<li><div class="menuWrapper0"><a href="c-11-gifts.aspx" onMouseOver="divMenu.show('sc_tab6', this, 100, 0);" onMouseOut="divMenu.hide('sc_tab6');">Gifts</a></div></li>

<li><div class="menuWrapper0"><a href="c-6-grooming.aspx" onMouseOver="divMenu.show('sc_tab7', this, 100, 0);" onMouseOut="divMenu.hide('sc_tab7');">Grooming</a></div></li>

<li><div class="menuWrapper0"><a href="c-4-horse-apparel.aspx" onMouseOver="divMenu.show('sc_tab8', this, 100, 0);" onMouseOut="divMenu.hide('sc_tab8');">Horse Apparel</a></div></li>

<li><div class="menuWrapper0"><a href="c-8-stable-supplies.aspx" onMouseOver="divMenu.show('sc_tab2', this, 100, 0);" onMouseOut="divMenu.hide('sc_tab2');">Stable Supplies</a></div></li>

<li><div class="menuWrapper0"><a href="c-7-horse-health-care.aspx">Health Care</a></div></li>

<li><div class="menuWrapper0"><a href="c-5-tack-and-strap-goods.aspx" onMouseOver="divMenu.show('sc_tab10', this, 100, 0);" onMouseOut="divMenu.hide('sc_tab10');">Tack & Strap</a></div></li>

</ul>

</div>
Reply
#2
Not Solved
Sorry ,
can you explain it in a better way.
Reply
#3
Not Solved
Hi sri,


Let me explain in detail, how to access the links that are inside the DIV.
my problem is, i am not able access the links inside the table that table contain only one row( i mean all links are in one cell).


source code-----
Code:
<table width="900" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="leftWrap" valign="top">

                        
                        <div class="leftNav">
                        
                                                    
                            <p>
                            SHOP BY:<br />
                            <img src="skins/Skin_1/images/header_category.gif" alt="Category" />
                            <div id="vertmenustyle1">
                                <ul class="sitemapul">
                                    <li><div class="menuWrapper0">[b]<a href="c-2-apparel.aspx" onMouseOver="divMenu.show('sc_tab1', this, 100, 0);" onMouseOut="divMenu.hide('sc_tab1');">Apparel</a>[/b]</div></li>
                                    <li><div class="menuWrapper0">[b]<a href="c-14-books-and-dvds.aspx">Books and DVDs</a>[/b]</div></li>
                                    <li><div class="menuWrapper0">[b]<a href="c-3-footwear.aspx" onMouseOver="divMenu.show('sc_tab5', this, 100, 0);" onMouseOut="divMenu.hide('sc_tab5');">Footwear</a>[/b]</div></li>
                                    <li><div class="menuWrapper0"><a href="c-11-gifts.aspx" onMouseOver="divMenu.show('sc_tab6', this, 100, 0);" onMouseOut="divMenu.hide('sc_tab6');">Gifts</a></div></li>
                                    <li><div class="menuWrapper0"><a href="c-6-grooming.aspx" onMouseOver="divMenu.show('sc_tab7', this, 100, 0);" onMouseOut="divMenu.hide('sc_tab7');">Grooming</a></div></li>
                                    <li><div class="menuWrapper0"><a href="c-4-horse-apparel.aspx" onMouseOver="divMenu.show('sc_tab8', this, 100, 0);" onMouseOut="divMenu.hide('sc_tab8');">Horse Apparel</a></div></li>
                                    <li><div class="menuWrapper0"><a href="c-8-stable-supplies.aspx" onMouseOver="divMenu.show('sc_tab2', this, 100, 0);" onMouseOut="divMenu.hide('sc_tab2');">Stable Supplies</a></div></li>
                                    <li><div class="menuWrapper0"><a href="c-7-horse-health-care.aspx">Health Care</a></div></li>
                                    <li><div class="menuWrapper0"><a href="c-5-tack-and-strap-goods.aspx" onMouseOver="divMenu.show('sc_tab10', this, 100, 0);" onMouseOut="divMenu.hide('sc_tab10');">Tack & Strap</a></div></li>
                                </ul>
                            </div></td></tr>
</table>


Now How to access those links
Reply
#4
Not Solved
hi ,
u said..that u are NOt able access the links inside the table that table contain only one row( i mean all links are in one cell).

Just check with "ChildItem" method......for accessing the links given in one cell ....
Reply
#5
Not Solved
Hi Sree,

when we use childtem it will access the first link.But how to access the remaining links.

Code:
RC = Browser("Browser").Page("Page").WebTable(TN).RowCount
   CC = Browser("Browser").Page("Page").WebTable(TN).ColumnCount(1)

RC and CC values is 1.

when we try get the cell data ie 1,1 it show 10 links.(with in the one cell)
Now tell me how to access the remaining links

Thanks.,
Prasanna,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] Get text into DIV through HTML tag robertosalemi 2 5,517 03-29-2016, 09:43 PM
Last Post: robertosalemi
  [UFT] Len of DIV founded by ClassName robertosalemi 0 2,301 01-19-2016, 08:18 PM
Last Post: robertosalemi
  Accessing Environment variable value in Library file vishruth143 1 2,563 09-07-2013, 05:11 AM
Last Post: jacosta
  ACCESSING OBJECR REPOSITORY SHARED ONE babukaturi 1 2,537 04-03-2012, 12:03 PM
Last Post: sshukla12
  Accessing an array returned from a function sqadri 2 5,644 03-28-2012, 09:31 PM
Last Post: sqadri

Forum Jump:


Users browsing this thread: 1 Guest(s)