code: def double_click(self, on_element=None):
          
          if on_element:
              self.move_to_element(on_element)
          if self._driver.w3c:
              self.w3c_actions.pointer_action.double_click()
              for _ in range(4):
                  self.w3c_actions.key_action.pause()
          else:
              self._actions.append(lambda: self._driver.execute(
                                   Command.DOUBLE_CLICK, {}))
          return self
docs: Double-clicks an element.
  
          :Args:
           - on_element: The element to double-click.
             If None, clicks on current mouse position.