wdio page load code example
Example: wdio page load
it('scroll right and left', () => {
// Wait for document to be fully loaded.
browser.waitUntil(
() => {
const state = browser.execute(function () {
return document.readyState;
});
return state.value === 'complete';
},
100000,
'Oops, time out!',
500
);
// Your custom actions...