Quality Testing

Quality is delighting customers

How to find out the total no. of links present in the web page by using SeleniumRC

Pleas suggest me

Views: 159

Reply to This

Replies to This Discussion


You can try it with using "get_xpath_Count" function.

Thanks and regards

Amit Nimje :Infocepts PVT LTD

Thank you for response @ Amit Nimje Infocepts

You should start by clarifying what language you are using.  This would determine the answer.  If you are using Ruby then you could simply do this:

    find_elements(:tag_name, 'a').size

The first part will find all elements on the page that has the tag name of 'a'.  a is an anchor which is a link.  The final part will return the count of the number returned.


TTWT Magazine





© 2021   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service