Simulate mouse and keyboard use

A simulation using the mouse

    1. The positioning element to the element assigned to a variable

       a = driver.find_element_by_id("username")

    2. Create a motion chain ActionChains (driver)

    3. The method of operation of a chain, operating element

    4. This operation is performed .proform ()

    ActionChains (driver) .move_to_element (a) .proform () to hover over the element

   driver.find_element_by_id ( "ci"). click () elements are shown after clicking hover

   Company project application examples: Hover to "Indicators Project Library" and click "Project Information"

   

   

Guess you like

Origin www.cnblogs.com/Lcong/p/11752939.html