docs/rules/no-get-in-it.md
# Recommend against having `browser.get()` or `browser.driver.get()` inside `it()` This rule enforces the [Navigate to the page under test before each test](https://github.com/angular/protractor/blob/master/docs/style-guide.md#navigate-to-the-page-under-test-before-each-test) Protractor Style Guide recommendation. The rule currently does not allow to configure the test function names and will only look for `it()` test names. ## Rule details :thumbsdown: Any use of the following patterns are considered warnings: ```jsit("should do something", function() { browser.get("mypage"); });it("should do something", function() { browser.driver.get("mypage"); });``` :thumbsup: The following patterns are not warnings: ```jsbeforeEach(function() { browser.get("mypage"); });beforeEach(function() { browser.driver.get("mypage"); });it("should do something", function() { browser.waitForAngular() });```