Forum Discussion

Rajesh2's avatar
Rajesh2
Contributor
8 years ago

How to click after finding an object

Hi All,   I need to perform some action after finding an object using Find, FindAll or FindChildren methods.    Can anyone please explain how to go about this?   Like click on the object after ...
  • baxatob's avatar
    8 years ago
    clkLogin=Login.FindAllChildren("WinFormsControlName","buttonOK",20)

     

    FindAllChildren() will return an array of objects. 

     

    Click() method can be performed only on single object. 

    You need to use Find() or FindChild() method or select appropriate object from the returned array.