Skip to main content

SeeTestAutomation- Controlling Element Identification Rules

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

When running a test step on a Native element, a set of rules are enforced in the found element's properties before the actual command operation is performed.

One rule requires that the element is not "busy". a busy element is an element that is still being drawn by the Operation System on the device, or is busy showing some animation.
In case the element is found in such state, SeeTest waits for it to get idle for a short time, and then gives up waiting and performs the step on the busy element.

This default behavior might be configured in 'app.properties' file by setting the following properties: 

  • element.idle.timeout=<timeout_to_wait_for_busy_element_in_milliseconds> (1500 by default)

  • assert.element.idle=<true/false> - if element is not found till timeout - should the test step fail ("true") instead of continuing to perform it on the busy element ("false" - the default value).

Another rule forced on the element, is that it does not have zero size. Elements with zero size (i.e. width or height) are often deflated elements that the application intend to inflate when they are required.
This default behavior might be configured by setting the following properties: 

  • assert.element.dimension=<true/false> - should elements with 0 width or height fail the test ("true" by default).