Thursday, 15 August 2013

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

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

I create a selenium code that automatized a tests in my website.
in one screen I run a query, and system show im myh IE screnn the result
of this query, as a table.
And then I need to select and click in a line of this table.
I try do this using the code below, but the result in Eclipse is that
cannot found the element 0531025836 that I chack and was present in the
table results in my screen.
driver.findElement(By.xpath("//td[contains(.,'0531025836')]")).click();
Thanks

No comments:

Post a Comment