예제 #1
0
 def setUp(self):
     get_driver().refresh()
예제 #2
0
 def setUpClass(cls):
     super().setUpClass()
     get_driver().get(cls.url)
예제 #3
0
 def tearDownClass(cls):
     super(TestWaiters, cls).tearDownClass()
     get_driver().quit()
예제 #4
0
 def get(self, url=None):
     url = self.url or url
     get_driver().get(url)
     return self
예제 #5
0
 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()
예제 #6
0
 def scroll_to_element(self):
     get_driver().execute_script('return arguments[0].scrollIntoView();', self.web_element)
예제 #7
0
 def tearDownClass(cls):
     super().tearDownClass()
     get_driver().quit()
예제 #8
0
 def setUpClass(cls):
     super(TestWaiters, cls).setUpClass()
     get_driver().get(cls.url)