Ejemplo n.º 1
0
 def setUp(self):
     """Instantiate the extended element class."""
     self.element = ExtendedElementKeywords()
     self.element._current_browser = mock.Mock()
     self.element._wait_until_page_ready = mock.Mock()
     self.locator = 'css=.selector'
     self.locator_attribute = 'css=.selector@class'
     self.locator_class = 'selector'
     self.web_element = WebElement('element', False)
Ejemplo n.º 2
0
 def setUp(self):
     """Instantiate the extended element class."""
     self.driver = mock.Mock()
     self.driver.session_id = 'session'
     self.element = ExtendedElementKeywords()
     # pylint: disable=protected-access
     self.element._current_browser = mock.Mock()
     self.element._info = mock.Mock()
     self.element._wait_until_page_ready = mock.Mock()
     self.locator = 'css=.selector'
     self.locator_attribute = 'css=.selector@class'
     self.locator_class = 'selector'
     self.web_element = WebElement(self.driver, 'element', False)
     self.web_element.click = mock.Mock()