Tips
May 14, 2024

Tip of the Day 8

Tip 8

Prefer Conditional Waits over Implicit Waits

How to use this Tip?

1. Sahi Pro automatically waits for page loads and ajax activity. Consequently, there is no need for adding wait statements in most cases.

2. However, in rare cases (e.g Page has loaded but all elements are not rendered) where wait is required, a conditional wait can be used.

3. Use below step to wait till the Confirm button becomes visible or 3 seconds maximum.

How does this help you?

Providing a specific condition for wait, ensures that the Playback waits only till the condition is met. Thus, conditional wait facilitates more control over the waiting time.

Download this Tip as a PDF

Continue reading

Tip of the Day 11

Tip of the Day 10