margaritahumanitarian / helpafamily

Prefer var declarations be placed at the top of their scope JS-0102
Anti-pattern
Minor
1 occurrence in this check
All 'var' declarations must be at the top of the function scope
13      .withCapabilities(webdriver.Capabilities.chrome())
14      .build();
15    driver.get('http://www.google.com');
16    var searchBox = driver.findElement(webdriver.By.name('q'));17    searchBox.sendKeys('selenium node automation');
18    searchBox.getAttribute('value').then(function (value) {
19      assert.equal(value, 'selenium node automation');