Invalid elements in DOM tree
Posted: Fri Oct 07, 2016 12:55 pm
My test fails on a validate-exists step and the error message says that the element can not be found (Attachment s1.png). The real problem is, that Ranorex sees an invalid table element in the DOM tree (Attachment s2.png). This can be seen with the "Ranorex Element Browser" in the tab ""BROWSER & RESULTS". In the browser all is fine, inspecting the elemtents directly in the browser shows no problems (Attachment s3.png).
The element to validate is contained in a table, which is rendered with JavaScript. After "document ready" the table may be not ready, because it needs some more time to add all event handlers.
A delay or wait step before would solve the problem and the table element is not invalid then. It seems like the Ranorex plugin in the browser causes the problem. The problem does not exists when I test manually.
My theory is, that the Ranorex plugin should not access the DOM tree elements, while JavaScript has not yet finsihed attaching event handlers to the elements.
Is this a known bug?
I'm not share in which browsers the problem occurs. In at least one case the problem was only with Firefox and not happened with Chrome and IE11.
Used versions:
- Ranorex 6.1
- Firefox 49.0.1
- Ranorex Firefox Plugin: Ranorex Automation NG 1.0.3
The element to validate is contained in a table, which is rendered with JavaScript. After "document ready" the table may be not ready, because it needs some more time to add all event handlers.
A delay or wait step before would solve the problem and the table element is not invalid then. It seems like the Ranorex plugin in the browser causes the problem. The problem does not exists when I test manually.
My theory is, that the Ranorex plugin should not access the DOM tree elements, while JavaScript has not yet finsihed attaching event handlers to the elements.
Is this a known bug?
I'm not share in which browsers the problem occurs. In at least one case the problem was only with Firefox and not happened with Chrome and IE11.
Used versions:
- Ranorex 6.1
- Firefox 49.0.1
- Ranorex Firefox Plugin: Ranorex Automation NG 1.0.3