03-24-2012, 12:45 AM
I have a WebElement that is not being found in the OR.
On the webpage, the page webelement in Spy indicates the innertext = **Account 12345678 is invalid or you are not authorized to view this account.**
I use:
In the properties, innertext is set a a regular expression (Repository Parameter) constant is "**Account " & ACCT1 & " is invalid or you are not authorized to view this account.**"
ACCT1 is a passed in variable 12345678
What must I do differently to find this value in my OR.
Or do I use:
If Browser("Wisdom").Page("Wisdom IA").WebElement("innertext:=" & "**Account " & ACCT1 & " is invalid or you are not authorized to view this account.**").Exist(0) Then
On the webpage, the page webelement in Spy indicates the innertext = **Account 12345678 is invalid or you are not authorized to view this account.**
I use:
Code:
If Browser("Wisdom").Page("Wisdom IA").WebElement("**Account1").Exist(0) Then
ACCT1 is a passed in variable 12345678
What must I do differently to find this value in my OR.
Or do I use:
If Browser("Wisdom").Page("Wisdom IA").WebElement("innertext:=" & "**Account " & ACCT1 & " is invalid or you are not authorized to view this account.**").Exist(0) Then