code: def move_to_element(self, to_element):
          
          if self._driver.w3c:
              self.w3c_actions.pointer_action.move_to(to_element)
              self.w3c_actions.key_action.pause()
          else:
              self._actions.append(lambda: self._driver.execute(
                                   Command.MOVE_TO, {'element': to_element.id}))
          return self
docs: Moving the mouse to the middle of an element.
  
          :Args:
           - to_element: The WebElement to move to.