Testing / Ranorex Interview questions
What happens when an element is not found during test execution in Ranorex?
When an action or validation targets an element that Ranorex cannot locate within the configured search timeout, it raises an ElementNotFoundException rather than silently skipping the step.
By default this exception fails the current module and, depending on the module's "Continue On Error" setting, either stops the rest of the test case immediately or is logged as a failure while execution continues to the next step. Either way, the Report records the failure with the RanoreXPath that was searched for and, if screenshot-on-error is enabled, a captured image of the screen at that moment.
This behavior is what makes a Ranorex failure diagnosable rather than just a red X: the log shows exactly which locator failed to resolve and what the screen looked like, which is usually enough to tell whether the real cause was a timing issue, a genuine application bug, or a locator that needs updating.
More Related questions...