Locate an image on the screen and perform an action.
hover-image
command is used to locate an image on the screen based on a description and perform an action on it. This can include hovering, clicking, double-clicking or dragging the image.
Argument | Type | Description |
---|---|---|
description | string | A description of the image and what it represents. Don’t include the image itself here. |
action | string | The action to take when the image is found. Available actions are: click , right-click , double-click , hover . Also supports drag-start and drag-end for dragging images |
hover-image
command is useful for interacting with visual elements that can’t be identified using text-based selectors.
drag-start
and drag-end
actions are used to drag an image to a specific location. drag-start
could be the image (or inner text element, in which case using hover-text
is preferred) to drag and drag-end
is the location is supposed to be dragged to. This could be coupled with hover-text
or match-image
or just hover-image
.