In case there are multiple possible anchor areas in the system under test and you need to check if at least one of them can be found on the device screen, you can use .
This function searches for every possible anchor area and saves the result in a runtime variable with . In the end, you can either throw or not throw an error, depending on the value of the runtime variable.
Insert multi-check into a test.
Make sure you are in mode.
- Use to search for the first anchor area.
- Click .
- Enter the following PHP command to save the result of the find to a runtime variable:
- Use to search for the second anchor area.
- Enter the following PHP command to save the combined result of this and all previous finds to the runtime variable:
- Repeat step 4 and 5 for every possible anchor area.
- Enter the following PHP command to throw an error if none of the previous finds was successful:
EVAL set("some_var_name")
EVAL set("some_var_name", $CLIPBOARD=="True" || get("some_var_name")=="True")
EVAL get("some_var_name") || error("a custom error message")