TesterOnScreenElementExtensions
Last updated
Was this helpful?
Last updated
Was this helpful?
Waits simultaneously for a list of and returns the first element that was found. This can be useful when an action has multiple possible outcomes and depending on the shown element (e.g. warning dialog) a different action needs to be taken.
As search duration the maximum of all elements is used.
Parameter
Description
t
elements
Type: The ITester interface on which the extension is called.
Type: [ ] The list of elements for which we should wait. Can be any combination of Screens, Labels, Buttons, etc.
The first that was found on the screen (out of the elements parameter) or null if no element was found.