Question
1
Replies
112
Views
Tech Mahindra Ltd
Posted: December 13, 2019
Last activity: December 13, 2019
Closed
Using Clones method
Hi,
I am working on a similar solution. To capture the company name and description from all the pages and generate Excel. For this I used clones method for both the controls. While retrieving the data company name with the respective description is not matching.
Any suggestions will be helpful.
I will try to give you some general guidance as there really isn't anything specific in your post to go off of.
When using clones, think of the "thing" that is actually cloned. In this case, neither the name of the company or the description is actually a clone. There is a likely a parent control that contains these that is actually duplicated. You can locate this by using the select element option in interrogation to identify some control that contains the entire record. Think of that like a row in a table. Within a table row, the row is the thing that is duplicated and not the individual cells of that row.
I would locate that control, interrogate it as a container, and then interrogate the children of it that you need beneath it. You can then enable "UseKeys" on that control and be able to iterate through them at runtime.