New to Silktest and to this forum.
I am writing a validation script using ST Classic Agent, v15.5.
I have having difficulty resolving a hidden icon (the repurporsed <I> tag in html). The intent of the page is when you hover over the icon, it appears, and when clicked, displays a previously hidden table row for adding request details. The script runs fine and can access visible elements of this same table, but when I try to display the icon and click it, I get a failure to resolve element error:
Here's the html (the class 'ui-icon-triangle-l-s' has it's visibility property set to hidden):
<i class="ui-icon-triangle-l-s" id="task_N1_toggle" style="FLOAT: right"</i>
Here's the script code:
[-] if FindDomElement("I[@id='task_N1_toggle']").Visible == false
[ ] FindDomElement("I[@id='task_N1_toggle']").SetDomAttribute("Visible", true)
Here's the error:
[-] Testcase GetIconToDisplayAndClick - 1 error
[ ] Failed to resolve object '//I[@id='task_N1_toggle']'.
[ ] Occurred in Visible.Get
[ ] Called from GetIconToDisplayAndClick at ...
Lastly, if I forego trying to show/click the hidden icon; and just try to display the appropriate hidden table row, I get the same failure to resolve issue.
Any ideas what I'm doing incorrectly here?