In my opinion this is the perfect example for an relative locator. An example which uses a page with a table on demo.borland.com: transaction TMain var wnd1 : number; begin BrowserStart(BROWSER_MODE_DEFAULT, 1104, 497); wnd1 := BrowserGetActiveWindow("wnd1"); BrowserNavigate("http://demo.borland.com/testsite/download_testpage.php", "Navigate_http://demo.borland.com/testsite/download_testpage.php (#1)"); BrowserVerifyProperty(" //td[@textContents='3rdPartyLicenseTexts*']/..//td[2] ", "textContents", "295389", VERIFY_EQUAL, SEVERITY_ERROR); end TMain; This example verifies the value in the second column of the row in which the first column contains the text " 3rdPartyLicenseTexts". The ".." in the locator goes up one level to the parent tag, in this case the row tag " tr " . Then the locator selects the second "td" tag in the row. Hope that helps, Philip
↧