Help finding table cell using locator after tableCellAddress finds the cell
Posted
by
Greg Weinman
on Stack Overflow
See other posts from Stack Overflow
or by Greg Weinman
Published on 2011-01-07T00:16:16Z
Indexed on
2011/01/07
3:53 UTC
Read the original article
Hit count: 301
Hi All, I have a JSP page populated by javascript resulting in a typical table element cascade . After population I see the text I want using
getTable("tableLister.listTable.1.1")
The table also has a class=clsDisplayTableBody.
I want to click the check box in column 0 for the row of interest. However, all of these tests fail
isElementPresent("//*[text()="+cellContents+"]/../td[0]"))
isElementPresent("//table[@class='clsDisplayTableBody']//tr[1]/td[0]"))
isElementPresent("css='clsDisplayTableBody' tr:nth-child(1) td:nth-child(0)"))
isElementPresent("//xpath=id('tableLister.listTable')/descendant::tr[1]/descendant::td[0]"))
isElementPresent("//table[@id='tableLister.listTable']//tbody/tr[1]/td[0]"))
isElementPresent("//table[@id='tableLister.listTable']//tr[1]/td[0]"))
Is there anything else I could try? Regards, Greg Weinman
© Stack Overflow or respective owner