Mouse and Keyboard Commands

CommandsDescriptionArguments
execute_clickClick on the target given element (e.g. a link, button, checkbox, or radio button)locator: An element locator
execute_click_offsetClick on the given element (e.g. a link, button, checkbox, or radio button). The coordinates are relative to the givent element (e.g. 0,0 is the top left corner of the element) and are mostly used to check effects that relay on them, for example the material ripple effect.locator: An element locatorcoord string: Specifies the x,y position (e.g., – 10,20) of the mouse event relative to the element found from a locator.
execute_mouse_overSimulate users hovering a mouse over the given elementlocator: An element locator
double_clickDouble click on a given web elementlocator: An element locator
drag_and_drop_by_offsetDrag an object and drop it on an offset locationlocator of object to be dragged: The locator of element to be dragged.coord string of drag destination object: Specifies the x,y position (e.g. – 10,20) of the locator of an element whose location will be the point where locator of object to be dragged is dropped.
drag_and_drop_to_objectDrag an object and drop it on another objectlocator of object to be dragged: The locator of element to be dragged.locator of drag destination object: The locator of an element whose location (e.g. the center-most pixel within it) will be the point where locator of object to be dragged is dropped.
execute_sendkeysSimulate keystroke events on the specified elements, as through you typed the value key by keylocator: An element locatorkey sequence: A sequence of keys to type, can be used to send keystrokes