nam1
7 years agoNew Contributor
How to perform click operation, if i am fetching the locator from excel file?
I am getting the excel object (Which contains the locater). But not getting the click option to perform click operation. Please help me on this.
You need to convert the contents of "a" into something that corresponds to an onscreen object. The screenshots you provided me give the text value of the field... and that is a string... you can't "click" on a string, so you need to convert that to an actual object. The below code should do what you want.
var objectToClick = eval(a.Text) objectToClick.Click()