Hover over an element with the actions API
Automation taskMediumAsked in: Accenture, Capgemini, Infosys, TCS, Wipro
Interviewers ask: "A menu opens only when the mouse is over it. How do you reach the item inside?" Hover with the actions API (Actions in Java, ActionChains in Python), wait for the item to appear, then click it. In this task you hover over a button on the Buttons page whose colour changes on hover; the Python lesson reads the colour before and after.