Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebElement not found in OR
#6
Solved: 11 Years, 4 Months ago
Sankalp,.

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 & ".*")
Reply


Messages In This Thread
WebElement not found in OR - by mv8167 - 03-24-2012, 12:45 AM
RE: WebElement not found in OR - by rajeevszone - 03-25-2012, 06:13 AM
RE: WebElement not found in OR - by rajeevszone - 03-25-2012, 06:13 AM
RE: WebElement not found in OR - by mv8167 - 03-26-2012, 09:37 PM
RE: WebElement not found in OR - by sshukla12 - 03-27-2012, 11:49 AM
RE: WebElement not found in OR - by mv8167 - 03-27-2012, 06:53 PM
RE: WebElement not found in OR - by mv8167 - 03-27-2012, 09:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  regex works but how do i return the found string to a variable jove1776 2 3,427 08-24-2011, 06:17 PM
Last Post: jove1776

Forum Jump:


Users browsing this thread: 1 Guest(s)