Quality Testing

Quality is delighting customers

Hi all,

I have a page where heading and in that so many tags will be listed.

the code is shown here:

 

<div>
<h4>Phones</h4>
</div>
</td>
</tr>
<tr>
<td>
<a places="4" value="8" href="#">Bangalore </a>
</td>
</tr>

I need to know how many links are present in heading

Because as mentioned in code,we may have so many places as shown:

<a places="4" value="10" href="#">hyderabad</a>

<a places="4" value="15" href="#">bombay </a>

<a places="4" value="18" href="#">pune </a>

 

all these will list under heading.

 

can i know how many links present under heading using selenium ide..

Thanks in advance.

Views: 176

Reply to This

Replies to This Discussion

Hi,

 

You can use 'storeXpathCount' command to take the count

 

give command as         'storeXpathCount'

 

and give locator as      Xpath till 'a'

 

 

-S Sarita.

 

 

 

HI sarita

Could u pls explain how can i use storexepath and what its benefit .

Hi Saritha,

 

Could you please explain for the code i have mentioned..

 

Thanks a lot,

Niru

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2021   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service