YahooArchive / arrow

FE Test framework designed to promote TDD
http://yahoo.github.io/arrow/arrow_intro.html
BSD 3-Clause "New" or "Revised" License
55 stars 59 forks source link

Handle the Error 1004 Arrow is not defined #149

Closed bowdev closed 10 years ago

bowdev commented 10 years ago

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.'); } }