How to get Text and print by xpath
xpath is = //*[@id=‘tblDefaultAgents’]/tbody/tr[td[normalize-space()=’${Name}’]]/td[2]
kindly help
How to get Text and print by xpath
xpath is = //*[@id=‘tblDefaultAgents’]/tbody/tr[td[normalize-space()=’${Name}’]]/td[2]
kindly help
Have a look at the following post
This post includes a description how to interpolate a placeholder ${ptn} in a XPath of a TestObject with value supplied to findTestObject(path, params) call.
In you test script, you should have a line like
for (name in ["John", "Mark", "Stephen"]) {
....
WebUI.verifyElementPresent(
findTestObject("test object name", ["Name": name]),
10)
...
}