java - Search a text in a table in my Website - using my selenium code -


i created selenium code automatized tests in website.

in 1 screen run query, , system shows in ie screen result of query, table.

and need select , click on line of table.

i try using code below, result in eclipse cannot find element 0531025836 though it's present in table results on screen.

driver.findelement(by.xpath("//td[contains(.,'0531025836')]")).click(); 

i've never seen xpath before (but i'm not proficient xpath compared here).

if looking statement select element text, try //td[.='0531025836'].

if looking statement select element containing text, try //td[contains(text(),'0531025836')]


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -