lib/checks.js
function querySelectorOnBrowser(selector) {
        // stupid error catching here to stop the browser from printing null cannot be found to stdout
        var query;
        try {
            // do this to simulate a scroll to the bottom of the page to trigger loading of certain ajax elements
            //todo somehow this still doesnt work
            document.body.scrollTop = 0;
            document.body.scrollTop = 9999999999;
            //window.document.body.scrollTop = document.body.scrollHeight;
            query = document.querySelector(selector).innerHTML;

        } catch (exception) {
            return false;
        }
        return true;
    }
function querySelectorOnBrowser(selector) {
        // stupid error catching here to stop the browser from printing null cannot be found to stdout
        var query;
        try {
            // do this to simulate a scroll to the bottom of the page to trigger loading of certain ajax elements
            //todo somehow this still doesnt work
            document.body.scrollTop = 0;
            document.body.scrollTop = 9999999999;
            //window.document.body.scrollTop = document.body.scrollHeight;
            query = document.querySelector(selector).innerHTML;

        } catch (exception) {
            return false;
        }
        return true;
    }
function querySelectorOnBrowser ( selector ) { // stupid error catching here to stop the browser from printing null cannot be found to stdout var query ; try { // do this to simulate a scroll to the bottom of the page to trigger loading of certain ajax elements //todo somehow this still doesnt work document . body . scrollTop = 0 ; document . body . scrollTop = 9999999999 ; //window.document.body.scrollTop = document.body.scrollHeight; query = document . querySelector ( selector ) . innerHTML ; } catch ( exception ) { return false ; } return true ; }
check if the element referenced by the selector exists
check if the element referenced by the selector exists