hover
The command to hover the element.
Syntax
Element.hover() -> PyleniumUsage
py.get(".menu").hover()# Errors, 'hover' yields Pylenium, not Element
py.get(".menu").hover().click()Arguments
None
Yields
Pylenium - The current instance of Pylenium so you can chain commands
Examples
def test_hover_shows_user_info(py: Pylenium):
    py.visit("https://the-internet.herokuapp.com/hovers")
    py.get("[alt='User Avatar']").hover()
    assert py.contains("name: user1").should().be_visible()Last updated