You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: simplify Playwright clearField signature to match other helpers
Remove unused `options` parameter from Playwright's clearField. The
options were accepted but never passed to the underlying clear() call.
Now all helpers have consistent `clearField(locator, context)` signature.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: lib/helper/Playwright.js
+2-16Lines changed: 2 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -2278,23 +2278,9 @@ class Playwright extends Helper {
2278
2278
}
2279
2279
2280
2280
/**
2281
-
* Clears the text input element: `<input>`, `<textarea>` or `[contenteditable]` .
2282
-
*
2283
-
*
2284
-
* Examples:
2285
-
*
2286
-
* ```js
2287
-
* I.clearField('.text-area')
2288
-
*
2289
-
* // if this doesn't work use force option
2290
-
* I.clearField('#submit', { force: true })
2291
-
* ```
2292
-
* Use `force` to bypass the [actionability](https://playwright.dev/docs/actionability) checks.
2293
-
*
2294
-
* @param {CodeceptJS.LocatorOrString} locator field located by label|name|CSS|XPath|strict locator.
2295
-
* @param {any} [options] [Additional options](https://playwright.dev/docs/api/class-locator#locator-clear) for available options object as 2nd argument.
0 commit comments