Forum Discussion
TanyaYatskovska
11 years agoSmartBear Alumni (Retired)
Hi Jyothi,
This behavior is very strange. I can suggest the following workaround to you: save the property values of the button to variables and, after this, click the button:
Dim objType, contText
if(oButton.Exists or oButton.Enabled)then
objType = oButton.ObjectType
contText = oButton.contentText
oButton.Click
szResult = "PASS"
szResultDescript = objType &" "& contText & " is clicked."
End if
How does this work for you?
This behavior is very strange. I can suggest the following workaround to you: save the property values of the button to variables and, after this, click the button:
Dim objType, contText
if(oButton.Exists or oButton.Enabled)then
objType = oButton.ObjectType
contText = oButton.contentText
oButton.Click
szResult = "PASS"
szResultDescript = objType &" "& contText & " is clicked."
End if
How does this work for you?
Related Content
- 11 months ago
Recent Discussions
- 2 days ago