Forum

Forum
How to make sure th...
 
Notifications
Clear all

[Solved] How to make sure the exact page is captured with webdriverio?

New Member Guest
Joined: 2 years ago
Posts: 1
Topic starter  

How to prevent the page loading wait and make sure that the screenshot is captured at the exact same stage for webdriver io?


   
Amrita Kaur
Member Admin
Joined: 4 years ago
Posts: 108
 
The screenshot capturing is done outside the scope of Imagium.
It has more to do with how you wait in your tool/framework before taking a screenshot.
 
Please have a look here:
 
 
Or you can add delays in typescripts as following: 

await new Promise(f => setTimeout(f, 1000));