getgauge / taiko

A node.js library for testing modern web applications
https://taiko.dev
MIT License
3.56k stars 452 forks source link

Wait for page load completes - How to achieve this. #2660

Closed Jaspher16 closed 1 year ago

Jaspher16 commented 1 year ago

My application lot of navigations and it applies too much timeouts when ever I perform navigation or clicks.

Is there any method I can use to confirm the page navigates or done with loading?

NivedhaSenthil commented 1 year ago

Taiko by default waits for page load to complete by waiting for loadEventFired event for navigation apis like goto and reload . If any other action leads to page navigation you could explicitly wait for it as mentioned here, https://docs.taiko.dev/frequently_asked_questions/#how-can-i-customize-taiko's-wait-events%3F