03-27-2012, 06:53 PM
Sankalp,.
I tried (and many other variations): ...
... all which returned a General run error.
I then tried (also with different variations: ...
...with no luck.
Using the OR, the webelement object Account1 highlights when I View-> Highlight in Application.
Name:Account1
innertext: **Account 12345678 is invalid or you are not authorized to view this account.**
html tag: DIV
Type, Value: Lopcation, 0
Do I need to change the innertext to a RegExp? I did try a variety of ways including:
("innerrtext:=" & "\*\*Account " & ACCT1 & ".*")
I tried (and many other variations): ...
Code:
If colWebElements(iCnt).GetROProperty("innertext") = "\*\*Account " & ACCT11 & ".*" Then
If colWebElements(iCnt).GetROProperty("innertext") = "**Account " & ACCT1 Then
If colWebElements(iCnt).GetROProperty("innertext") = "\*\*Account.*" Then
If colWebElements(iCnt).GetROProperty("innertext") = "\*\*Account 12345678.*" Then
... all which returned a General run error.
I then tried (also with different variations: ...
Code:
Browser("Wisdom").Page("WisdomMain").WebElement("innertext:=" & "**Account 12345678 is").Highlight
Browser("Wisdom").Page("WisdomMain").WebElement("outertext:=" & "**Account 12345678 is").Highlight
Browser("Wisdom").Page("WisdomMain").WebElement("innerrtext:= .*Account.*").Highlight
Browser("Wisdom").Page("WisdomMain").WebElement("innerrtext:=" & ACCT1& " .*Account.*").Highlight
Browser("Wisdom").Page("title:=WisdomMain").WebElement("innerrtext:= .*Account.*").Highlight
Browser("Wisdom").Page("title:=WisdomMain").WebElement("innerrtext:=" & ACCT1& ".*Account.*").Highlight
Browser("Wisdom").Page("title:=WisdomMain").WebElement("innerrtext:= \*\*Account " & ACCT1& ".*").Highlight
Browser("Wisdom").Page("title:=WisdomMain").WebElement("innerrtext:=" & "\*\*Account " & ACCT1& ".*").Highlight
...with no luck.
Using the OR, the webelement object Account1 highlights when I View-> Highlight in Application.
Name:Account1
innertext: **Account 12345678 is invalid or you are not authorized to view this account.**
html tag: DIV
Type, Value: Lopcation, 0
Do I need to change the innertext to a RegExp? I did try a variety of ways including:
("innerrtext:=" & "\*\*Account " & ACCT1 & ".*")