The hover command is used to hover on the current element. This is useful when other elements are hidden or unavailable until the hover. Some examples include:
- A navigation menu that drops down on hover.
- A tooltip that pops up with the address of a hovered-on pin on a map.
After the hover command is used, you can work with any new elements that appear in exactly the same way as any other elements. However, when you select such an element, you may have to use the wait for elements to appear option if it happens asynchronously.
The hover command cannot have any child commands.
The hover command fires 2 DOM event on the current element: