Skip to content

Commit 6792b70

Browse files
Replace type to fill (#94)
* Replace a deprecated method element.type()
1 parent b6602c9 commit 6792b70

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
88
:beetle: - bugfix
99
:x: - deprecation
1010

11+
## [0.41.2]
12+
- :rocket: replaced deprecated type() method with fill()
13+
1114
## [0.41.1]
1215
- :rocket: added _reuseSession_ option to keep browser/application opened after test ends
1316

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@qavajs/steps-playwright",
3-
"version": "0.41.1",
3+
"version": "0.41.2",
44
"description": "steps to interact with playwright",
55
"main": "./index.js",
66
"scripts": {

src/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ When('I open {string} url', async function (url: string) {
3232
When('I type {string} to {string}', async function (value: string, alias: string) {
3333
const element = await getElement(alias);
3434
const typeValue = await getValue(value);
35-
await element.type(typeValue);
35+
await element.fill(typeValue);
3636
});
3737

3838
/**

0 commit comments

Comments
 (0)