Skip to content

Commit 48d2faf

Browse files
author
DavertMik
committed
fixed puppeteer tests
1 parent 4fa0af9 commit 48d2faf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/element/WebElement.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ class WebElement {
249249
case 'webdriver':
250250
return this.element.setValue(text)
251251
case 'puppeteer':
252+
await this.element.evaluate(el => { el.value = '' })
252253
return this.element.type(text, options)
253254
default:
254255
throw new Error(`Unsupported helper type: ${this.helperType}`)

0 commit comments

Comments
 (0)