Page tree

The Object commands include the following:

Controlling Element Identification Rules

When running a test step on a Native element, SeeTest requires certain rules to be met in the found element's properties before it starts performing the actual step on it.

 

One rule is that the element is not "busy". a busy element is an element that is still being drawn by the Operation System of 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 certain time (1 Second by default), and then gives up waiting and performs the step on the busy element.

The following lines can be added to %appdata%\seetest\app.properties file in order to modify this default behavior:

(*) 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 SeeTest use the busy element or assert it is idle (false by default)

 

Another rule forced on the element's properties, is that it does not have zero size. Elements with zero size (width or height) are often (especially in web applications) deflated elements that the application intend to inflate when they are required. 

The following lines can be added to %appdata%\seetest\app.properties file in order to modify this default behavior:

(*) assert.element.dimension=<true/false> - should SeeTest ignore elements with 0 width or height, true by default.

  • No labels