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

When I do an OSpy, I find
Browser("Wisdom").Page("WisdomMain").WebElement("**Account 12345678 is invalid or you are not authorized to view this account.**")

The 12345678 changes depending on which account was entered. From the OR Manager the element does highlight when I I do a View-> Highlight in App.

If I go back and try the same exact code that just found the WebElement that earlier worked; now using
Browser("Wisdom").Page("WisdomMain").WebElement("Account 12345678 is").Highlight, the WebElement is not found in the OR.

I then tried:
ACCT1 = 12345678
WebElement("innertext:=" & "**Account " & ACCT1 & " is invalid or you are not authorized to view this account.**") but this code did not work.

I then went into the OR and changed the innertext to read "**Account " & ACCT1 & " is invalid or you are not authorized to view this account.** and selected a RegEx, no luck in finding the webelement.

Then I tried yours replacing Expected Text = Expected Text with "**Account " & ACCT1 & " is invalid or you are not authorized to view this account.**"

t o read:
If colWebElements(iCnt).GetROProperty("innertext") = "**Account " & ACCT1 & " is invalid or you are not authorized to view this account.**" Then
and
If colWebElements(iCnt).GetROProperty("innertext") = "**Account 12345678 is invalid or you are not authorized to view this account.**" Then

with a General run error ion the line.

Any other thoughtful suggestions?

thx

Lor
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,422 08-24-2011, 06:17 PM
Last Post: jove1776

Forum Jump:


Users browsing this thread: 1 Guest(s)