Posted: 24 Aug 2020 18:08 EDT Last activity: 25 Aug 2020 9:30 EDT
How to click a data cell from within an iframe?
I'm interrogating a web app that has a table. I've used the HTML Table Designer to match the cells (this table only has data cells) and at design time all elements are matched: table, table selection, data cells. At run time, however, when I perform click on a data cell (passing the index) I get an exception of "element not matched". Digging through the html code I found that this particular table is buried under three nested iframes.
I guess that the table being inside an iframe might be causing an issue. What is the right way to get the data cell of my particular table clicked?
I suspect that something in your hierarchy is the problem. Whenever you are looking for a reason why something is not matched, you must always look up the hierarchy to ensure that all of the parents (and grandparents, etc...) are matched and matched properly. If you have an ambiguous match (i.e. one of your ancestor controls has match rules that allow it to match against several controls), then you might have a parent matched but not children. you can usually see this in Interrogation by seeing multiple objects shown as attached in the Targets window. I would first check to see if that is your issue.