def setUp(self): get_driver().refresh()
def setUpClass(cls): super().setUpClass() get_driver().get(cls.url)
def tearDownClass(cls): super(TestWaiters, cls).tearDownClass() get_driver().quit()
def get(self, url=None): url = self.url or url get_driver().get(url) return self
def click(self, with_js=False): if with_js: get_driver().execute_script('return arguments[0].click();', self.web_element) else: self.web_element.click()
def scroll_to_element(self): get_driver().execute_script('return arguments[0].scrollIntoView();', self.web_element)
def tearDownClass(cls): super().tearDownClass() get_driver().quit()
def setUpClass(cls): super(TestWaiters, cls).setUpClass() get_driver().get(cls.url)