I ended up doing: (its not exactly what I want but it works as long as the strActInnerText dosent change)
I ended up getting help using ucValidationControl_pnlValidationMessages instead.
to read:
works perfect.
thx
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")
thx