Quality Testing

Quality is delighting customers

How to get an element from a table in selenium 1.0

I have a html table of contents,with some 10rows for an example take the table name as fruits.


I need to search the fruitname apple in the fruits table.


the fruitname is a variable it can be anything today it is apple and the next it can be orange.


i can use selenium.iselementpresent("apple"),it searches in the wholepage i want to search only in the particular table in the page.


Need a solution urgently,any ideas on this?




Views: 184

Reply to This

Replies to This Discussion

hi u can try like this:




Thanks alot
did you try getTable in selenium.if table is static!,meaning no changes in rows and columns!


TTWT Magazine





© 2021   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service