All Downloads are FREE. Search and download functionalities are using the official Maven repository.

desc.ActionMoveToElement.txt Maven / Gradle / Ivy

There is a newer version: 1.9
Show newest version
Part of a chain action, Moves the mouse to the middle of the element. The element is scrolled into view and its
location is calculated. If offsets are provided, moves the mouse to an offset from the top-left corner of the element.

The example below, which is navigating the jspringbot menu. This requires moveover on menu items.
To do mouseover on selenium requires action chaining.

*Example:*
| `Navigate To`  | http://jspringbot.org |
| `Action Start` |
| `Action Move To Element` | css=#documentation-menu > a |
| `Action Click` |
| `Action Move To Element` | css=#robot-docs-menu-items > li:nth-child(1) > a |
| `Action Move To Element` | css=#robot-docs-menu-items > li:nth-child(1) > ul > li:nth-child(2) > a |
| `Action Click` |
| `Action Perform` |

=>

| Navigate to http://jspringbot.org.
| Hover on the {{Document}} menu.
| Click the document menu.
| Hover on the first sub menu {{Robot Framework}}.
| Hover on the {{Robot Framework}} second sub menu {{String Library}}.
| Click the {{String Library}} menu item.
| Perform the chain of actions





© 2015 - 2024 Weber Informatics LLC | Privacy Policy