getDriver method

Class: EyesPlatform: ProtractorLanguage: JavaScript SDK:

Use this method to retrieve the driver returned by the call to the open method.

Typically, you should make all calls to the webdriver using this driver, which wraps the webdriver. This allows Eyes to be aware of calls being made to the webdriver, and enables a number of features.


let value = eyes.getDriver();
value = eyes.driver;

Note that this feature is available as both a method and a property.


This method does not take any parameters.

Return value

Type: ProtractorBrowser