This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Enhance browser.ready
#3900
Description
In a world without the WebDriver Control Flow, we're going to need browser.ready
to be better:
- Initialize to
driver.getSession()
, since that will wait for the browser session to start - Update with the result of the
getCapabilities()
call call in theProtractorBrowser
constructor. - Update with the
setScriptTimeout()
call inrunner.createBrowser
, instead of overwriting - Update with the
browser_.driver.getCurrentUrl()
call inforkNewDriverInstance
, and also return the result ofnewBrowser.get(url)
in the subsequentthen
block