Ejemplo n.º 1
0
 def find_element_sendkeys(self, by, value, keys):
     try:
         self.driver.find_element(by, value).send_keys(keys)
     except Exception as handleRetry:
         try:
             WaitUtils.wait_for_element_visible(self.driver, by, value)
             self.driver.find_element(by, value).send_keys(keys)
         except Exception as e:
             raise e
Ejemplo n.º 2
0
 def check_element_enabled(self, by, value):
     try:
         return self.driver.find_element(by, value).is_enabled()
     except Exception as handleRetry:
         try:
             WaitUtils.wait_for_element_visible(self.driver, by, value)
             return self.driver.find_element(by, value).is_enabled()
         except Exception as e:
             return False
Ejemplo n.º 3
0
 def get_element_text(self, by, value):
     try:
         return self.driver.find_element(by, value).text
     except Exception as handleRetry:
         WaitUtils.wait_for_element_visible(self.driver, by, value)
         return self.driver.find_element(by, value).text