def move_element_by_offset(self, x, y):
     """
     moves the element by offset of x and y.
     """
     actionWrapper(
         actions.ActionChains(self.driver).drag_and_drop_by_offset(
             self, x, y).perform, [self.scroll_into_view], None,
         self.selector.statement + ": iz-move failed")
 def move_to_me(self):
     """
     moves the mouse to the element's location
     """
     actionWrapper(
         actions.ActionChains(self.driver).move_to_element(self).perform,
         [self.scroll_into_view], None,
         self.selector.statement + ": iz-move failed")
 def click(self, fix_actions=True):
     if fix_actions:
         fix = [self.scroll_into_view]
     else:
         fix = []
     actionWrapper(action=super().click,
                   fix_actions=fix,
                   alternate=self.jsClick,
                   failTitle=self.selector.statement + ": iz-click failed")
 def send_keys(self, *value):
     """
     iz method. 
     """
     if len(value) > 1:
         alt = None
     else:
         alt = self.appendValue
     actionWrapper(super().send_keys, alt, [self.scroll_into_view],
                   self.selector.statement + ": send keys failed", *value)
 def _find(self, selector: Selector, sensitive, root=None):
     """
     internal use only
     """
     log.info("finding " + str(selector))
     if (root):
         findfunction = root
     else:
         findfunction = self.find_element
     # func =   findFunctions[selector.method]
     element = actionWrapper(findfunction, None, [self.accept_alert],
                             "find element failed. ", selector.method,
                             selector.statement)
     if element:
         log.success("find - success")
         if (type(element) is list):
             return izWebElement.ConvertList(element, selector, self)
         else:
             return izWebElement(element, selector, self)
     else:
         if sensitive:
             raise AssertionError("find - failed: [{}].".format(
                 selector.statement))
         else:
             pass
 def waitForText(self, text: str, contains=True, sensitive=False):
     """
     wait for this element to display the given text.(using find() every time)
     contains - it's enough that the element will *contain* the text
     """
     try:
         return actionWrapper(
             _ar_compare_text, [self.scroll_into_view], None,
             self.selector.statement + " text " + text + " hasn't showed",
             self, text, contains, sensitive)
     except Exception as e:
         if sensitive:
             raise e
         return False
 def send_keys_noJS(self, *value):
     """
     iz method
     """
     actionWrapper(super().send_keys, None, [self.scroll_into_view],
                   self.selector.statement + ": send keys failed", *value)
 def double_click(self):
     actionWrapper(
         actions.ActionChains(self.driver).double_click(self).perform, None,
         [self.scroll_into_view],
         self.selector.statement + ": iz-dbl-click failed")