Forum Discussion
rraghvani
2 years agoChampion Level 3
Here's an example based on the following website https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_tr,
function Test()
{
var page = Aliases.browser.Page("https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_tr").FindElement("#iframeResult")
// Highlight Month
var element = page.FindElement("/html/body/table/tbody/tr[1]/th[1]");
Sys.HighlightObject(element);
// Highlight $80
var element = page.FindElement("/html/body/table/tbody/tr[3]/td[2]");
Sys.HighlightObject(element);
}
It uses XPath to find the element and then highlights it.
Related Content
- 5 years ago
Recent Discussions
- 18 hours ago