code: def scroll_element_into_view(self, selector):
          
          element = selector
          if isinstance(element, WebElement):
              self.execute_script("arguments[0].scrollIntoView( true );", element)
          else:
              self.execute_script("$('{}')[0].scrollIntoView( true );".format(selector[1]))
docs: Scrolls an element into view.
  
          :param selector: selector of element or WebElement to scroll into view
          :return: None