Hi, Sorry for beeing not clear enough. The easiest way to find suitable locators is via the "Locator Spy" in the Browser Application (Step by Step TryScript or Tools / Browser Application). 1st: You need the locator to the cell with the text/keyword (in the example above this is " //td[@textContents='3rdPartyLicenseTexts*'] " 2nd: You need the relative upwards path to the row tag (" tr "). In the example above this is " /.. " but in your example it may also be " /../.. ". Each " /.. " goes one level up to the parent tag. 3nd: You need the locators to the checkbox relative to the row. In the example above this is " //td[2] ". In your example it may be " //INPUT[@id='cphCenterMiddle_grvB*'] ". 4th: Combine the parts. In the example above this is " //td[@textContents='3rdPartyLicenseTexts*']/..//td[2] ". In your case this might look different. Here ist a screenshot to make it more clear:
↧