we are trying to establish a testing scenario for our NJX Application,
and took the advice regarding the testtoolids as stable identifiers.
This works fine, and we successfully created some Testcases with WebDriver and Selenium IDE.
Nevertheless we still have some difficulties with the structure of the page itself.
Since there are up to 3 iframes with the DOM of a whole page,
and only a style attribute to differentiate them from each other at runtime
(since we don’t necessarily know which iframe becomes active next we can’t use the ID).
With the Webdriver the problem could be solved with
and reselecting the next frame
With selenium IDE the same could be done with
Target: //iframe[not(contains(@style,‘display: none’))]
The problem here is, that sometimes, even when the playback option is at the lowest setting, the style attribute hasn’t changed yet, and the wrong iframe is selected.
Is there a established/recommended way to handle this problem?
The second issue comes from the fact, that we still have many “old” programs with masks.
Here the testtoolids are generated, and we don’t know if we can rely on the unchanging nature of this ids
How can we handle this problem (if there is one)?
Thanks and BR