Skip to main content
Element Handle actions methods for the Puppeteer driver.

click

Click the element. Upstream docs
options
PuppeteerClickOptions
await element.click();

hover

Hover over the element. Upstream docs
await element.hover();

tap

Tap the element (for touch devices). Upstream docs
await element.tap();

focus

Focus the element. Upstream docs
await element.focus();

type

Type text into the element. Upstream docs
text
string
required
options
PuppeteerKeyboardTypeOptions
await element.type('...');

press

Press a key while focused on the element. Upstream docs
key
string
required
options
PuppeteerKeyPressOptions
await element.press('...');

select

Select options in a <select> element. Upstream docs
values
string[]
required
result
string[]
Return value
await element.select(/* string[] */);

dragAndDrop

Drag and drop to another element or point. Upstream docs
target
HandleRef | PuppeteerPoint
required
Target element or point to drop onto.
options
{ delay?: number }
await element.dragAndDrop(/* HandleRef | PuppeteerPoint */);