storing xpath in excel and , to access it via script

Best practices, code snippets for common functionality, examples, and guidelines.
sawaiabhishek
Posts: 2
Joined: Wed Dec 28, 2016 12:19 pm

storing xpath in excel and , to access it via script

Post by sawaiabhishek » Wed Dec 28, 2016 12:54 pm

Hi There,

I would like to store the xpath of the element in excelsheet.

and later i would like to write a script where i will fetch the excel data from the code and will click on the particular element.

Can someone please suggest the way forward to achieve above task.

User avatar
N612
Posts: 135
Joined: Mon Jul 11, 2016 4:01 pm

Re: storing xpath in excel and , to access it via script

Post by N612 » Wed Dec 28, 2016 9:06 pm

Hello,

As explained in the other thread, you can create elements with the Host.Local.FindSingle(RxPath) method. In order to retreive them from a excel sheet, you can use a excel data connector and a variable. I recommend reading and trying the user guide pages linked below on this.