12-09-2011, 08:33 PM
I need to check if a webelement (Report Name) exists as it changes with each iteration.
I tried:
…. In the OR I have regExp of webelement crossreference set to ReportName
and:
which i thought would work. But both get passed by.
Any ideas on how to better my If exists statement?
I tried:
Code:
If Browser("Preferences").Page("Preferences").WebElement("crossreference").Exist(1)
and:
Code:
If Browser("Preferences").Page("Preferences").WebElement("innertext:="&ReportName”).Exist(1)
Any ideas on how to better my If exists statement?