Function waitForPageReady

Returns a Promise that is resolved either when the Document:readyState is "complete" or the readyState is "interactive" and at least settings.pageLoadTimeout milliseconds have passed (if > 0) since it became "interactive".