Add more error handling when webdriver itself got javascript exception.
Should print the original error message if any issues happened during webdriver.getCurrentUrl().
Do more Error Manager error checking in function, such as testing initialization and reporting.
For more details, please refer to the following webdriver exception.
While invoking getCurrentUrl(), the function will check if the webdriver session is not null.
Otherwise, webdriver will throw a regular javascript exception.
at checkHasNotQuit
(/\ hudson job test job **/func-test/node_modules/yahoo-arrow/ext-lib/webdriver/lib/webdriver/webdriver.js:283:13)
function checkHasNotQuit() {
if (!self.session_) {
throw new Error('This driver instance does not have a valid session ID ' +
'(did you call WebDriver.quit()?) and may no longer be ' +
'used.');
}
}
Add more error handling when webdriver itself got javascript exception. Should print the original error message if any issues happened during webdriver.getCurrentUrl().
Do more Error Manager error checking in function, such as testing initialization and reporting.
For more details, please refer to the following webdriver exception. While invoking getCurrentUrl(), the function will check if the webdriver session is not null. Otherwise, webdriver will throw a regular javascript exception.
at checkHasNotQuit (/\ hudson job test job **/func-test/node_modules/yahoo-arrow/ext-lib/webdriver/lib/webdriver/webdriver.js:283:13)
function checkHasNotQuit() { if (!self.session_) { throw new Error('This driver instance does not have a valid session ID ' + '(did you call WebDriver.quit()?) and may no longer be ' + 'used.'); } }