I am trying to capture the text displayed on doing mouse over on a radio button with Descriptive Programming using GetROProperty
. If I spy the tool tip text displayed, it is recognizing as WebElement
. I tried executing the below code
setToolTip=Browser(strBrowser).Page(strPage).WebElement(strwebElement).GetROProperty("innertext")
MsgBox ToolTip
but i am getting the below error message
"Cannot identify the object "[WebElement] of (of class WebElement.Verify that this Object's properties match an object currently displayed in your application".
If I run the same code by adding the objects to Object Repository I am able to capture the tool tip text using GetROProperty
Is there any other property other than GetROProperty
so that I can capture the tool tip text displayed or is there any other way?
Please suggest.
My complete code looks like this. I have also tried the "object.tile" as suggested but still the same Issue.
Browser(strBrowser).Page(strPage).WebRadioGroup(strLogicalName).Select "true"
Browser(strBrowser).Page(strPage).WebRadioGroup(strLogicalName).FireEvent "onmouseover"
set ToolTip=Browser(strBrowser).Page(strPage).WebElement("strWebElement").Object.title
MsgBox ToolTip
Please suggest
Thanks.