Пример #1
0
 def get_attr_value(self, attr_name, optional=False):
     try:
         return DriverElementCommands.get_attr_value(
             self.driver_element, attr_name)
     except Exception as e:
         if optional:
             return None
         else:
             raise e
Пример #2
0
 def get_text_content(self):
     return DriverElementCommands.get_text_content(self.driver_element)
Пример #3
0
 def is_clickable(self):
     return DriverElementCommands.is_clickable(self.driver_element)
Пример #4
0
 def get_tag_name(self):
     return DriverElementCommands.get_tag_name(self.driver_element)
Пример #5
0
 def is_visible(self):
     return DriverElementCommands.is_visible(self.driver_element)
Пример #6
0
 def is_selected(self):
     return DriverElementCommands.is_selected(self.driver_element)
Пример #7
0
 def send_text(self, text):
     DriverElementCommands.send_text(self.driver_element, text)
Пример #8
0
 def clear_text(self):
     DriverElementCommands.clear_text(self.driver_element)
Пример #9
0
 def click(self):
     DriverElementCommands.click(self.driver_element)