code: public function scrollToElement($selector)
      {
          if (!self::hasTag('javascript')) {
              throw new \Exception('Scrolling to an element is impossible without a JavaScript.');
          }
  
          $this->executeJsOnElement($this->findElement($selector), '{{ELEMENT}}.scrollIntoView(true);');
      }
docs: @param string $selector
  Text or CSS.
  
  @throws \Exception
  
  @Given /^(?:|I )scroll to "([^"]*)" element$/
  
  @javascript