Some mobile testing scenarios require waiting for data to be fully loaded before proceeding. To assist with this effort, we've added "wait until" steps for mobile tests. Use "wait until" steps to wait up to a configured amount of time for a specific element to be present on the page.
"Wait until" steps are preferred over "wait" steps because they ensure that mabl waits only until the target element is present. If mabl finds the target element before the time limit, mabl completes the step and continues to the next step.
How it works
Here's how you can add a "wait until" step in the mabl Trainer:
- Click on the plus icon at the bottom of the Trainer panel to add a step.
- Click on Wait.
- Select "Add wait until."
- Select the element that mabl should wait for.
- Check the attributes that you would like mabl to target. The available attributes are based on the element that you selected
- Click Next.
- Configure a maximum wait up to 900 seconds.
- Click OK.
You cannot configure a "wait until" step to wait until an element is absent. If you have a use case involving this limitation, please let us know in the mabl Product Portal.