Skip to content

browser.mouse#

Functions#

hover(xpath, timeout=None) #

Simulate moving the mouse cursor over the middle of an element.

Parameters:

Name Type Description Default
xpath str

XPath of the element.

required
timeout float | None

In seconds. Timeout to wait for element. If None, the global timeout setting is used (default 5 seconds).

None
Example
browser.mouse.hover("//xpath/to/element")