def find_flutter_element_sendkeys(self, locator, value):
     try:
         WaitUtils.flutter_wait_for_element(self.driver, value)
         self.driver.elementSendKeys(locator, value)
     except Exception as handleRetry:
         try:
             WaitUtils.flutter_wait_for_element(self.driver, value)
             self.driver.elementSendKeys(locator, value)
         except Exception as e:
             raise NoSuchElementException
 def flutter_scroll_to_text(self, value):
     try:
         WaitUtils.flutter_wait_for_element(self.driver, value)
         self.driver.execute_script("flutter:scrollIntoView", value, 0.1)
     except Exception as handleRetry:
         try:
             WaitUtils.flutter_wait_for_element(self.driver, value)
             self.driver.execute_script("flutter:scrollIntoView", value,
                                        0.1)
         except Exception as e:
             raise NoSuchElementException
示例#3
0
 def find_flutter_element(self, value):
     try:
         WaitUtils.flutter_wait_for_element(self._appium_context(), value)
         return FlutterElement(self._appium_context(), value)
     except Exception as handleRetry:
         try:
             WaitUtils.flutter_wait_for_element(self._appium_context(),
                                                value)
             return FlutterElement(self._appium_context(), value)
         except Exception as e:
             raise e