Answers for "wdio page load"

0

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...
Posted by: Guest on March-03-2021

Browse Popular Code Answers by Language