Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 610 Bytes

no-browser-driver.md

File metadata and controls

22 lines (15 loc) · 610 Bytes

Recommend against using browser.driver, use browser directly instead

The rule would warn if using browser.driver instead of using browser directly, as browser contains all the browser.driver methods.

Rule details

👎 Any use of the following patterns are considered warnings:

browser.driver.sleep(2000);
var driver = browser.driver;

👍 The following patterns are not warnings:

browser.sleep(1000);
var test = browser.getTitle();

This rule is disabled by default as it is not mandatory, but a good practice. Please enable if applicable in your case.