def scroll_element_into_view(self, selector):
        """
        Scrolls an element into view.

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

        :param selector: selector of element or WebElement to scroll into view
        :return: None