Waiting for a specific event to proceed and make the test more stable
wait for
step in Octomind allows you to pause test execution until specific events or conditions are met, making your tests more reliable and less prone to flakiness.
load
event, which fires when all resources like images and stylesheets have finished loading.
DOMContentLoaded
event, which fires when the initial HTML document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading.
true
. This gives you the flexibility to define complex conditions specific to your application.waiting for custom code, 05/2025
waiting for nuxt hydration, 05/2025