This is a migrated thread and some comments may be shown as answers.

Capturing the rows for a complicated table

4 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lisa
Top achievements
Rank 1
Lisa asked on 19 Dec 2017, 10:58 PM

We need to loop over the rows on a table but it's a complicated table:

the structure is as follows:

<p-treetable>

     ....

<table class = 'undefined'>

<tbody class='ui-treetable-data ui-widget-content'>

<div class='ui-treetable-row ui-treetable-row-selectable>

<td>

<td>

<td>

<td>

</div>

<div class = 'ui-treetable-row'>

<td class = 'ui-treetable-child--table-container'>

<table>

<tbody pTreeRow>

<div class='ui-treetable-row ui-treetable-row-selectable">

<td>

<td>

</div>

</tbody>

</table>

It's the tds in the child-table-container that we are trying to access. Any advice? I can access one of them, but I need to figure out how to define the collection in a coded step.

 

 

4 Answers, 1 is accepted

Sort by
0
Lisa
Top achievements
Rank 1
answered on 20 Dec 2017, 05:09 PM

My original post is terrible since you can't imagine the dom based on my statements. I'm going to include a screenshot of the dom with anything sensitive blacked out.

So the issue is that

1) this is not a standard table type

2) there are tables within tables. I need to loop over all of the inner table rows.

3) potentially it would be ok to identify the sub tables one by one but it would be more awesome if I could just pull all of them into a big loop

4) I don't know what the Html object type is for these treetable rows, so I don't know how to address this in the style of 

https://www.telerik.com/blogs/4-5-tips-for-working-with-tests-in-tables

and 

https://stackoverflow.com/questions/17294012/get-elements-from-row-telerik-test-studio (first answer)

 

 

0
Elena
Telerik team
answered on 21 Dec 2017, 02:01 PM
Hi Lisa,

Thank you for reaching us out and providing details for the faced difficulty. 

Please find a sample code for table searching and paging, You would need to adjust it as per the custom table structure but I guess this would be useful to you to get the idea. I suspect that the coded approach would be the only way to automate the actions against that application. 

Though in case of further assistance required please do not hesitate to contact me again. Thanks again! 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Lisa
Top achievements
Rank 1
answered on 21 Dec 2017, 03:22 PM

Elena,

Thank you for all your help. I'll look into this and hopefully close this query soon. I'm not used to having tech support of any kind so I'm just blown away.

If you have any tips for how to find information more quickly on these subjects, please let me know. I realize you often just send me links to things already documented and I feel embarrassed that my google searching didn't turn them up.

 

Lisa

0
Elena
Telerik team
answered on 21 Dec 2017, 03:41 PM
Hello Lisa,

Thank you for your cooperation in our discussions - I really appreciate it!

I guess that naming the things in slightly different way brings the google search "lack of information". Though you shouldn't be feeling bad for posting your queries as these are always great described and i am able to directly point your attention to the correct example. 

Anyways, take your time to review the example and find out if it could be applied for the custom page you are automating. Also you could use the search bar in the top right corner on each page in our documentation which will limit the search in it only. If not finding what you looking for you could alternatively use the navigation tree in the left. Of course, if still not locating the correct information, get back to us. 

Thank you once again and let me know if you would have any questions on the topic. 

Happy Holidays as well! 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Lisa
Top achievements
Rank 1
Answers by
Lisa
Top achievements
Rank 1
Elena
Telerik team
Share this question
or