Posted: 29 May 2019 15:25 EDT Last activity: 26 Jun 2019 12:08 EDT
HTML Table Clone Count and Link Parenting
This is a two part question.
First: I have a HTML table, which I interrogated a single row and used Keys, which has 4 children cells. (Matched with Table Section Row Match Rule and Table Schema Cell Match Rule. The row [table] is matched with Table Schema Match Rule. )
Using the GetClones method, generating a proxy, and verifying the count property of this proxy, sometimes I get a count of 1, and other times I get a count of 39. The table in the web application has 42 rows however. Therefore, I am wondering why sometimes I get only 1, and other times I get 39, and never get the expected 42?
Second: When interrogating a link, that I would like to be clicked, within this table, it is not parented correctly. I would expect it to be parented under the cellAction cell, but rather its hierarchy is off. Any suggestions for this? I have tried Fix Parent, and Fix children, on different parts of the hierarchy. Additionally there is no Create Container option for the cloned row [table].
***Edited by Moderator Marissa to update SR Details***
To your question about the changing the hierarchy... try following this document. I suggest moving the ATMOS_URL_LINK to be under domTable1 (and not under cellAction). I have seen matching issues when moving it under the cell control.
As for the clone collection, this can be tricky. The clone collection takes time to match to all the controls - thus timing is important when calling GetClones() because it will just return whatever is matching at that moment. So you'll need to consider how much time it takes to match all the controls in the table or find something that would tell you matching is finished.
If you're only matching to 39 out of 42 rows, it is most likely something to do with your match rules. Find one of the three that aren't matching and get the OuterHTML. Compare it with a matching row. You can post it here too and I can offer my comments if needed.
It appears it is still only matching 39 of approximately 70 rows. How can I provide the GetClones Method more time to match all the clones? Or is there another way to know when the GetClones method is complete?
As far as match rules, I am only using Table and Cell schema match rules, so I do not see anything that would prohibit it from matching all the rows.