@serenity-js/webdriverio 3.25.0 → 3.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +1 -1
- package/esm/config/WebdriverIOConfig.d.ts +7 -7
- package/esm/screenplay/abilities/BrowseTheWebWithWebdriverIO.d.ts +5 -5
- package/esm/screenplay/abilities/BrowseTheWebWithWebdriverIO.js +5 -5
- package/esm/screenplay/models/WebdriverIOBrowsingSession.d.ts +1 -1
- package/esm/screenplay/models/WebdriverIOBrowsingSession.js +1 -1
- package/esm/screenplay/models/WebdriverIOCookie.d.ts +1 -1
- package/esm/screenplay/models/WebdriverIOCookie.js +1 -1
- package/esm/screenplay/models/WebdriverIOModalDialogHandler.d.ts +1 -4
- package/esm/screenplay/models/WebdriverIOModalDialogHandler.d.ts.map +1 -1
- package/esm/screenplay/models/WebdriverIOModalDialogHandler.js +1 -4
- package/esm/screenplay/models/WebdriverIOModalDialogHandler.js.map +1 -1
- package/esm/screenplay/models/WebdriverIOPage.d.ts +1 -1
- package/esm/screenplay/models/WebdriverIOPage.js +1 -1
- package/esm/screenplay/models/WebdriverIOPageElement.d.ts +1 -1
- package/esm/screenplay/models/WebdriverIOPageElement.js +1 -1
- package/esm/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.d.ts +1 -4
- package/esm/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.d.ts.map +1 -1
- package/esm/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.js +1 -4
- package/esm/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.js.map +1 -1
- package/esm/screenplay/models/locators/WebdriverIOLocator.d.ts +1 -1
- package/esm/screenplay/models/locators/WebdriverIOLocator.js +1 -1
- package/esm/screenplay/models/locators/WebdriverIORootLocator.d.ts +1 -1
- package/esm/screenplay/models/locators/WebdriverIORootLocator.js +1 -1
- package/lib/config/WebdriverIOConfig.d.ts +7 -7
- package/lib/screenplay/abilities/BrowseTheWebWithWebdriverIO.d.ts +5 -5
- package/lib/screenplay/abilities/BrowseTheWebWithWebdriverIO.js +5 -5
- package/lib/screenplay/models/WebdriverIOBrowsingSession.d.ts +1 -1
- package/lib/screenplay/models/WebdriverIOBrowsingSession.js +1 -1
- package/lib/screenplay/models/WebdriverIOCookie.d.ts +1 -1
- package/lib/screenplay/models/WebdriverIOCookie.js +1 -1
- package/lib/screenplay/models/WebdriverIOModalDialogHandler.d.ts +1 -4
- package/lib/screenplay/models/WebdriverIOModalDialogHandler.d.ts.map +1 -1
- package/lib/screenplay/models/WebdriverIOModalDialogHandler.js +1 -4
- package/lib/screenplay/models/WebdriverIOModalDialogHandler.js.map +1 -1
- package/lib/screenplay/models/WebdriverIOPage.d.ts +1 -1
- package/lib/screenplay/models/WebdriverIOPage.js +1 -1
- package/lib/screenplay/models/WebdriverIOPageElement.d.ts +1 -1
- package/lib/screenplay/models/WebdriverIOPageElement.js +1 -1
- package/lib/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.d.ts +1 -4
- package/lib/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.d.ts.map +1 -1
- package/lib/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.js +1 -4
- package/lib/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.js.map +1 -1
- package/lib/screenplay/models/locators/WebdriverIOLocator.d.ts +1 -1
- package/lib/screenplay/models/locators/WebdriverIOLocator.js +1 -1
- package/lib/screenplay/models/locators/WebdriverIORootLocator.d.ts +1 -1
- package/lib/screenplay/models/locators/WebdriverIORootLocator.js +1 -1
- package/package.json +5 -5
- package/src/config/WebdriverIOConfig.ts +7 -7
- package/src/screenplay/abilities/BrowseTheWebWithWebdriverIO.ts +5 -5
- package/src/screenplay/models/WebdriverIOBrowsingSession.ts +1 -1
- package/src/screenplay/models/WebdriverIOCookie.ts +1 -1
- package/src/screenplay/models/WebdriverIOModalDialogHandler.ts +1 -4
- package/src/screenplay/models/WebdriverIOPage.ts +1 -1
- package/src/screenplay/models/WebdriverIOPageElement.ts +1 -1
- package/src/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.ts +1 -4
- package/src/screenplay/models/locators/WebdriverIOLocator.ts +1 -1
- package/src/screenplay/models/locators/WebdriverIORootLocator.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.25.1](https://github.com/serenity-js/serenity-js/compare/v3.25.0...v3.25.1) (2024-07-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **core:** all the API docs now link to the online Serenity/JS API documentation ([f8f451d](https://github.com/serenity-js/serenity-js/commit/f8f451dffdb4caaa2e31a860f59d59470f4856ad))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.25.0](https://github.com/serenity-js/serenity-js/compare/v3.24.1...v3.25.0) (2024-07-03)
|
|
7
18
|
|
|
8
19
|
|
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ of complex software systems faster, more collaborative and easier to scale.
|
|
|
17
17
|
👋 Join the Serenity/JS Community!
|
|
18
18
|
- Meet other Serenity/JS developers and maintainers on the [Serenity/JS Community chat channel](https://matrix.to/#/#serenity-js:gitter.im),
|
|
19
19
|
- Find answers to your Serenity/JS questions on the [Serenity/JS Forum](https://github.com/orgs/serenity-js/discussions/categories/how-do-i),
|
|
20
|
-
- Learn how to [contribute to Serenity/JS](https://serenity-js.org/contributing),
|
|
20
|
+
- Learn how to [contribute to Serenity/JS](https://serenity-js.org/community/contributing/),
|
|
21
21
|
- Support the project and gain access to [Serenity/JS Playbooks](https://github.com/serenity-js/playbooks) by becoming a [Serenity/JS GitHub Sponsor](https://github.com/sponsors/serenity-js)!
|
|
22
22
|
|
|
23
23
|
## Serenity/JS WebdriverIO
|
|
@@ -2,7 +2,7 @@ import type { SerenityConfig } from '@serenity-js/core';
|
|
|
2
2
|
import type { Options } from '@wdio/types';
|
|
3
3
|
/**
|
|
4
4
|
* [WebdriverIO configuration object](https://webdriver.io/docs/configurationfile/),
|
|
5
|
-
* with Serenity/JS-specific
|
|
5
|
+
* with [Serenity/JS-specific additions](https://serenity-js.orgapi/core/class/SerenityConfig/).
|
|
6
6
|
*
|
|
7
7
|
* ## Integrating WebdriverIO with Serenity/JS
|
|
8
8
|
*
|
|
@@ -70,9 +70,9 @@ import type { Options } from '@wdio/types';
|
|
|
70
70
|
* ## Learn more
|
|
71
71
|
*
|
|
72
72
|
* - [WebdriverIO configuration file](https://webdriver.io/docs/configurationfile/)
|
|
73
|
-
* -
|
|
74
|
-
* -
|
|
75
|
-
* -
|
|
73
|
+
* - [`CucumberConfig`](https://serenity-js.org/api/cucumber-adapter/interface/CucumberConfig/)
|
|
74
|
+
* - [`JasmineConfig`](https://serenity-js.org/api/jasmine-adapter/interface/JasmineConfig/)
|
|
75
|
+
* - [`MochaConfig`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/)
|
|
76
76
|
*
|
|
77
77
|
* @group Configuration
|
|
78
78
|
*/
|
|
@@ -84,9 +84,9 @@ export interface WebdriverIOConfig extends Options.Testrunner {
|
|
|
84
84
|
* #### Learn more
|
|
85
85
|
*
|
|
86
86
|
* - [WebdriverIO configuration file](https://webdriver.io/docs/configurationfile/)
|
|
87
|
-
* -
|
|
88
|
-
* -
|
|
89
|
-
* -
|
|
87
|
+
* - [`CucumberConfig`](https://serenity-js.org/api/cucumber-adapter/interface/CucumberConfig/)
|
|
88
|
+
* - [`JasmineConfig`](https://serenity-js.org/api/jasmine-adapter/interface/JasmineConfig/)
|
|
89
|
+
* - [`MochaConfig`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/)
|
|
90
90
|
*/
|
|
91
91
|
serenity?: SerenityConfig & {
|
|
92
92
|
runner?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'webdriverio';
|
|
2
2
|
import { BrowseTheWeb } from '@serenity-js/web';
|
|
3
3
|
/**
|
|
4
|
-
* This implementation of the
|
|
5
|
-
* enables the
|
|
4
|
+
* This implementation of the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
5
|
+
* enables the [`Actor`](https://serenity-js.org/api/core/class/Actor/) to interact with web front-ends using [WebdriverIO](https://webdriver.io/).
|
|
6
6
|
*
|
|
7
7
|
* ## Using WebdriverIO to `BrowseTheWeb`
|
|
8
8
|
*
|
|
@@ -28,9 +28,9 @@ import { BrowseTheWeb } from '@serenity-js/web';
|
|
|
28
28
|
*
|
|
29
29
|
* ## Learn more
|
|
30
30
|
* - [WebdriverIO website](https://webdriver.io/)
|
|
31
|
-
* -
|
|
32
|
-
* -
|
|
33
|
-
* -
|
|
31
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
32
|
+
* - [`Ability`](https://serenity-js.org/api/core/class/Ability/)
|
|
33
|
+
* - [`Actor`](https://serenity-js.org/api/core/class/Actor/)
|
|
34
34
|
*
|
|
35
35
|
* @group Abilities
|
|
36
36
|
*/
|
|
@@ -2,8 +2,8 @@ import 'webdriverio';
|
|
|
2
2
|
import { BrowseTheWeb } from '@serenity-js/web';
|
|
3
3
|
import { WebdriverIOBrowsingSession } from '../models/index.js';
|
|
4
4
|
/**
|
|
5
|
-
* This implementation of the
|
|
6
|
-
* enables the
|
|
5
|
+
* This implementation of the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
6
|
+
* enables the [`Actor`](https://serenity-js.org/api/core/class/Actor/) to interact with web front-ends using [WebdriverIO](https://webdriver.io/).
|
|
7
7
|
*
|
|
8
8
|
* ## Using WebdriverIO to `BrowseTheWeb`
|
|
9
9
|
*
|
|
@@ -29,9 +29,9 @@ import { WebdriverIOBrowsingSession } from '../models/index.js';
|
|
|
29
29
|
*
|
|
30
30
|
* ## Learn more
|
|
31
31
|
* - [WebdriverIO website](https://webdriver.io/)
|
|
32
|
-
* -
|
|
33
|
-
* -
|
|
34
|
-
* -
|
|
32
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
33
|
+
* - [`Ability`](https://serenity-js.org/api/core/class/Ability/)
|
|
34
|
+
* - [`Actor`](https://serenity-js.org/api/core/class/Actor/)
|
|
35
35
|
*
|
|
36
36
|
* @group Abilities
|
|
37
37
|
*/
|
|
@@ -3,7 +3,7 @@ import type { BrowserCapabilities } from '@serenity-js/web';
|
|
|
3
3
|
import { BrowsingSession } from '@serenity-js/web';
|
|
4
4
|
import { WebdriverIOPage } from '../models/index.js';
|
|
5
5
|
/**
|
|
6
|
-
* WebdriverIO-specific implementation of
|
|
6
|
+
* WebdriverIO-specific implementation of [`BrowsingSession`](https://serenity-js.org/api/web/class/BrowsingSession/).
|
|
7
7
|
*
|
|
8
8
|
* @group Models
|
|
9
9
|
*/
|
|
@@ -7,7 +7,7 @@ import { WebdriverIOErrorHandler } from './WebdriverIOErrorHandler.js';
|
|
|
7
7
|
import { WebdriverIOModalDialogHandler } from './WebdriverIOModalDialogHandler.js';
|
|
8
8
|
import { WebdriverIOPuppeteerModalDialogHandler } from './WebdriverIOPuppeteerModalDialogHandler.js';
|
|
9
9
|
/**
|
|
10
|
-
* WebdriverIO-specific implementation of
|
|
10
|
+
* WebdriverIO-specific implementation of [`BrowsingSession`](https://serenity-js.org/api/web/class/BrowsingSession/).
|
|
11
11
|
*
|
|
12
12
|
* @group Models
|
|
13
13
|
*/
|
|
@@ -2,7 +2,7 @@ import 'webdriverio';
|
|
|
2
2
|
import type { CookieData } from '@serenity-js/web';
|
|
3
3
|
import { Cookie } from '@serenity-js/web';
|
|
4
4
|
/**
|
|
5
|
-
* WebdriverIO-specific implementation of
|
|
5
|
+
* WebdriverIO-specific implementation of [`Cookie`](https://serenity-js.org/api/web/class/Cookie/).
|
|
6
6
|
*
|
|
7
7
|
* @group Models
|
|
8
8
|
*/
|
|
@@ -3,7 +3,7 @@ import { Timestamp } from '@serenity-js/core';
|
|
|
3
3
|
import { Cookie, CookieMissingError } from '@serenity-js/web';
|
|
4
4
|
import { ensure, isDefined } from 'tiny-types';
|
|
5
5
|
/**
|
|
6
|
-
* WebdriverIO-specific implementation of
|
|
6
|
+
* WebdriverIO-specific implementation of [`Cookie`](https://serenity-js.org/api/web/class/Cookie/).
|
|
7
7
|
*
|
|
8
8
|
* @group Models
|
|
9
9
|
*/
|
|
@@ -3,12 +3,9 @@ import type { ModalDialog } from '@serenity-js/web';
|
|
|
3
3
|
import { ModalDialogHandler } from '@serenity-js/web';
|
|
4
4
|
import type { WebdriverIOErrorHandler } from './WebdriverIOErrorHandler.js';
|
|
5
5
|
/**
|
|
6
|
-
* WebdriverIO-specific implementation of
|
|
6
|
+
* WebdriverIO-specific implementation of [`ModalDialogHandler`](https://serenity-js.org/api/web/class/ModalDialogHandler/),
|
|
7
7
|
* used with the [WebDriver protocol](https://webdriver.io/docs/api/webdriver).
|
|
8
8
|
*
|
|
9
|
-
* ## Learn more
|
|
10
|
-
* - {@apilink WebdriverIOPuppeteerModalDialogHandler}
|
|
11
|
-
*
|
|
12
9
|
* @group Models
|
|
13
10
|
*/
|
|
14
11
|
export declare class WebdriverIOModalDialogHandler extends ModalDialogHandler {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebdriverIOModalDialogHandler.d.ts","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOModalDialogHandler.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAgE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEpH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAG5E
|
|
1
|
+
{"version":3,"file":"WebdriverIOModalDialogHandler.d.ts","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOModalDialogHandler.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAgE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEpH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAG5E;;;;;GAKG;AACH,qBAAa,6BAA8B,SAAQ,kBAAkB;IAc7D,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAbjC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAO1B;IAEL,OAAO,CAAC,cAAc,CAAsB;gBAGvB,OAAO,EAAE,WAAW,CAAC,OAAO,EAC5B,YAAY,EAAE,uBAAuB;IASpD,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAalC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAU3B,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAWzD,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAU5B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAK5B;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC;CAQrC"}
|
|
@@ -2,12 +2,9 @@ import 'webdriverio';
|
|
|
2
2
|
import { AbsentModalDialog, AcceptedModalDialog, DismissedModalDialog, ModalDialogHandler } from '@serenity-js/web';
|
|
3
3
|
import { WebdriverProtocolErrorCode } from './WebdriverProtocolErrorCode.js';
|
|
4
4
|
/**
|
|
5
|
-
* WebdriverIO-specific implementation of
|
|
5
|
+
* WebdriverIO-specific implementation of [`ModalDialogHandler`](https://serenity-js.org/api/web/class/ModalDialogHandler/),
|
|
6
6
|
* used with the [WebDriver protocol](https://webdriver.io/docs/api/webdriver).
|
|
7
7
|
*
|
|
8
|
-
* ## Learn more
|
|
9
|
-
* - {@apilink WebdriverIOPuppeteerModalDialogHandler}
|
|
10
|
-
*
|
|
11
8
|
* @group Models
|
|
12
9
|
*/
|
|
13
10
|
export class WebdriverIOModalDialogHandler extends ModalDialogHandler {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebdriverIOModalDialogHandler.js","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOModalDialogHandler.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGpH,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E
|
|
1
|
+
{"version":3,"file":"WebdriverIOModalDialogHandler.js","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOModalDialogHandler.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGpH,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E;;;;;GAKG;AACH,MAAM,OAAO,6BAA8B,SAAQ,kBAAkB;IAc5C;IACA;IAbJ,cAAc,GAC3B,KAAK,IAAI,EAAE;QACP,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;QAElD,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;QAElC,IAAI,CAAC,WAAW,GAAG,IAAI,oBAAoB,CAAC,OAAO,CAAC,CAAC;IACzD,CAAC,CAAA;IAEG,cAAc,CAAsB;IAE5C,YACqB,OAA4B,EAC5B,YAAqC;QAEtD,KAA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,CAAC;QACxD,CAAC,CAAC;IACN,CAAC;IAED,KAAK,CAAC,WAAW;QACb,IAAI,CAAC,cAAc,GAAG,KAAK,IAAI,EAAE;YAC7B,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;YAElD,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;YAElC,IAAI,CAAC,WAAW,GAAG,IAAI,oBAAoB,CAAC,OAAO,CAAC,CAAC;QACzD,CAAC,CAAA;IACL,CAAC;IAED,KAAK,CAAC,KAAK;QACP,IAAI,CAAC,WAAW,GAAG,IAAI,iBAAiB,EAAE,CAAC;QAC3C,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI;QAEN,IAAI,IAAI,CAAC,WAAW,YAAY,iBAAiB,EAAE;YAC/C,MAAM,IAAI,CAAC,iBAAiB,EAAE,CAAC;SAClC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;CACJ"}
|
|
@@ -7,7 +7,7 @@ import { URL } from 'url';
|
|
|
7
7
|
import type { WebdriverIOBrowsingSession } from './WebdriverIOBrowsingSession.js';
|
|
8
8
|
import type { WebdriverIOErrorHandler } from './WebdriverIOErrorHandler.js';
|
|
9
9
|
/**
|
|
10
|
-
* WebdriverIO-specific implementation of
|
|
10
|
+
* WebdriverIO-specific implementation of [`Page`](https://serenity-js.org/api/web/class/Page/).
|
|
11
11
|
*
|
|
12
12
|
* @group Models
|
|
13
13
|
*/
|
|
@@ -7,7 +7,7 @@ import { WebdriverIOExistingElementLocator, WebdriverIOLocator, WebdriverIORootL
|
|
|
7
7
|
import { WebdriverIOCookie } from './WebdriverIOCookie.js';
|
|
8
8
|
import { WebdriverIOPageElement } from './WebdriverIOPageElement.js';
|
|
9
9
|
/**
|
|
10
|
-
* WebdriverIO-specific implementation of
|
|
10
|
+
* WebdriverIO-specific implementation of [`Page`](https://serenity-js.org/api/web/class/Page/).
|
|
11
11
|
*
|
|
12
12
|
* @group Models
|
|
13
13
|
*/
|
|
@@ -2,7 +2,7 @@ import 'webdriverio';
|
|
|
2
2
|
import type { SwitchableOrigin } from '@serenity-js/web';
|
|
3
3
|
import { PageElement, SelectOption } from '@serenity-js/web';
|
|
4
4
|
/**
|
|
5
|
-
* WebdriverIO-specific implementation of
|
|
5
|
+
* WebdriverIO-specific implementation of [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
6
6
|
*
|
|
7
7
|
* @group Models
|
|
8
8
|
*/
|
|
@@ -4,7 +4,7 @@ import { Key, PageElement, SelectOption } from '@serenity-js/web';
|
|
|
4
4
|
import * as scripts from '@serenity-js/web/lib/scripts/index.js';
|
|
5
5
|
import { WebdriverProtocolErrorCode } from './WebdriverProtocolErrorCode.js';
|
|
6
6
|
/**
|
|
7
|
-
* WebdriverIO-specific implementation of
|
|
7
|
+
* WebdriverIO-specific implementation of [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
8
8
|
*
|
|
9
9
|
* @group Models
|
|
10
10
|
*/
|
|
@@ -2,7 +2,7 @@ import type { ModalDialog } from '@serenity-js/web';
|
|
|
2
2
|
import { ModalDialogHandler } from '@serenity-js/web';
|
|
3
3
|
import type { Page } from 'puppeteer-core';
|
|
4
4
|
/**
|
|
5
|
-
* WebdriverIO-specific implementation of
|
|
5
|
+
* WebdriverIO-specific implementation of [`ModalDialogHandler`](https://serenity-js.org/api/web/class/ModalDialogHandler/), applicable when WebdriverIO
|
|
6
6
|
* uses [Puppeteer](https://developer.chrome.com/docs/puppeteer/).
|
|
7
7
|
*
|
|
8
8
|
* Automatically handles any simple JavaScript modal dialog windows, such as
|
|
@@ -12,9 +12,6 @@ import type { Page } from 'puppeteer-core';
|
|
|
12
12
|
*
|
|
13
13
|
* This helps to avoid Puppeteer hanging when there's an interaction pending
|
|
14
14
|
* and a dialog is already open, see https://github.com/puppeteer/puppeteer/issues/2481
|
|
15
|
-
*
|
|
16
|
-
* ## Learn more
|
|
17
|
-
* - {@apilink WebdriverIOModalDialogHandler}
|
|
18
15
|
*/
|
|
19
16
|
export declare class WebdriverIOPuppeteerModalDialogHandler extends ModalDialogHandler {
|
|
20
17
|
private readonly page;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebdriverIOPuppeteerModalDialogHandler.d.ts","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAIH,kBAAkB,EACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAU,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEnD
|
|
1
|
+
{"version":3,"file":"WebdriverIOPuppeteerModalDialogHandler.d.ts","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAIH,kBAAkB,EACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAU,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;;;;;;;GAWG;AACH,qBAAa,sCAAuC,SAAQ,kBAAkB;IAY9D,OAAO,CAAC,QAAQ,CAAC,IAAI;IAVjC,OAAO,CAAC,wBAAwB,CAAS;IAEzC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAI1B;IAEL,OAAO,CAAC,cAAc,CAA2C;gBAEpC,IAAI,EAAE,IAAI;IAiBjC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAO3B,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOzD,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAO5B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAKtB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC;YAWpB,iBAAiB;CAOlC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbsentModalDialog, AcceptedModalDialog, DismissedModalDialog, ModalDialogHandler } from '@serenity-js/web';
|
|
2
2
|
/**
|
|
3
|
-
* WebdriverIO-specific implementation of
|
|
3
|
+
* WebdriverIO-specific implementation of [`ModalDialogHandler`](https://serenity-js.org/api/web/class/ModalDialogHandler/), applicable when WebdriverIO
|
|
4
4
|
* uses [Puppeteer](https://developer.chrome.com/docs/puppeteer/).
|
|
5
5
|
*
|
|
6
6
|
* Automatically handles any simple JavaScript modal dialog windows, such as
|
|
@@ -10,9 +10,6 @@ import { AbsentModalDialog, AcceptedModalDialog, DismissedModalDialog, ModalDial
|
|
|
10
10
|
*
|
|
11
11
|
* This helps to avoid Puppeteer hanging when there's an interaction pending
|
|
12
12
|
* and a dialog is already open, see https://github.com/puppeteer/puppeteer/issues/2481
|
|
13
|
-
*
|
|
14
|
-
* ## Learn more
|
|
15
|
-
* - {@apilink WebdriverIOModalDialogHandler}
|
|
16
13
|
*/
|
|
17
14
|
export class WebdriverIOPuppeteerModalDialogHandler extends ModalDialogHandler {
|
|
18
15
|
page;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebdriverIOPuppeteerModalDialogHandler.js","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EACrB,MAAM,kBAAkB,CAAC;AAG1B
|
|
1
|
+
{"version":3,"file":"WebdriverIOPuppeteerModalDialogHandler.js","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,iBAAiB,E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import type { PageElement, RootLocator, Selector } from '@serenity-js/web';
|
|
|
3
3
|
import { Locator } from '@serenity-js/web';
|
|
4
4
|
import type { WebdriverIOErrorHandler } from '../WebdriverIOErrorHandler.js';
|
|
5
5
|
/**
|
|
6
|
-
* WebdriverIO-specific implementation of
|
|
6
|
+
* WebdriverIO-specific implementation of [`Locator`](https://serenity-js.org/api/web/class/Locator/).
|
|
7
7
|
*
|
|
8
8
|
* @group Models
|
|
9
9
|
*/
|
|
@@ -3,7 +3,7 @@ import { f, LogicError } from '@serenity-js/core';
|
|
|
3
3
|
import { ByCss, ByCssContainingText, ByDeepCss, ById, ByTagName, ByXPath, Locator } from '@serenity-js/web';
|
|
4
4
|
import { WebdriverIOPageElement } from '../WebdriverIOPageElement.js';
|
|
5
5
|
/**
|
|
6
|
-
* WebdriverIO-specific implementation of
|
|
6
|
+
* WebdriverIO-specific implementation of [`Locator`](https://serenity-js.org/api/web/class/Locator/).
|
|
7
7
|
*
|
|
8
8
|
* @group Models
|
|
9
9
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'webdriverio';
|
|
2
2
|
import { RootLocator } from '@serenity-js/web';
|
|
3
3
|
/**
|
|
4
|
-
* WebdriverIO-specific implementation of
|
|
4
|
+
* WebdriverIO-specific implementation of [`RootLocator`](https://serenity-js.org/api/web/class/RootLocator/).
|
|
5
5
|
*
|
|
6
6
|
* @group Models
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'webdriverio';
|
|
2
2
|
import { RootLocator } from '@serenity-js/web';
|
|
3
3
|
/**
|
|
4
|
-
* WebdriverIO-specific implementation of
|
|
4
|
+
* WebdriverIO-specific implementation of [`RootLocator`](https://serenity-js.org/api/web/class/RootLocator/).
|
|
5
5
|
*
|
|
6
6
|
* @group Models
|
|
7
7
|
*/
|
|
@@ -2,7 +2,7 @@ import type { SerenityConfig } from '@serenity-js/core';
|
|
|
2
2
|
import type { Options } from '@wdio/types';
|
|
3
3
|
/**
|
|
4
4
|
* [WebdriverIO configuration object](https://webdriver.io/docs/configurationfile/),
|
|
5
|
-
* with Serenity/JS-specific
|
|
5
|
+
* with [Serenity/JS-specific additions](https://serenity-js.orgapi/core/class/SerenityConfig/).
|
|
6
6
|
*
|
|
7
7
|
* ## Integrating WebdriverIO with Serenity/JS
|
|
8
8
|
*
|
|
@@ -70,9 +70,9 @@ import type { Options } from '@wdio/types';
|
|
|
70
70
|
* ## Learn more
|
|
71
71
|
*
|
|
72
72
|
* - [WebdriverIO configuration file](https://webdriver.io/docs/configurationfile/)
|
|
73
|
-
* -
|
|
74
|
-
* -
|
|
75
|
-
* -
|
|
73
|
+
* - [`CucumberConfig`](https://serenity-js.org/api/cucumber-adapter/interface/CucumberConfig/)
|
|
74
|
+
* - [`JasmineConfig`](https://serenity-js.org/api/jasmine-adapter/interface/JasmineConfig/)
|
|
75
|
+
* - [`MochaConfig`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/)
|
|
76
76
|
*
|
|
77
77
|
* @group Configuration
|
|
78
78
|
*/
|
|
@@ -84,9 +84,9 @@ export interface WebdriverIOConfig extends Options.Testrunner {
|
|
|
84
84
|
* #### Learn more
|
|
85
85
|
*
|
|
86
86
|
* - [WebdriverIO configuration file](https://webdriver.io/docs/configurationfile/)
|
|
87
|
-
* -
|
|
88
|
-
* -
|
|
89
|
-
* -
|
|
87
|
+
* - [`CucumberConfig`](https://serenity-js.org/api/cucumber-adapter/interface/CucumberConfig/)
|
|
88
|
+
* - [`JasmineConfig`](https://serenity-js.org/api/jasmine-adapter/interface/JasmineConfig/)
|
|
89
|
+
* - [`MochaConfig`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/)
|
|
90
90
|
*/
|
|
91
91
|
serenity?: SerenityConfig & {
|
|
92
92
|
runner?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'webdriverio';
|
|
2
2
|
import { BrowseTheWeb } from '@serenity-js/web';
|
|
3
3
|
/**
|
|
4
|
-
* This implementation of the
|
|
5
|
-
* enables the
|
|
4
|
+
* This implementation of the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
5
|
+
* enables the [`Actor`](https://serenity-js.org/api/core/class/Actor/) to interact with web front-ends using [WebdriverIO](https://webdriver.io/).
|
|
6
6
|
*
|
|
7
7
|
* ## Using WebdriverIO to `BrowseTheWeb`
|
|
8
8
|
*
|
|
@@ -28,9 +28,9 @@ import { BrowseTheWeb } from '@serenity-js/web';
|
|
|
28
28
|
*
|
|
29
29
|
* ## Learn more
|
|
30
30
|
* - [WebdriverIO website](https://webdriver.io/)
|
|
31
|
-
* -
|
|
32
|
-
* -
|
|
33
|
-
* -
|
|
31
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
32
|
+
* - [`Ability`](https://serenity-js.org/api/core/class/Ability/)
|
|
33
|
+
* - [`Actor`](https://serenity-js.org/api/core/class/Actor/)
|
|
34
34
|
*
|
|
35
35
|
* @group Abilities
|
|
36
36
|
*/
|
|
@@ -5,8 +5,8 @@ require("webdriverio");
|
|
|
5
5
|
const web_1 = require("@serenity-js/web");
|
|
6
6
|
const index_js_1 = require("../models/index.js");
|
|
7
7
|
/**
|
|
8
|
-
* This implementation of the
|
|
9
|
-
* enables the
|
|
8
|
+
* This implementation of the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
9
|
+
* enables the [`Actor`](https://serenity-js.org/api/core/class/Actor/) to interact with web front-ends using [WebdriverIO](https://webdriver.io/).
|
|
10
10
|
*
|
|
11
11
|
* ## Using WebdriverIO to `BrowseTheWeb`
|
|
12
12
|
*
|
|
@@ -32,9 +32,9 @@ const index_js_1 = require("../models/index.js");
|
|
|
32
32
|
*
|
|
33
33
|
* ## Learn more
|
|
34
34
|
* - [WebdriverIO website](https://webdriver.io/)
|
|
35
|
-
* -
|
|
36
|
-
* -
|
|
37
|
-
* -
|
|
35
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
36
|
+
* - [`Ability`](https://serenity-js.org/api/core/class/Ability/)
|
|
37
|
+
* - [`Actor`](https://serenity-js.org/api/core/class/Actor/)
|
|
38
38
|
*
|
|
39
39
|
* @group Abilities
|
|
40
40
|
*/
|
|
@@ -3,7 +3,7 @@ import type { BrowserCapabilities } from '@serenity-js/web';
|
|
|
3
3
|
import { BrowsingSession } from '@serenity-js/web';
|
|
4
4
|
import { WebdriverIOPage } from '../models/index.js';
|
|
5
5
|
/**
|
|
6
|
-
* WebdriverIO-specific implementation of
|
|
6
|
+
* WebdriverIO-specific implementation of [`BrowsingSession`](https://serenity-js.org/api/web/class/BrowsingSession/).
|
|
7
7
|
*
|
|
8
8
|
* @group Models
|
|
9
9
|
*/
|
|
@@ -10,7 +10,7 @@ const WebdriverIOErrorHandler_js_1 = require("./WebdriverIOErrorHandler.js");
|
|
|
10
10
|
const WebdriverIOModalDialogHandler_js_1 = require("./WebdriverIOModalDialogHandler.js");
|
|
11
11
|
const WebdriverIOPuppeteerModalDialogHandler_js_1 = require("./WebdriverIOPuppeteerModalDialogHandler.js");
|
|
12
12
|
/**
|
|
13
|
-
* WebdriverIO-specific implementation of
|
|
13
|
+
* WebdriverIO-specific implementation of [`BrowsingSession`](https://serenity-js.org/api/web/class/BrowsingSession/).
|
|
14
14
|
*
|
|
15
15
|
* @group Models
|
|
16
16
|
*/
|
|
@@ -2,7 +2,7 @@ import 'webdriverio';
|
|
|
2
2
|
import type { CookieData } from '@serenity-js/web';
|
|
3
3
|
import { Cookie } from '@serenity-js/web';
|
|
4
4
|
/**
|
|
5
|
-
* WebdriverIO-specific implementation of
|
|
5
|
+
* WebdriverIO-specific implementation of [`Cookie`](https://serenity-js.org/api/web/class/Cookie/).
|
|
6
6
|
*
|
|
7
7
|
* @group Models
|
|
8
8
|
*/
|
|
@@ -6,7 +6,7 @@ const core_1 = require("@serenity-js/core");
|
|
|
6
6
|
const web_1 = require("@serenity-js/web");
|
|
7
7
|
const tiny_types_1 = require("tiny-types");
|
|
8
8
|
/**
|
|
9
|
-
* WebdriverIO-specific implementation of
|
|
9
|
+
* WebdriverIO-specific implementation of [`Cookie`](https://serenity-js.org/api/web/class/Cookie/).
|
|
10
10
|
*
|
|
11
11
|
* @group Models
|
|
12
12
|
*/
|
|
@@ -3,12 +3,9 @@ import type { ModalDialog } from '@serenity-js/web';
|
|
|
3
3
|
import { ModalDialogHandler } from '@serenity-js/web';
|
|
4
4
|
import type { WebdriverIOErrorHandler } from './WebdriverIOErrorHandler.js';
|
|
5
5
|
/**
|
|
6
|
-
* WebdriverIO-specific implementation of
|
|
6
|
+
* WebdriverIO-specific implementation of [`ModalDialogHandler`](https://serenity-js.org/api/web/class/ModalDialogHandler/),
|
|
7
7
|
* used with the [WebDriver protocol](https://webdriver.io/docs/api/webdriver).
|
|
8
8
|
*
|
|
9
|
-
* ## Learn more
|
|
10
|
-
* - {@apilink WebdriverIOPuppeteerModalDialogHandler}
|
|
11
|
-
*
|
|
12
9
|
* @group Models
|
|
13
10
|
*/
|
|
14
11
|
export declare class WebdriverIOModalDialogHandler extends ModalDialogHandler {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebdriverIOModalDialogHandler.d.ts","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOModalDialogHandler.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAgE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEpH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAG5E
|
|
1
|
+
{"version":3,"file":"WebdriverIOModalDialogHandler.d.ts","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOModalDialogHandler.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAgE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEpH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAG5E;;;;;GAKG;AACH,qBAAa,6BAA8B,SAAQ,kBAAkB;IAc7D,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAbjC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAO1B;IAEL,OAAO,CAAC,cAAc,CAAsB;gBAGvB,OAAO,EAAE,WAAW,CAAC,OAAO,EAC5B,YAAY,EAAE,uBAAuB;IASpD,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAalC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAU3B,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAWzD,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAU5B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAK5B;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC;CAQrC"}
|
|
@@ -5,12 +5,9 @@ require("webdriverio");
|
|
|
5
5
|
const web_1 = require("@serenity-js/web");
|
|
6
6
|
const WebdriverProtocolErrorCode_js_1 = require("./WebdriverProtocolErrorCode.js");
|
|
7
7
|
/**
|
|
8
|
-
* WebdriverIO-specific implementation of
|
|
8
|
+
* WebdriverIO-specific implementation of [`ModalDialogHandler`](https://serenity-js.org/api/web/class/ModalDialogHandler/),
|
|
9
9
|
* used with the [WebDriver protocol](https://webdriver.io/docs/api/webdriver).
|
|
10
10
|
*
|
|
11
|
-
* ## Learn more
|
|
12
|
-
* - {@apilink WebdriverIOPuppeteerModalDialogHandler}
|
|
13
|
-
*
|
|
14
11
|
* @group Models
|
|
15
12
|
*/
|
|
16
13
|
class WebdriverIOModalDialogHandler extends web_1.ModalDialogHandler {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebdriverIOModalDialogHandler.js","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOModalDialogHandler.ts"],"names":[],"mappings":";;;AAAA,uBAAqB;AAGrB,0CAAoH;AAGpH,mFAA6E;AAE7E
|
|
1
|
+
{"version":3,"file":"WebdriverIOModalDialogHandler.js","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOModalDialogHandler.ts"],"names":[],"mappings":";;;AAAA,uBAAqB;AAGrB,0CAAoH;AAGpH,mFAA6E;AAE7E;;;;;GAKG;AACH,MAAa,6BAA8B,SAAQ,wBAAkB;IAc5C;IACA;IAbJ,cAAc,GAC3B,KAAK,IAAI,EAAE;QACP,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;QAElD,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;QAElC,IAAI,CAAC,WAAW,GAAG,IAAI,0BAAoB,CAAC,OAAO,CAAC,CAAC;IACzD,CAAC,CAAA;IAEG,cAAc,CAAsB;IAE5C,YACqB,OAA4B,EAC5B,YAAqC;QAEtD,KAAK,EAAE,CAAC;QAHS,YAAO,GAAP,OAAO,CAAqB;QAC5B,iBAAY,GAAZ,YAAY,CAAyB;QAItD,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAE1C,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,0DAA0B,CAAC,wBAAwB,EAAE,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAC7H,CAAC;IAED,KAAK,CAAC,iBAAiB;QACnB,IAAI;YACA,MAAM,IAAI,CAAC,cAAc,EAAE,CAAA;SAC9B;QACD,OAAO,KAAK,EAAE;YACV,IAAI,KAAK,CAAC,IAAI,KAAK,0DAA0B,CAA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G,IAAI,CAAC,cAAc,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI;QAEN,IAAI,IAAI,CAAC,WAAW,YAAY,uBAAiB,EAAE;YAC/C,MAAM,IAAI,CAAC,iBAAiB,EAAE,CAAC;SAClC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;CACJ;AApFD,sEAoFC"}
|
|
@@ -7,7 +7,7 @@ import { URL } from 'url';
|
|
|
7
7
|
import type { WebdriverIOBrowsingSession } from './WebdriverIOBrowsingSession.js';
|
|
8
8
|
import type { WebdriverIOErrorHandler } from './WebdriverIOErrorHandler.js';
|
|
9
9
|
/**
|
|
10
|
-
* WebdriverIO-specific implementation of
|
|
10
|
+
* WebdriverIO-specific implementation of [`Page`](https://serenity-js.org/api/web/class/Page/).
|
|
11
11
|
*
|
|
12
12
|
* @group Models
|
|
13
13
|
*/
|
|
@@ -33,7 +33,7 @@ const index_js_1 = require("./locators/index.js");
|
|
|
33
33
|
const WebdriverIOCookie_js_1 = require("./WebdriverIOCookie.js");
|
|
34
34
|
const WebdriverIOPageElement_js_1 = require("./WebdriverIOPageElement.js");
|
|
35
35
|
/**
|
|
36
|
-
* WebdriverIO-specific implementation of
|
|
36
|
+
* WebdriverIO-specific implementation of [`Page`](https://serenity-js.org/api/web/class/Page/).
|
|
37
37
|
*
|
|
38
38
|
* @group Models
|
|
39
39
|
*/
|
|
@@ -2,7 +2,7 @@ import 'webdriverio';
|
|
|
2
2
|
import type { SwitchableOrigin } from '@serenity-js/web';
|
|
3
3
|
import { PageElement, SelectOption } from '@serenity-js/web';
|
|
4
4
|
/**
|
|
5
|
-
* WebdriverIO-specific implementation of
|
|
5
|
+
* WebdriverIO-specific implementation of [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
6
6
|
*
|
|
7
7
|
* @group Models
|
|
8
8
|
*/
|
|
@@ -30,7 +30,7 @@ const web_1 = require("@serenity-js/web");
|
|
|
30
30
|
const scripts = __importStar(require("@serenity-js/web/lib/scripts/index.js"));
|
|
31
31
|
const WebdriverProtocolErrorCode_js_1 = require("./WebdriverProtocolErrorCode.js");
|
|
32
32
|
/**
|
|
33
|
-
* WebdriverIO-specific implementation of
|
|
33
|
+
* WebdriverIO-specific implementation of [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
34
34
|
*
|
|
35
35
|
* @group Models
|
|
36
36
|
*/
|
|
@@ -2,7 +2,7 @@ import type { ModalDialog } from '@serenity-js/web';
|
|
|
2
2
|
import { ModalDialogHandler } from '@serenity-js/web';
|
|
3
3
|
import type { Page } from 'puppeteer-core';
|
|
4
4
|
/**
|
|
5
|
-
* WebdriverIO-specific implementation of
|
|
5
|
+
* WebdriverIO-specific implementation of [`ModalDialogHandler`](https://serenity-js.org/api/web/class/ModalDialogHandler/), applicable when WebdriverIO
|
|
6
6
|
* uses [Puppeteer](https://developer.chrome.com/docs/puppeteer/).
|
|
7
7
|
*
|
|
8
8
|
* Automatically handles any simple JavaScript modal dialog windows, such as
|
|
@@ -12,9 +12,6 @@ import type { Page } from 'puppeteer-core';
|
|
|
12
12
|
*
|
|
13
13
|
* This helps to avoid Puppeteer hanging when there's an interaction pending
|
|
14
14
|
* and a dialog is already open, see https://github.com/puppeteer/puppeteer/issues/2481
|
|
15
|
-
*
|
|
16
|
-
* ## Learn more
|
|
17
|
-
* - {@apilink WebdriverIOModalDialogHandler}
|
|
18
15
|
*/
|
|
19
16
|
export declare class WebdriverIOPuppeteerModalDialogHandler extends ModalDialogHandler {
|
|
20
17
|
private readonly page;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebdriverIOPuppeteerModalDialogHandler.d.ts","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAIH,kBAAkB,EACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAU,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEnD
|
|
1
|
+
{"version":3,"file":"WebdriverIOPuppeteerModalDialogHandler.d.ts","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAIH,kBAAkB,EACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAU,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;;;;;;;GAWG;AACH,qBAAa,sCAAuC,SAAQ,kBAAkB;IAY9D,OAAO,CAAC,QAAQ,CAAC,IAAI;IAVjC,OAAO,CAAC,wBAAwB,CAAS;IAEzC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAI1B;IAEL,OAAO,CAAC,cAAc,CAA2C;gBAEpC,IAAI,EAAE,IAAI;IAiBjC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAO3B,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOzD,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAO5B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAKtB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC;YAWpB,iBAAiB;CAOlC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WebdriverIOPuppeteerModalDialogHandler = void 0;
|
|
4
4
|
const web_1 = require("@serenity-js/web");
|
|
5
5
|
/**
|
|
6
|
-
* WebdriverIO-specific implementation of
|
|
6
|
+
* WebdriverIO-specific implementation of [`ModalDialogHandler`](https://serenity-js.org/api/web/class/ModalDialogHandler/), applicable when WebdriverIO
|
|
7
7
|
* uses [Puppeteer](https://developer.chrome.com/docs/puppeteer/).
|
|
8
8
|
*
|
|
9
9
|
* Automatically handles any simple JavaScript modal dialog windows, such as
|
|
@@ -13,9 +13,6 @@ const web_1 = require("@serenity-js/web");
|
|
|
13
13
|
*
|
|
14
14
|
* This helps to avoid Puppeteer hanging when there's an interaction pending
|
|
15
15
|
* and a dialog is already open, see https://github.com/puppeteer/puppeteer/issues/2481
|
|
16
|
-
*
|
|
17
|
-
* ## Learn more
|
|
18
|
-
* - {@apilink WebdriverIOModalDialogHandler}
|
|
19
16
|
*/
|
|
20
17
|
class WebdriverIOPuppeteerModalDialogHandler extends web_1.ModalDialogHandler {
|
|
21
18
|
page;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebdriverIOPuppeteerModalDialogHandler.js","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.ts"],"names":[],"mappings":";;;AAEA,0CAK0B;AAG1B
|
|
1
|
+
{"version":3,"file":"WebdriverIOPuppeteerModalDialogHandler.js","sourceRoot":"","sources":["../../../src/screenplay/models/WebdriverIOPuppeteerModalDialogHandler.ts"],"names":[],"mappings":";;;AAEA,0CAK0B;AAG1B;;;;;;;;;;;GAWG;AACH,MAAa,sCAAuC,SAAQ,wBAAkB;IAY7C;IAVrB,wBAAwB,GAAG,KAAK,CAAC;IAExB,cAAc,GAC3B,KAAK,EAAE,MAAc,EAAE,EAAE;QACrB,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;QACvB,OAAO,IAAI,0BAAoB,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IACtD,CAAC,CAAA;IAEG,cAAc,CAA2C;IAEjE,YAA6B,IAAU;QACnC,KAAK,EAAE,CAAC;QADiB,SAAI,GAAJ,IAAI,CAAM;QAGnC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAE1C,mFAAmF;QACnF,uIAAuI;QACvI,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,QAAQ,C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AG,CAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,IAAI;QACN,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,EAAE;gBAC9B,IAAI,CAAC,IAAI,CAAC,wBAAwB,EAAE;oBAChC,aAAa,CAAC,QAAQ,CAAC,CAAC;oBACxB,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;iBAC7B;YACL,CAAC,EAAE,EAAE,CAAC,CAAC;QACX,CAAC,CAAC,CAAC;IACP,CAAC;IAEO,KAAK,CAAC,iBAAiB,CAAC,OAAiD;QAC7E,IAAI,CAAC,wBAAwB,GAAG,IAAI,CAAC;QAErC,IAAI,CAAC,WAAW,GAAG,MAAM,OAAO,EAAE,CAAC;QAEnC,IAAI,CAAC,wBAAwB,GAAG,KAAK,CAAC;IAC1C,CAAC;CACJ;AA7ED,wFA6EC"}
|
|
@@ -3,7 +3,7 @@ import type { PageElement, RootLocator, Selector } from '@serenity-js/web';
|
|
|
3
3
|
import { Locator } from '@serenity-js/web';
|
|
4
4
|
import type { WebdriverIOErrorHandler } from '../WebdriverIOErrorHandler.js';
|
|
5
5
|
/**
|
|
6
|
-
* WebdriverIO-specific implementation of
|
|
6
|
+
* WebdriverIO-specific implementation of [`Locator`](https://serenity-js.org/api/web/class/Locator/).
|
|
7
7
|
*
|
|
8
8
|
* @group Models
|
|
9
9
|
*/
|
|
@@ -6,7 +6,7 @@ const core_1 = require("@serenity-js/core");
|
|
|
6
6
|
const web_1 = require("@serenity-js/web");
|
|
7
7
|
const WebdriverIOPageElement_js_1 = require("../WebdriverIOPageElement.js");
|
|
8
8
|
/**
|
|
9
|
-
* WebdriverIO-specific implementation of
|
|
9
|
+
* WebdriverIO-specific implementation of [`Locator`](https://serenity-js.org/api/web/class/Locator/).
|
|
10
10
|
*
|
|
11
11
|
* @group Models
|
|
12
12
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'webdriverio';
|
|
2
2
|
import { RootLocator } from '@serenity-js/web';
|
|
3
3
|
/**
|
|
4
|
-
* WebdriverIO-specific implementation of
|
|
4
|
+
* WebdriverIO-specific implementation of [`RootLocator`](https://serenity-js.org/api/web/class/RootLocator/).
|
|
5
5
|
*
|
|
6
6
|
* @group Models
|
|
7
7
|
*/
|
|
@@ -4,7 +4,7 @@ exports.WebdriverIORootLocator = void 0;
|
|
|
4
4
|
require("webdriverio");
|
|
5
5
|
const web_1 = require("@serenity-js/web");
|
|
6
6
|
/**
|
|
7
|
-
* WebdriverIO-specific implementation of
|
|
7
|
+
* WebdriverIO-specific implementation of [`RootLocator`](https://serenity-js.org/api/web/class/RootLocator/).
|
|
8
8
|
*
|
|
9
9
|
* @group Models
|
|
10
10
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenity-js/webdriverio",
|
|
3
|
-
"version": "3.25.
|
|
3
|
+
"version": "3.25.1",
|
|
4
4
|
"description": "Serenity/JS reporter and Screenplay Pattern library for WebdriverIO",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jan Molak",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"node": "^16.13 || ^18.12 || ^20"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@serenity-js/core": "3.25.
|
|
69
|
-
"@serenity-js/rest": "3.25.
|
|
70
|
-
"@serenity-js/web": "3.25.
|
|
68
|
+
"@serenity-js/core": "3.25.1",
|
|
69
|
+
"@serenity-js/rest": "3.25.1",
|
|
70
|
+
"@serenity-js/web": "3.25.1",
|
|
71
71
|
"@wdio/reporter": "8.39.0",
|
|
72
72
|
"deepmerge": "4.3.1",
|
|
73
73
|
"tiny-types": "1.22.0"
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"start-server-and-test": "2.0.4",
|
|
110
110
|
"webdriverio": "8.39.0"
|
|
111
111
|
},
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "450b994115cf9f1a1547ef92ac9387e0c57821ce"
|
|
113
113
|
}
|
|
@@ -3,7 +3,7 @@ import type { Options } from '@wdio/types';
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* [WebdriverIO configuration object](https://webdriver.io/docs/configurationfile/),
|
|
6
|
-
* with Serenity/JS-specific
|
|
6
|
+
* with [Serenity/JS-specific additions](https://serenity-js.orgapi/core/class/SerenityConfig/).
|
|
7
7
|
*
|
|
8
8
|
* ## Integrating WebdriverIO with Serenity/JS
|
|
9
9
|
*
|
|
@@ -71,9 +71,9 @@ import type { Options } from '@wdio/types';
|
|
|
71
71
|
* ## Learn more
|
|
72
72
|
*
|
|
73
73
|
* - [WebdriverIO configuration file](https://webdriver.io/docs/configurationfile/)
|
|
74
|
-
* -
|
|
75
|
-
* -
|
|
76
|
-
* -
|
|
74
|
+
* - [`CucumberConfig`](https://serenity-js.org/api/cucumber-adapter/interface/CucumberConfig/)
|
|
75
|
+
* - [`JasmineConfig`](https://serenity-js.org/api/jasmine-adapter/interface/JasmineConfig/)
|
|
76
|
+
* - [`MochaConfig`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/)
|
|
77
77
|
*
|
|
78
78
|
* @group Configuration
|
|
79
79
|
*/
|
|
@@ -86,9 +86,9 @@ export interface WebdriverIOConfig extends Options.Testrunner {
|
|
|
86
86
|
* #### Learn more
|
|
87
87
|
*
|
|
88
88
|
* - [WebdriverIO configuration file](https://webdriver.io/docs/configurationfile/)
|
|
89
|
-
* -
|
|
90
|
-
* -
|
|
91
|
-
* -
|
|
89
|
+
* - [`CucumberConfig`](https://serenity-js.org/api/cucumber-adapter/interface/CucumberConfig/)
|
|
90
|
+
* - [`JasmineConfig`](https://serenity-js.org/api/jasmine-adapter/interface/JasmineConfig/)
|
|
91
|
+
* - [`MochaConfig`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/)
|
|
92
92
|
*/
|
|
93
93
|
serenity?: SerenityConfig & { runner?: string };
|
|
94
94
|
}
|
|
@@ -5,8 +5,8 @@ import { BrowseTheWeb } from '@serenity-js/web';
|
|
|
5
5
|
import { WebdriverIOBrowsingSession } from '../models/index.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* This implementation of the
|
|
9
|
-
* enables the
|
|
8
|
+
* This implementation of the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
9
|
+
* enables the [`Actor`](https://serenity-js.org/api/core/class/Actor/) to interact with web front-ends using [WebdriverIO](https://webdriver.io/).
|
|
10
10
|
*
|
|
11
11
|
* ## Using WebdriverIO to `BrowseTheWeb`
|
|
12
12
|
*
|
|
@@ -32,9 +32,9 @@ import { WebdriverIOBrowsingSession } from '../models/index.js';
|
|
|
32
32
|
*
|
|
33
33
|
* ## Learn more
|
|
34
34
|
* - [WebdriverIO website](https://webdriver.io/)
|
|
35
|
-
* -
|
|
36
|
-
* -
|
|
37
|
-
* -
|
|
35
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
36
|
+
* - [`Ability`](https://serenity-js.org/api/core/class/Ability/)
|
|
37
|
+
* - [`Actor`](https://serenity-js.org/api/core/class/Actor/)
|
|
38
38
|
*
|
|
39
39
|
* @group Abilities
|
|
40
40
|
*/
|
|
@@ -12,7 +12,7 @@ import { WebdriverIOModalDialogHandler } from './WebdriverIOModalDialogHandler.j
|
|
|
12
12
|
import { WebdriverIOPuppeteerModalDialogHandler } from './WebdriverIOPuppeteerModalDialogHandler.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* WebdriverIO-specific implementation of
|
|
15
|
+
* WebdriverIO-specific implementation of [`BrowsingSession`](https://serenity-js.org/api/web/class/BrowsingSession/).
|
|
16
16
|
*
|
|
17
17
|
* @group Models
|
|
18
18
|
*/
|
|
@@ -6,7 +6,7 @@ import { Cookie, CookieMissingError } from '@serenity-js/web';
|
|
|
6
6
|
import { ensure, isDefined } from 'tiny-types';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* WebdriverIO-specific implementation of
|
|
9
|
+
* WebdriverIO-specific implementation of [`Cookie`](https://serenity-js.org/api/web/class/Cookie/).
|
|
10
10
|
*
|
|
11
11
|
* @group Models
|
|
12
12
|
*/
|
|
@@ -7,12 +7,9 @@ import type { WebdriverIOErrorHandler } from './WebdriverIOErrorHandler.js';
|
|
|
7
7
|
import { WebdriverProtocolErrorCode } from './WebdriverProtocolErrorCode.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* WebdriverIO-specific implementation of
|
|
10
|
+
* WebdriverIO-specific implementation of [`ModalDialogHandler`](https://serenity-js.org/api/web/class/ModalDialogHandler/),
|
|
11
11
|
* used with the [WebDriver protocol](https://webdriver.io/docs/api/webdriver).
|
|
12
12
|
*
|
|
13
|
-
* ## Learn more
|
|
14
|
-
* - {@apilink WebdriverIOPuppeteerModalDialogHandler}
|
|
15
|
-
*
|
|
16
13
|
* @group Models
|
|
17
14
|
*/
|
|
18
15
|
export class WebdriverIOModalDialogHandler extends ModalDialogHandler {
|
|
@@ -14,7 +14,7 @@ import type { WebdriverIOErrorHandler } from './WebdriverIOErrorHandler.js';
|
|
|
14
14
|
import { WebdriverIOPageElement } from './WebdriverIOPageElement.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* WebdriverIO-specific implementation of
|
|
17
|
+
* WebdriverIO-specific implementation of [`Page`](https://serenity-js.org/api/web/class/Page/).
|
|
18
18
|
*
|
|
19
19
|
* @group Models
|
|
20
20
|
*/
|
|
@@ -9,7 +9,7 @@ import type { WebdriverIOLocator } from './locators/index.js';
|
|
|
9
9
|
import { WebdriverProtocolErrorCode } from './WebdriverProtocolErrorCode.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* WebdriverIO-specific implementation of
|
|
12
|
+
* WebdriverIO-specific implementation of [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
13
13
|
*
|
|
14
14
|
* @group Models
|
|
15
15
|
*/
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import type { Dialog, Page } from 'puppeteer-core';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* WebdriverIO-specific implementation of
|
|
12
|
+
* WebdriverIO-specific implementation of [`ModalDialogHandler`](https://serenity-js.org/api/web/class/ModalDialogHandler/), applicable when WebdriverIO
|
|
13
13
|
* uses [Puppeteer](https://developer.chrome.com/docs/puppeteer/).
|
|
14
14
|
*
|
|
15
15
|
* Automatically handles any simple JavaScript modal dialog windows, such as
|
|
@@ -19,9 +19,6 @@ import type { Dialog, Page } from 'puppeteer-core';
|
|
|
19
19
|
*
|
|
20
20
|
* This helps to avoid Puppeteer hanging when there's an interaction pending
|
|
21
21
|
* and a dialog is already open, see https://github.com/puppeteer/puppeteer/issues/2481
|
|
22
|
-
*
|
|
23
|
-
* ## Learn more
|
|
24
|
-
* - {@apilink WebdriverIOModalDialogHandler}
|
|
25
22
|
*/
|
|
26
23
|
export class WebdriverIOPuppeteerModalDialogHandler extends ModalDialogHandler {
|
|
27
24
|
|
|
@@ -9,7 +9,7 @@ import { WebdriverIOPageElement } from '../WebdriverIOPageElement.js';
|
|
|
9
9
|
import type { WebdriverIORootLocator } from './WebdriverIORootLocator.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* WebdriverIO-specific implementation of
|
|
12
|
+
* WebdriverIO-specific implementation of [`Locator`](https://serenity-js.org/api/web/class/Locator/).
|
|
13
13
|
*
|
|
14
14
|
* @group Models
|
|
15
15
|
*/
|
|
@@ -3,7 +3,7 @@ import 'webdriverio';
|
|
|
3
3
|
import { RootLocator } from '@serenity-js/web';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* WebdriverIO-specific implementation of
|
|
6
|
+
* WebdriverIO-specific implementation of [`RootLocator`](https://serenity-js.org/api/web/class/RootLocator/).
|
|
7
7
|
*
|
|
8
8
|
* @group Models
|
|
9
9
|
*/
|