Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebElement not found in OR
#7
Solved: 10 Years, 9 Months, 4 Weeks ago
I ended up doing: (its not exactly what I want but it works as long as the strActInnerText dosent change)

Code:
strExpInnerText = "**Account " & ACCT1 & " is invalid or you are not authorized to view this account.**"
strActInnerText = Trim(Browser("Wisdom").Page("WisdomMain").WebElement("index:=1", "innerText:=.*is invalid or you are not authorized to view this account.*").GetROProperty("innerText"))

strActInnerText = Right(strActInnerText, 79)

If strExpInnerText = strActInnerText  Then
    msgbox "ReportPass"
Else '
    msgbox "ReportFail"
End If

I ended up getting help using ucValidationControl_pnlValidationMessages instead.

to read:
Code:
strActInnerText = Browser("Wisdom").Page("WisdomMain").WebElement("html id:=ucValidationControl_pnlValidationMessages", "Location:=0").GetROProperty("innerText")
works perfect.

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

Forum Jump:


Users browsing this thread: 1 Guest(s)