예제 #1
0
 def accept(self, element):
     driver_element = load_element(self.driver, element)
     driver_element.accept()
예제 #2
0
 def dismiss(self, element):
     driver_element = load_element(self.driver, element)
     driver_element.dismiss()
예제 #3
0
 def get_text(self, element):
     driver_element = load_element(self.driver, element)
     return driver_element.text
예제 #4
0
 def get_attribute(self, element, attribute):
     driver_element = load_element(self.driver, element)
     return driver_element.get_attribute(attribute)
예제 #5
0
 def select_drop_down(self, element, visible_text):
     driver_element = load_element(self.driver, element)
     selectable = Select(driver_element)
     selectable.select_by_visible_text(visible_text)
예제 #6
0
 def clear_text(self, element):
     driver_element = load_element(self.driver, element)
     driver_element.send_keys(Keys.CONTROL + 'a')
     driver_element.send_keys(Keys.DELETE)
예제 #7
0
 def clear(self, element):
     driver_element = load_element(self.driver, element)
     driver_element.clear()
예제 #8
0
 def input_text(self, element, text):
     driver_element = load_element(self.driver, element)
     driver_element.send_keys(text)
예제 #9
0
 def click(self, element):
     driver_element = load_element(self.driver, element)
     driver_element.click()