@serenity-js/web 3.24.1 → 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 +27 -0
- package/README.md +1 -1
- package/lib/errors/BrowserWindowClosedError.d.ts +2 -2
- package/lib/errors/BrowserWindowClosedError.js +2 -2
- package/lib/errors/CookieMissingError.d.ts +2 -2
- package/lib/errors/CookieMissingError.js +2 -2
- package/lib/errors/ModalDialogObstructsScreenshotError.d.ts +3 -3
- package/lib/errors/ModalDialogObstructsScreenshotError.js +3 -3
- package/lib/expectations/isActive.d.ts +8 -8
- package/lib/expectations/isActive.js +8 -8
- package/lib/expectations/isClickable.d.ts +8 -8
- package/lib/expectations/isClickable.js +8 -8
- package/lib/expectations/isEnabled.d.ts +8 -8
- package/lib/expectations/isEnabled.js +8 -8
- package/lib/expectations/isSelected.d.ts +8 -8
- package/lib/expectations/isSelected.js +8 -8
- package/lib/expectations/isVisible.d.ts +8 -8
- package/lib/expectations/isVisible.js +8 -8
- package/lib/screenplay/abilities/BrowseTheWeb.d.ts +25 -23
- package/lib/screenplay/abilities/BrowseTheWeb.d.ts.map +1 -1
- package/lib/screenplay/abilities/BrowseTheWeb.js +25 -23
- package/lib/screenplay/abilities/BrowseTheWeb.js.map +1 -1
- package/lib/screenplay/interactions/Clear.d.ts +7 -7
- package/lib/screenplay/interactions/Clear.js +7 -7
- package/lib/screenplay/interactions/Click.d.ts +5 -5
- package/lib/screenplay/interactions/Click.js +5 -5
- package/lib/screenplay/interactions/DoubleClick.d.ts +5 -5
- package/lib/screenplay/interactions/DoubleClick.js +5 -5
- package/lib/screenplay/interactions/Enter.d.ts +5 -5
- package/lib/screenplay/interactions/Enter.js +5 -5
- package/lib/screenplay/interactions/ExecuteScript.d.ts +19 -19
- package/lib/screenplay/interactions/ExecuteScript.js +18 -18
- package/lib/screenplay/interactions/Hover.d.ts +5 -5
- package/lib/screenplay/interactions/Hover.js +5 -5
- package/lib/screenplay/interactions/Navigate.d.ts +8 -8
- package/lib/screenplay/interactions/Navigate.js +8 -8
- package/lib/screenplay/interactions/PageElementInteraction.d.ts +3 -3
- package/lib/screenplay/interactions/PageElementInteraction.js +3 -3
- package/lib/screenplay/interactions/Press.d.ts +10 -10
- package/lib/screenplay/interactions/Press.js +10 -10
- package/lib/screenplay/interactions/RightClick.d.ts +5 -5
- package/lib/screenplay/interactions/RightClick.js +5 -5
- package/lib/screenplay/interactions/Scroll.d.ts +5 -5
- package/lib/screenplay/interactions/Scroll.js +5 -5
- package/lib/screenplay/interactions/Select.d.ts +22 -22
- package/lib/screenplay/interactions/Select.js +22 -22
- package/lib/screenplay/interactions/Switch.d.ts +16 -16
- package/lib/screenplay/interactions/Switch.js +16 -16
- package/lib/screenplay/interactions/TakeScreenshot.d.ts +11 -10
- package/lib/screenplay/interactions/TakeScreenshot.d.ts.map +1 -1
- package/lib/screenplay/interactions/TakeScreenshot.js +11 -10
- package/lib/screenplay/interactions/TakeScreenshot.js.map +1 -1
- package/lib/screenplay/models/BrowserCapabilities.d.ts +1 -1
- package/lib/screenplay/models/BrowsingSession.d.ts +8 -8
- package/lib/screenplay/models/BrowsingSession.js +6 -6
- package/lib/screenplay/models/Cookie.d.ts +10 -10
- package/lib/screenplay/models/Cookie.js +9 -9
- package/lib/screenplay/models/CookieData.d.ts +4 -4
- package/lib/screenplay/models/Key.d.ts +4 -4
- package/lib/screenplay/models/Key.js +4 -4
- package/lib/screenplay/models/Locator.d.ts +8 -8
- package/lib/screenplay/models/Locator.js +8 -8
- package/lib/screenplay/models/Page.d.ts +32 -32
- package/lib/screenplay/models/Page.js +14 -14
- package/lib/screenplay/models/PageElement.d.ts +56 -13
- package/lib/screenplay/models/PageElement.d.ts.map +1 -1
- package/lib/screenplay/models/PageElement.js +36 -6
- package/lib/screenplay/models/PageElement.js.map +1 -1
- package/lib/screenplay/models/PageElements.d.ts +6 -6
- package/lib/screenplay/models/PageElements.js +6 -6
- package/lib/screenplay/models/RootLocator.d.ts +5 -5
- package/lib/screenplay/models/RootLocator.js +5 -5
- package/lib/screenplay/models/SelectOption.d.ts +4 -4
- package/lib/screenplay/models/SelectOption.js +4 -4
- package/lib/screenplay/models/Switchable.d.ts +6 -6
- package/lib/screenplay/models/SwitchableOrigin.d.ts +4 -4
- package/lib/screenplay/models/dialogs/AbsentModalDialog.d.ts +2 -2
- package/lib/screenplay/models/dialogs/AbsentModalDialog.js +2 -2
- package/lib/screenplay/models/dialogs/AcceptedModalDialog.d.ts +3 -3
- package/lib/screenplay/models/dialogs/AcceptedModalDialog.js +3 -3
- package/lib/screenplay/models/dialogs/DismissedModalDialog.d.ts +3 -3
- package/lib/screenplay/models/dialogs/DismissedModalDialog.js +3 -3
- package/lib/screenplay/models/dialogs/ModalDialog.d.ts +12 -9
- package/lib/screenplay/models/dialogs/ModalDialog.d.ts.map +1 -1
- package/lib/screenplay/models/dialogs/ModalDialog.js +10 -7
- package/lib/screenplay/models/dialogs/ModalDialog.js.map +1 -1
- package/lib/screenplay/models/dialogs/ModalDialogHandler.d.ts +5 -5
- package/lib/screenplay/models/dialogs/ModalDialogHandler.js +5 -5
- package/lib/screenplay/models/selectors/By.d.ts +14 -14
- package/lib/screenplay/models/selectors/By.js +14 -14
- package/lib/screenplay/models/selectors/ByCss.d.ts +2 -2
- package/lib/screenplay/models/selectors/ByCss.js +2 -2
- package/lib/screenplay/models/selectors/ByCssContainingText.d.ts +2 -2
- package/lib/screenplay/models/selectors/ByCssContainingText.js +2 -2
- package/lib/screenplay/models/selectors/ByDeepCss.d.ts +2 -2
- package/lib/screenplay/models/selectors/ByDeepCss.js +2 -2
- package/lib/screenplay/models/selectors/ById.d.ts +2 -2
- package/lib/screenplay/models/selectors/ById.js +2 -2
- package/lib/screenplay/models/selectors/ByTagName.d.ts +2 -2
- package/lib/screenplay/models/selectors/ByTagName.js +2 -2
- package/lib/screenplay/models/selectors/ByXPath.d.ts +2 -2
- package/lib/screenplay/models/selectors/ByXPath.js +2 -2
- package/lib/screenplay/models/selectors/Selector.d.ts +1 -1
- package/lib/screenplay/models/selectors/Selector.js +1 -1
- package/lib/screenplay/questions/Attribute.d.ts +13 -13
- package/lib/screenplay/questions/Attribute.js +13 -13
- package/lib/screenplay/questions/ComputedStyle.d.ts +16 -16
- package/lib/screenplay/questions/ComputedStyle.js +16 -16
- package/lib/screenplay/questions/CssClasses.d.ts +13 -13
- package/lib/screenplay/questions/CssClasses.js +13 -13
- package/lib/screenplay/questions/LastScriptExecution.d.ts +7 -7
- package/lib/screenplay/questions/LastScriptExecution.js +7 -7
- package/lib/screenplay/questions/Selected.d.ts +17 -17
- package/lib/screenplay/questions/Selected.js +17 -17
- package/lib/screenplay/questions/Text.d.ts +18 -18
- package/lib/screenplay/questions/Text.js +14 -14
- package/lib/screenplay/questions/Value.d.ts +12 -12
- package/lib/screenplay/questions/Value.js +12 -12
- package/lib/stage/crew/photographer/Photographer.d.ts +18 -17
- package/lib/stage/crew/photographer/Photographer.d.ts.map +1 -1
- package/lib/stage/crew/photographer/Photographer.js +18 -17
- package/lib/stage/crew/photographer/Photographer.js.map +1 -1
- package/lib/stage/crew/photographer/strategies/PhotoTakingStrategy.d.ts +6 -6
- package/lib/stage/crew/photographer/strategies/PhotoTakingStrategy.js +6 -6
- package/lib/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.d.ts +3 -3
- package/lib/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.js +3 -3
- package/lib/stage/crew/photographer/strategies/TakePhotosOfFailures.d.ts +3 -3
- package/lib/stage/crew/photographer/strategies/TakePhotosOfFailures.js +3 -3
- package/lib/stage/crew/photographer/strategies/TakePhotosOfInteractions.d.ts +3 -3
- package/lib/stage/crew/photographer/strategies/TakePhotosOfInteractions.js +3 -3
- package/package.json +5 -5
- package/src/errors/BrowserWindowClosedError.ts +2 -2
- package/src/errors/CookieMissingError.ts +2 -2
- package/src/errors/ModalDialogObstructsScreenshotError.ts +3 -3
- package/src/expectations/isActive.ts +8 -8
- package/src/expectations/isClickable.ts +8 -8
- package/src/expectations/isEnabled.ts +8 -8
- package/src/expectations/isSelected.ts +8 -8
- package/src/expectations/isVisible.ts +8 -8
- package/src/screenplay/abilities/BrowseTheWeb.ts +25 -23
- package/src/screenplay/interactions/Clear.ts +7 -7
- package/src/screenplay/interactions/Click.ts +5 -5
- package/src/screenplay/interactions/DoubleClick.ts +5 -5
- package/src/screenplay/interactions/Enter.ts +5 -5
- package/src/screenplay/interactions/ExecuteScript.ts +19 -19
- package/src/screenplay/interactions/Hover.ts +5 -5
- package/src/screenplay/interactions/Navigate.ts +8 -8
- package/src/screenplay/interactions/PageElementInteraction.ts +3 -3
- package/src/screenplay/interactions/Press.ts +10 -10
- package/src/screenplay/interactions/RightClick.ts +5 -5
- package/src/screenplay/interactions/Scroll.ts +5 -5
- package/src/screenplay/interactions/Select.ts +22 -22
- package/src/screenplay/interactions/Switch.ts +16 -16
- package/src/screenplay/interactions/TakeScreenshot.ts +11 -10
- package/src/screenplay/models/BrowserCapabilities.ts +1 -1
- package/src/screenplay/models/BrowsingSession.ts +8 -8
- package/src/screenplay/models/Cookie.ts +10 -10
- package/src/screenplay/models/CookieData.ts +4 -4
- package/src/screenplay/models/Key.ts +4 -4
- package/src/screenplay/models/Locator.ts +8 -8
- package/src/screenplay/models/Page.ts +32 -32
- package/src/screenplay/models/PageElement.ts +66 -13
- package/src/screenplay/models/PageElements.ts +6 -6
- package/src/screenplay/models/RootLocator.ts +5 -5
- package/src/screenplay/models/SelectOption.ts +4 -4
- package/src/screenplay/models/Switchable.ts +6 -6
- package/src/screenplay/models/SwitchableOrigin.ts +4 -4
- package/src/screenplay/models/dialogs/AbsentModalDialog.ts +2 -2
- package/src/screenplay/models/dialogs/AcceptedModalDialog.ts +3 -3
- package/src/screenplay/models/dialogs/DismissedModalDialog.ts +3 -3
- package/src/screenplay/models/dialogs/ModalDialog.ts +12 -9
- package/src/screenplay/models/dialogs/ModalDialogHandler.ts +5 -5
- package/src/screenplay/models/selectors/By.ts +14 -14
- package/src/screenplay/models/selectors/ByCss.ts +2 -2
- package/src/screenplay/models/selectors/ByCssContainingText.ts +2 -2
- package/src/screenplay/models/selectors/ByDeepCss.ts +2 -2
- package/src/screenplay/models/selectors/ById.ts +2 -2
- package/src/screenplay/models/selectors/ByTagName.ts +2 -2
- package/src/screenplay/models/selectors/ByXPath.ts +2 -2
- package/src/screenplay/models/selectors/Selector.ts +1 -1
- package/src/screenplay/questions/Attribute.ts +13 -13
- package/src/screenplay/questions/ComputedStyle.ts +16 -16
- package/src/screenplay/questions/CssClasses.ts +13 -13
- package/src/screenplay/questions/LastScriptExecution.ts +7 -7
- package/src/screenplay/questions/Selected.ts +17 -17
- package/src/screenplay/questions/Text.ts +18 -18
- package/src/screenplay/questions/Value.ts +12 -12
- package/src/stage/crew/photographer/Photographer.ts +18 -17
- package/src/stage/crew/photographer/strategies/PhotoTakingStrategy.ts +6 -6
- package/src/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.ts +3 -3
- package/src/stage/crew/photographer/strategies/TakePhotosOfFailures.ts +3 -3
- package/src/stage/crew/photographer/strategies/TakePhotosOfInteractions.ts +3 -3
|
@@ -3,22 +3,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BrowseTheWeb = void 0;
|
|
4
4
|
const core_1 = require("@serenity-js/core");
|
|
5
5
|
/**
|
|
6
|
-
* The
|
|
7
|
-
* to
|
|
6
|
+
* The [ability](https://serenity-js.org/api/core/class/Ability/) to `BrowseTheWeb` enables an [actor](https://serenity-js.org/api/core/class/Actor/)
|
|
7
|
+
* to [interact with](https://serenity-js.org/api/core/class/Interaction/) and [retrieve information from](https://serenity-js.org/api/core/class/Question/) Web-based user interfaces.
|
|
8
8
|
*
|
|
9
|
-
* `BrowseTheWeb` wraps test integration tools such as [Playwright](/api/playwright),
|
|
10
|
-
* [Protractor](/api/protractor), or [WebdriverIO](/api/webdriverio),
|
|
11
|
-
* and together with Serenity/JS Web models, such as
|
|
9
|
+
* `BrowseTheWeb` wraps test integration tools such as [Playwright](https://serenity-js.org/api/playwright),
|
|
10
|
+
* [Protractor](https://serenity-js.org/api/protractor), or [WebdriverIO](https://serenity-js.org/api/webdriverio),
|
|
11
|
+
* and together with Serenity/JS Web models, such as [`Page`](https://serenity-js.org/api/web/class/Page/) or [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) - offers a standardised way
|
|
12
12
|
* to write Web-based tests following the Screenplay Pattern.
|
|
13
13
|
*
|
|
14
|
-
* The consistent and portable design of abstractions provided by the [`@serenity-js/web` module](/api/web)
|
|
14
|
+
* The consistent and portable design of abstractions provided by the [`@serenity-js/web` module](https://serenity-js.org/api/web)
|
|
15
15
|
* also helps to make your tests portable across the various test integration tools and helps to make your test
|
|
16
16
|
* code easier to reuse across projects and teams.
|
|
17
17
|
*
|
|
18
18
|
* ## Giving the actors an ability to `BrowseTheWeb`
|
|
19
19
|
*
|
|
20
|
-
* To give an
|
|
21
|
-
* via
|
|
20
|
+
* To give an [actor](https://serenity-js.org/api/core/class/Actor/) an ability to `BrowseTheWeb`, provide the **integration tool-specific implementation**
|
|
21
|
+
* via [`Actor.whoCan`](https://serenity-js.org/api/core/class/Actor/#whoCan) in [`Cast.prepare`](https://serenity-js.org/api/core/class/Cast/#prepare), or via [`Cast.where`](https://serenity-js.org/api/core/class/Cast/#where).
|
|
22
22
|
*
|
|
23
23
|
* ```ts
|
|
24
24
|
* import { beforeEach } from 'mocha'
|
|
@@ -39,21 +39,23 @@ const core_1 = require("@serenity-js/core");
|
|
|
39
39
|
*
|
|
40
40
|
* To learn more about using Serenity/JS with your chosen test integration tool, follow their respective documentation:
|
|
41
41
|
*
|
|
42
|
-
* -
|
|
43
|
-
* -
|
|
44
|
-
* -
|
|
42
|
+
* - [`BrowseTheWebWithPlaywright`](https://serenity-js.org/api/playwright/class/BrowseTheWebWithPlaywright/)
|
|
43
|
+
* - [`BrowseTheWebWithProtractor`](https://serenity-js.org/api/protractor/class/BrowseTheWebWithProtractor/)
|
|
44
|
+
* - [`BrowseTheWebWithWebdriverIO`](https://serenity-js.org/api/webdriverio/class/BrowseTheWebWithWebdriverIO/)
|
|
45
45
|
*
|
|
46
46
|
* ## Using the ability to `BrowseTheWeb`
|
|
47
47
|
*
|
|
48
|
-
* To use the ability to `BrowseTheWeb` in a custom
|
|
48
|
+
* To use the ability to `BrowseTheWeb` in a custom [`Interaction`](https://serenity-js.org/api/core/class/Interaction/)
|
|
49
|
+
* or [`Question`](https://serenity-js.org/api/core/class/Question/), use the **generic** method [`BrowseTheWeb.as`](https://serenity-js.org/api/core/class/Ability/#as)
|
|
49
50
|
* to retrieve it.
|
|
50
51
|
*
|
|
51
|
-
* This generic method retrieves the integration tool-specific implementation of
|
|
52
|
-
* such as
|
|
52
|
+
* This generic method retrieves the integration tool-specific implementation of [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) present on the [`Actor`](https://serenity-js.org/api/core/class/Actor/),
|
|
53
|
+
* such as [`BrowseTheWebWithPlaywright`](https://serenity-js.org/api/playwright/class/BrowseTheWebWithPlaywright/)
|
|
54
|
+
* or [`BrowseTheWebWithWebdriverIO`](https://serenity-js.org/api/webdriverio/class/BrowseTheWebWithWebdriverIO/), using [`Actor.abilityTo`](https://serenity-js.org/api/core/class/Actor/#abilityTo).
|
|
53
55
|
*
|
|
54
56
|
* This decoupling mechanism helps to make your test code portable across test integration tools,
|
|
55
57
|
* since the only part of your test suite that needs to know about the test integration tool used are the actors.
|
|
56
|
-
* The rest of your test code, so
|
|
58
|
+
* The rest of your test code, so [tasks](https://serenity-js.org/api/core/class/Task/), [interactions](https://serenity-js.org/api/core/class/Interaction/), and [questions](https://serenity-js.org/api/core/class/Question/),
|
|
57
59
|
* remain fully agnostic of the underlying tool.
|
|
58
60
|
*
|
|
59
61
|
* ```ts
|
|
@@ -71,10 +73,10 @@ const core_1 = require("@serenity-js/core");
|
|
|
71
73
|
*
|
|
72
74
|
* ### Learn more
|
|
73
75
|
*
|
|
74
|
-
* -
|
|
75
|
-
* -
|
|
76
|
-
* -
|
|
77
|
-
* -
|
|
76
|
+
* - [`Ability`](https://serenity-js.org/api/core/class/Ability/)
|
|
77
|
+
* - [`Actor.whoCan`](https://serenity-js.org/api/core/class/Actor/#whoCan)
|
|
78
|
+
* - [`Cast.where`](https://serenity-js.org/api/core/class/Cast/#where)
|
|
79
|
+
* - [`Cast.prepare`](https://serenity-js.org/api/core/class/Cast/#prepare)
|
|
78
80
|
*
|
|
79
81
|
* @group Abilities
|
|
80
82
|
*/
|
|
@@ -85,20 +87,20 @@ class BrowseTheWeb extends core_1.Ability {
|
|
|
85
87
|
this.session = session;
|
|
86
88
|
}
|
|
87
89
|
/**
|
|
88
|
-
* Returns a
|
|
90
|
+
* Returns a [`Page`](https://serenity-js.org/api/web/class/Page/) representing the currently active browser tab.
|
|
89
91
|
*/
|
|
90
92
|
async currentPage() {
|
|
91
93
|
return this.session.currentPage();
|
|
92
94
|
}
|
|
93
95
|
/**
|
|
94
|
-
* Returns an array of
|
|
95
|
-
* available in the current
|
|
96
|
+
* Returns an array of [pages](https://serenity-js.org/api/web/class/Page/) representing all the browser tabs
|
|
97
|
+
* available in the current [`BrowsingSession`](https://serenity-js.org/api/web/class/BrowsingSession/).
|
|
96
98
|
*/
|
|
97
99
|
allPages() {
|
|
98
100
|
return this.session.allPages();
|
|
99
101
|
}
|
|
100
102
|
/**
|
|
101
|
-
* Returns
|
|
103
|
+
* Returns [basic meta-data](https://serenity-js.org/api/web/interface/BrowserCapabilities/) about the browser associated with this ability.
|
|
102
104
|
*/
|
|
103
105
|
async browserCapabilities() {
|
|
104
106
|
return this.session.browserCapabilities();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowseTheWeb.js","sourceRoot":"","sources":["../../../src/screenplay/abilities/BrowseTheWeb.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAI5C
|
|
1
|
+
{"version":3,"file":"BrowseTheWeb.js","sourceRoot":"","sources":["../../../src/screenplay/abilities/BrowseTheWeb.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAI5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;AACH,MAAsB,YAAwC,SAAQ,cAAO;IAE1C;IAA/B,YAA+B,OAAmD;QAC9E,KAAK,EAAE,CAAC;QADmB,YAAO,GAAP,OAAO,CAA4C;IAElF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW;QACb,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;IACtC,CAAC;IAED;;;OAGG;IACH,QAAQ;QACJ,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB;QACrB,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAC9C,CAAC;CACJ;AA3BD,oCA2BC"}
|
|
@@ -2,7 +2,7 @@ import type { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@
|
|
|
2
2
|
import type { PageElement } from '../models';
|
|
3
3
|
import { PageElementInteraction } from './PageElementInteraction';
|
|
4
4
|
/**
|
|
5
|
-
* Instructs an
|
|
5
|
+
* Instructs an [actor](https://serenity-js.org/api/core/class/Actor/) who has the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
6
6
|
* to clear the `value` of a [form `input` field](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input).
|
|
7
7
|
*
|
|
8
8
|
* ## Example widget
|
|
@@ -45,18 +45,18 @@ import { PageElementInteraction } from './PageElementInteraction';
|
|
|
45
45
|
*
|
|
46
46
|
* ## Learn more
|
|
47
47
|
*
|
|
48
|
-
* -
|
|
49
|
-
* -
|
|
50
|
-
* -
|
|
51
|
-
* -
|
|
48
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
49
|
+
* - [`Enter`](https://serenity-js.org/api/web/class/Enter/)
|
|
50
|
+
* - [`Value`](https://serenity-js.org/api/web/class/Value/)
|
|
51
|
+
* - [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
52
52
|
*
|
|
53
53
|
* @group Activities
|
|
54
54
|
*/
|
|
55
55
|
export declare class Clear extends PageElementInteraction {
|
|
56
56
|
private readonly field;
|
|
57
57
|
/**
|
|
58
|
-
* Instantiates an
|
|
59
|
-
* that instructs the
|
|
58
|
+
* Instantiates an [interaction](https://serenity-js.org/api/core/class/Interaction/)
|
|
59
|
+
* that instructs the [actor](https://serenity-js.org/api/core/class/Actor/)
|
|
60
60
|
* to clear the value of an input `field`,
|
|
61
61
|
*
|
|
62
62
|
* @param field
|
|
@@ -4,7 +4,7 @@ exports.Clear = void 0;
|
|
|
4
4
|
const core_1 = require("@serenity-js/core");
|
|
5
5
|
const PageElementInteraction_1 = require("./PageElementInteraction");
|
|
6
6
|
/**
|
|
7
|
-
* Instructs an
|
|
7
|
+
* Instructs an [actor](https://serenity-js.org/api/core/class/Actor/) who has the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
8
8
|
* to clear the `value` of a [form `input` field](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input).
|
|
9
9
|
*
|
|
10
10
|
* ## Example widget
|
|
@@ -47,18 +47,18 @@ const PageElementInteraction_1 = require("./PageElementInteraction");
|
|
|
47
47
|
*
|
|
48
48
|
* ## Learn more
|
|
49
49
|
*
|
|
50
|
-
* -
|
|
51
|
-
* -
|
|
52
|
-
* -
|
|
53
|
-
* -
|
|
50
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
51
|
+
* - [`Enter`](https://serenity-js.org/api/web/class/Enter/)
|
|
52
|
+
* - [`Value`](https://serenity-js.org/api/web/class/Value/)
|
|
53
|
+
* - [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
54
54
|
*
|
|
55
55
|
* @group Activities
|
|
56
56
|
*/
|
|
57
57
|
class Clear extends PageElementInteraction_1.PageElementInteraction {
|
|
58
58
|
field;
|
|
59
59
|
/**
|
|
60
|
-
* Instantiates an
|
|
61
|
-
* that instructs the
|
|
60
|
+
* Instantiates an [interaction](https://serenity-js.org/api/core/class/Interaction/)
|
|
61
|
+
* that instructs the [actor](https://serenity-js.org/api/core/class/Actor/)
|
|
62
62
|
* to clear the value of an input `field`,
|
|
63
63
|
*
|
|
64
64
|
* @param field
|
|
@@ -2,8 +2,8 @@ import type { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@
|
|
|
2
2
|
import type { PageElement } from '../models';
|
|
3
3
|
import { PageElementInteraction } from './PageElementInteraction';
|
|
4
4
|
/**
|
|
5
|
-
* Instructs an
|
|
6
|
-
* to scroll the given
|
|
5
|
+
* Instructs an [actor](https://serenity-js.org/api/core/class/Actor/) who has the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
6
|
+
* to scroll the given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) into view and then [click](https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event) on it.
|
|
7
7
|
*
|
|
8
8
|
* ## Example widget
|
|
9
9
|
*
|
|
@@ -41,15 +41,15 @@ import { PageElementInteraction } from './PageElementInteraction';
|
|
|
41
41
|
*
|
|
42
42
|
* ## Learn more
|
|
43
43
|
*
|
|
44
|
-
* -
|
|
45
|
-
* -
|
|
44
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
45
|
+
* - [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
46
46
|
*
|
|
47
47
|
* @group Activities
|
|
48
48
|
*/
|
|
49
49
|
export declare class Click extends PageElementInteraction {
|
|
50
50
|
private readonly element;
|
|
51
51
|
/**
|
|
52
|
-
* Instantiates this
|
|
52
|
+
* Instantiates this [`Interaction`](https://serenity-js.org/api/core/class/Interaction/).
|
|
53
53
|
*
|
|
54
54
|
* @param pageElement
|
|
55
55
|
* The element to be clicked on
|
|
@@ -4,8 +4,8 @@ exports.Click = void 0;
|
|
|
4
4
|
const core_1 = require("@serenity-js/core");
|
|
5
5
|
const PageElementInteraction_1 = require("./PageElementInteraction");
|
|
6
6
|
/**
|
|
7
|
-
* Instructs an
|
|
8
|
-
* to scroll the given
|
|
7
|
+
* Instructs an [actor](https://serenity-js.org/api/core/class/Actor/) who has the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
8
|
+
* to scroll the given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) into view and then [click](https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event) on it.
|
|
9
9
|
*
|
|
10
10
|
* ## Example widget
|
|
11
11
|
*
|
|
@@ -43,15 +43,15 @@ const PageElementInteraction_1 = require("./PageElementInteraction");
|
|
|
43
43
|
*
|
|
44
44
|
* ## Learn more
|
|
45
45
|
*
|
|
46
|
-
* -
|
|
47
|
-
* -
|
|
46
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
47
|
+
* - [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
48
48
|
*
|
|
49
49
|
* @group Activities
|
|
50
50
|
*/
|
|
51
51
|
class Click extends PageElementInteraction_1.PageElementInteraction {
|
|
52
52
|
element;
|
|
53
53
|
/**
|
|
54
|
-
* Instantiates this
|
|
54
|
+
* Instantiates this [`Interaction`](https://serenity-js.org/api/core/class/Interaction/).
|
|
55
55
|
*
|
|
56
56
|
* @param pageElement
|
|
57
57
|
* The element to be clicked on
|
|
@@ -2,8 +2,8 @@ import type { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@
|
|
|
2
2
|
import type { PageElement } from '../models';
|
|
3
3
|
import { PageElementInteraction } from './PageElementInteraction';
|
|
4
4
|
/**
|
|
5
|
-
* Instructs an
|
|
6
|
-
* to perform a double click on a given
|
|
5
|
+
* Instructs an [actor](https://serenity-js.org/api/core/class/Actor/) who has the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
6
|
+
* to perform a double click on a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
7
7
|
*
|
|
8
8
|
* ## Example widget
|
|
9
9
|
* ```html
|
|
@@ -64,15 +64,15 @@ import { PageElementInteraction } from './PageElementInteraction';
|
|
|
64
64
|
*
|
|
65
65
|
* ## Learn more
|
|
66
66
|
*
|
|
67
|
-
* -
|
|
68
|
-
* -
|
|
67
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
68
|
+
* - [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
69
69
|
*
|
|
70
70
|
* @group Activities
|
|
71
71
|
*/
|
|
72
72
|
export declare class DoubleClick extends PageElementInteraction {
|
|
73
73
|
private readonly pageElement;
|
|
74
74
|
/**
|
|
75
|
-
* Instantiates this
|
|
75
|
+
* Instantiates this [`Interaction`](https://serenity-js.org/api/core/class/Interaction/).
|
|
76
76
|
*
|
|
77
77
|
* @param pageElement
|
|
78
78
|
* The element to be double-clicked on
|
|
@@ -4,8 +4,8 @@ exports.DoubleClick = void 0;
|
|
|
4
4
|
const core_1 = require("@serenity-js/core");
|
|
5
5
|
const PageElementInteraction_1 = require("./PageElementInteraction");
|
|
6
6
|
/**
|
|
7
|
-
* Instructs an
|
|
8
|
-
* to perform a double click on a given
|
|
7
|
+
* Instructs an [actor](https://serenity-js.org/api/core/class/Actor/) who has the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
8
|
+
* to perform a double click on a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
9
9
|
*
|
|
10
10
|
* ## Example widget
|
|
11
11
|
* ```html
|
|
@@ -66,15 +66,15 @@ const PageElementInteraction_1 = require("./PageElementInteraction");
|
|
|
66
66
|
*
|
|
67
67
|
* ## Learn more
|
|
68
68
|
*
|
|
69
|
-
* -
|
|
70
|
-
* -
|
|
69
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
70
|
+
* - [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
71
71
|
*
|
|
72
72
|
* @group Activities
|
|
73
73
|
*/
|
|
74
74
|
class DoubleClick extends PageElementInteraction_1.PageElementInteraction {
|
|
75
75
|
pageElement;
|
|
76
76
|
/**
|
|
77
|
-
* Instantiates this
|
|
77
|
+
* Instantiates this [`Interaction`](https://serenity-js.org/api/core/class/Interaction/).
|
|
78
78
|
*
|
|
79
79
|
* @param pageElement
|
|
80
80
|
* The element to be double-clicked on
|
|
@@ -2,7 +2,7 @@ import type { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@
|
|
|
2
2
|
import type { PageElement } from '../models';
|
|
3
3
|
import { PageElementInteraction } from './PageElementInteraction';
|
|
4
4
|
/**
|
|
5
|
-
* Instructs an
|
|
5
|
+
* Instructs an [actor](https://serenity-js.org/api/core/class/Actor/) who has the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
6
6
|
* to enter a value into a [form `input`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input) field.
|
|
7
7
|
*
|
|
8
8
|
* ## Example widget
|
|
@@ -39,7 +39,7 @@ import { PageElementInteraction } from './PageElementInteraction';
|
|
|
39
39
|
* ## Handling sensitive information
|
|
40
40
|
*
|
|
41
41
|
* By design, any data handled by an actor appears in Serenity/JS reports.
|
|
42
|
-
* To prevent the exposure of any sensitive information, such as passwords or tokens, you should use
|
|
42
|
+
* To prevent the exposure of any sensitive information, such as passwords or tokens, you should use [`Masked`](https://serenity-js.org/api/core/class/Masked/).
|
|
43
43
|
*
|
|
44
44
|
* ```ts
|
|
45
45
|
* import { actorCalled, Masked } from '@serenity-js/core'
|
|
@@ -55,8 +55,8 @@ import { PageElementInteraction } from './PageElementInteraction';
|
|
|
55
55
|
*
|
|
56
56
|
* ## Learn more
|
|
57
57
|
*
|
|
58
|
-
* -
|
|
59
|
-
* -
|
|
58
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
59
|
+
* - [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
60
60
|
*
|
|
61
61
|
* @group Activities
|
|
62
62
|
*/
|
|
@@ -64,7 +64,7 @@ export declare class Enter extends PageElementInteraction {
|
|
|
64
64
|
private readonly values;
|
|
65
65
|
private readonly field;
|
|
66
66
|
/**
|
|
67
|
-
* Instantiates this
|
|
67
|
+
* Instantiates this [`Interaction`](https://serenity-js.org/api/core/class/Interaction/).
|
|
68
68
|
*
|
|
69
69
|
* @param values
|
|
70
70
|
* The text value to be entered
|
|
@@ -5,7 +5,7 @@ const core_1 = require("@serenity-js/core");
|
|
|
5
5
|
const io_1 = require("@serenity-js/core/lib/io");
|
|
6
6
|
const PageElementInteraction_1 = require("./PageElementInteraction");
|
|
7
7
|
/**
|
|
8
|
-
* Instructs an
|
|
8
|
+
* Instructs an [actor](https://serenity-js.org/api/core/class/Actor/) who has the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
9
9
|
* to enter a value into a [form `input`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input) field.
|
|
10
10
|
*
|
|
11
11
|
* ## Example widget
|
|
@@ -42,7 +42,7 @@ const PageElementInteraction_1 = require("./PageElementInteraction");
|
|
|
42
42
|
* ## Handling sensitive information
|
|
43
43
|
*
|
|
44
44
|
* By design, any data handled by an actor appears in Serenity/JS reports.
|
|
45
|
-
* To prevent the exposure of any sensitive information, such as passwords or tokens, you should use
|
|
45
|
+
* To prevent the exposure of any sensitive information, such as passwords or tokens, you should use [`Masked`](https://serenity-js.org/api/core/class/Masked/).
|
|
46
46
|
*
|
|
47
47
|
* ```ts
|
|
48
48
|
* import { actorCalled, Masked } from '@serenity-js/core'
|
|
@@ -58,8 +58,8 @@ const PageElementInteraction_1 = require("./PageElementInteraction");
|
|
|
58
58
|
*
|
|
59
59
|
* ## Learn more
|
|
60
60
|
*
|
|
61
|
-
* -
|
|
62
|
-
* -
|
|
61
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
62
|
+
* - [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
63
63
|
*
|
|
64
64
|
* @group Activities
|
|
65
65
|
*/
|
|
@@ -67,7 +67,7 @@ class Enter extends PageElementInteraction_1.PageElementInteraction {
|
|
|
67
67
|
values;
|
|
68
68
|
field;
|
|
69
69
|
/**
|
|
70
|
-
* Instantiates this
|
|
70
|
+
* Instantiates this [`Interaction`](https://serenity-js.org/api/core/class/Interaction/).
|
|
71
71
|
*
|
|
72
72
|
* @param values
|
|
73
73
|
* The text value to be entered
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { Answerable, AnswersQuestions, CollectsArtifacts, UsesAbilities } from '@serenity-js/core';
|
|
2
2
|
import { Interaction } from '@serenity-js/core';
|
|
3
3
|
/**
|
|
4
|
-
* Instructs an
|
|
4
|
+
* Instructs an [actor](https://serenity-js.org/api/core/class/Actor/) who has the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
5
5
|
* to inject a script into the browser and execute it in the context of the current browser tab.
|
|
6
6
|
*
|
|
7
7
|
* ## Learn more
|
|
8
8
|
*
|
|
9
|
-
* -
|
|
10
|
-
* -
|
|
9
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
10
|
+
* - [`LastScriptExecution.result`](https://serenity-js.org/api/web/class/LastScriptExecution/#result)
|
|
11
11
|
*
|
|
12
12
|
* @group Activities
|
|
13
13
|
*/
|
|
14
14
|
export declare class ExecuteScript {
|
|
15
15
|
/**
|
|
16
|
-
* Instantiates a version of this
|
|
16
|
+
* Instantiates a version of this [`Interaction`](https://serenity-js.org/api/core/class/Interaction/)
|
|
17
17
|
* configured to load a script from `sourceUrl`.
|
|
18
18
|
*
|
|
19
19
|
* @param sourceUrl
|
|
@@ -21,7 +21,7 @@ export declare class ExecuteScript {
|
|
|
21
21
|
*/
|
|
22
22
|
static from(sourceUrl: Answerable<string>): Interaction;
|
|
23
23
|
/**
|
|
24
|
-
* Instructs an
|
|
24
|
+
* Instructs an [actor](https://serenity-js.org/api/core/class/Actor/) who has the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
25
25
|
* to execute an asynchronous script within the context of the current browser tab.
|
|
26
26
|
*
|
|
27
27
|
* The script fragment will be executed as the body of an anonymous function.
|
|
@@ -30,20 +30,20 @@ export declare class ExecuteScript {
|
|
|
30
30
|
*
|
|
31
31
|
* Any arguments provided in addition to the script will be included as script arguments and may be referenced
|
|
32
32
|
* using the `arguments` object. Arguments may be a `boolean`, `number`, `string`
|
|
33
|
-
* or
|
|
33
|
+
* or [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
34
34
|
* Arrays and objects may also be used as script arguments as long as each item adheres
|
|
35
35
|
* to the types previously mentioned.
|
|
36
36
|
*
|
|
37
|
-
* Unlike executing synchronous JavaScript with
|
|
37
|
+
* Unlike executing synchronous JavaScript with [`ExecuteScript.sync`](https://serenity-js.org/api/web/class/ExecuteScript/#sync),
|
|
38
38
|
* scripts executed with this function must explicitly signal they are finished by invoking the provided callback.
|
|
39
39
|
*
|
|
40
40
|
* This callback will always be injected into the executed function as the last argument,
|
|
41
41
|
* and thus may be referenced with `arguments[arguments.length - 1]`.
|
|
42
42
|
*
|
|
43
43
|
* If the script invokes the `callback` with a return value, this will be made available
|
|
44
|
-
* via the
|
|
44
|
+
* via the [`LastScriptExecution.result`](https://serenity-js.org/api/web/class/LastScriptExecution/#result).
|
|
45
45
|
*
|
|
46
|
-
* **Please note** that in order to signal an error in the `script` you need to throw an
|
|
46
|
+
* **Please note** that in order to signal an error in the `script` you need to throw an [`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error)
|
|
47
47
|
* instead of passing it to the callback function.
|
|
48
48
|
*
|
|
49
49
|
* #### Executing an async script
|
|
@@ -102,7 +102,7 @@ export declare class ExecuteScript {
|
|
|
102
102
|
*
|
|
103
103
|
* #### Passing PageElement arguments to an async script
|
|
104
104
|
*
|
|
105
|
-
* Serenity/JS automatically converts
|
|
105
|
+
* Serenity/JS automatically converts [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) objects passed as arguments to the script
|
|
106
106
|
* into their corresponding DOM elements.
|
|
107
107
|
*
|
|
108
108
|
* ```ts
|
|
@@ -126,7 +126,7 @@ export declare class ExecuteScript {
|
|
|
126
126
|
*
|
|
127
127
|
* #### Using nested data structures containing PageElement objects
|
|
128
128
|
*
|
|
129
|
-
* Serenity/JS automatically converts any
|
|
129
|
+
* Serenity/JS automatically converts any [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) objects
|
|
130
130
|
* contained in nested data structures passed to the script
|
|
131
131
|
* into their corresponding DOM elements.
|
|
132
132
|
*
|
|
@@ -156,17 +156,17 @@ export declare class ExecuteScript {
|
|
|
156
156
|
* ```
|
|
157
157
|
*
|
|
158
158
|
* #### Learn more
|
|
159
|
-
* -
|
|
159
|
+
* - [`LastScriptExecution.result`](https://serenity-js.org/api/web/class/LastScriptExecution/#result)
|
|
160
160
|
*
|
|
161
161
|
* @param script
|
|
162
162
|
* The script to be executed
|
|
163
163
|
*/
|
|
164
164
|
static async(script: string | Function): ExecuteScriptWithArguments;
|
|
165
165
|
/**
|
|
166
|
-
* Instructs an
|
|
166
|
+
* Instructs an [actor](https://serenity-js.org/api/core/class/Actor/) who has the [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
167
167
|
* to execute a synchronous script within the context of the current browser tab.
|
|
168
168
|
*
|
|
169
|
-
* If the script returns a value, it will be made available via
|
|
169
|
+
* If the script returns a value, it will be made available via [`LastScriptExecution.result`](https://serenity-js.org/api/web/class/LastScriptExecution/#result).
|
|
170
170
|
*
|
|
171
171
|
* #### Executing a sync script as string and reading the result
|
|
172
172
|
*
|
|
@@ -214,7 +214,7 @@ export declare class ExecuteScript {
|
|
|
214
214
|
*
|
|
215
215
|
* #### Passing PageElement arguments to a sync script
|
|
216
216
|
*
|
|
217
|
-
* Serenity/JS automatically converts
|
|
217
|
+
* Serenity/JS automatically converts [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) objects passed as arguments to the script
|
|
218
218
|
* into their corresponding DOM elements.
|
|
219
219
|
*
|
|
220
220
|
* ```ts
|
|
@@ -235,7 +235,7 @@ export declare class ExecuteScript {
|
|
|
235
235
|
*
|
|
236
236
|
* #### Using nested data structures containing PageElement objects
|
|
237
237
|
*
|
|
238
|
-
* Serenity/JS automatically converts any
|
|
238
|
+
* Serenity/JS automatically converts any [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) objects
|
|
239
239
|
* contained in nested data structures passed to the script
|
|
240
240
|
* into their corresponding DOM elements.
|
|
241
241
|
*
|
|
@@ -262,7 +262,7 @@ export declare class ExecuteScript {
|
|
|
262
262
|
* ```
|
|
263
263
|
*
|
|
264
264
|
* #### Learn more
|
|
265
|
-
* -
|
|
265
|
+
* - [`LastScriptExecution.result`](https://serenity-js.org/api/web/class/LastScriptExecution/#result)
|
|
266
266
|
*
|
|
267
267
|
* @param script
|
|
268
268
|
* The script to be executed
|
|
@@ -273,7 +273,7 @@ export declare class ExecuteScript {
|
|
|
273
273
|
* Allows for a script to be executed to be parametrised.
|
|
274
274
|
*
|
|
275
275
|
* ## Learn more
|
|
276
|
-
* -
|
|
276
|
+
* - [`ExecuteScript`](https://serenity-js.org/api/web/class/ExecuteScript/)
|
|
277
277
|
*
|
|
278
278
|
* @group Activities
|
|
279
279
|
*/
|
|
@@ -283,7 +283,7 @@ export declare abstract class ExecuteScriptWithArguments extends Interaction {
|
|
|
283
283
|
constructor(description: Answerable<string>, script: string | Function, // eslint-disable-line @typescript-eslint/ban-types
|
|
284
284
|
args?: Array<Answerable<any>>);
|
|
285
285
|
/**
|
|
286
|
-
* Instantiates this
|
|
286
|
+
* Instantiates this [`Interaction`](https://serenity-js.org/api/core/class/Interaction/)
|
|
287
287
|
*
|
|
288
288
|
* @param args
|
|
289
289
|
* Arguments to parametrise the script with
|