Forum Discussion
Hi,
you can use X=GetPropertyvalue(objectName,"Text") take object property value then you can perform an action on Particuler object.
Thanks,
Gan
- Colin_McCrae9 years agoCommunity Hero
You have set variable "b" to be the FullName property of the object stored in variable "a".
You then try and apply a Click to "b". This won't work. "b" is a property (text string), not an object.
Just apply the click to "a" instead? You check the text of "a". If the text is the value you want, you then extract the fullname of "a" to try and click it. So it's "a" you want to click in the first place (if the condition matches). You don't need "b" as far as I can tell?
So instead of:
if(a.Text == "Auto2")
b= a.FullName //b holds the FullName of the object with name Auto2
b.Click() //Click is not supported
Just have:
if(a.Text == "Auto2")
a.Click()
Related Content
Recent Discussions
- 13 hours agotramuntana
- 3 days agoSlickRick