@serenity-js/web 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/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 +13 -13
- package/lib/screenplay/models/PageElement.js +7 -7
- 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 +4 -4
- 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 +13 -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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Selector } from './Selector';
|
|
2
2
|
/**
|
|
3
|
-
* Locates a
|
|
3
|
+
* Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) using a [CSS selector](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors)
|
|
4
4
|
* capable of piercing [shadow DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM)-piercing
|
|
5
5
|
*
|
|
6
|
-
* **Pro tip:** Instantiate using
|
|
6
|
+
* **Pro tip:** Instantiate using [`By.deepCss`](https://serenity-js.org/api/web/class/By/#deepCss)
|
|
7
7
|
*
|
|
8
8
|
* @group Models
|
|
9
9
|
*/
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ByDeepCss = void 0;
|
|
4
4
|
const Selector_1 = require("./Selector");
|
|
5
5
|
/**
|
|
6
|
-
* Locates a
|
|
6
|
+
* Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) using a [CSS selector](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors)
|
|
7
7
|
* capable of piercing [shadow DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM)-piercing
|
|
8
8
|
*
|
|
9
|
-
* **Pro tip:** Instantiate using
|
|
9
|
+
* **Pro tip:** Instantiate using [`By.deepCss`](https://serenity-js.org/api/web/class/By/#deepCss)
|
|
10
10
|
*
|
|
11
11
|
* @group Models
|
|
12
12
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Selector } from './Selector';
|
|
2
2
|
/**
|
|
3
|
-
* Locates a
|
|
3
|
+
* Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) using its [id](https://developer.mozilla.org/en-US/docs/Web/CSS/ID_selectors).
|
|
4
4
|
*
|
|
5
|
-
* **Pro tip:** Instantiate using
|
|
5
|
+
* **Pro tip:** Instantiate using [`By.id`](https://serenity-js.org/api/web/class/By/#id)
|
|
6
6
|
*
|
|
7
7
|
* @group Models
|
|
8
8
|
*/
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ById = void 0;
|
|
4
4
|
const Selector_1 = require("./Selector");
|
|
5
5
|
/**
|
|
6
|
-
* Locates a
|
|
6
|
+
* Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) using its [id](https://developer.mozilla.org/en-US/docs/Web/CSS/ID_selectors).
|
|
7
7
|
*
|
|
8
|
-
* **Pro tip:** Instantiate using
|
|
8
|
+
* **Pro tip:** Instantiate using [`By.id`](https://serenity-js.org/api/web/class/By/#id)
|
|
9
9
|
*
|
|
10
10
|
* @group Models
|
|
11
11
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Selector } from './Selector';
|
|
2
2
|
/**
|
|
3
|
-
* Locates a
|
|
3
|
+
* Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) using the name of its [HTML tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element).
|
|
4
4
|
*
|
|
5
|
-
* **Pro tip:** Instantiate using
|
|
5
|
+
* **Pro tip:** Instantiate using [`By.tagName`](https://serenity-js.org/api/web/class/By/#tagName)
|
|
6
6
|
*
|
|
7
7
|
* @group Models
|
|
8
8
|
*/
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ByTagName = void 0;
|
|
4
4
|
const Selector_1 = require("./Selector");
|
|
5
5
|
/**
|
|
6
|
-
* Locates a
|
|
6
|
+
* Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) using the name of its [HTML tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element).
|
|
7
7
|
*
|
|
8
|
-
* **Pro tip:** Instantiate using
|
|
8
|
+
* **Pro tip:** Instantiate using [`By.tagName`](https://serenity-js.org/api/web/class/By/#tagName)
|
|
9
9
|
*
|
|
10
10
|
* @group Models
|
|
11
11
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Selector } from './Selector';
|
|
2
2
|
/**
|
|
3
|
-
* Locates a
|
|
3
|
+
* Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) using an [XPath selector](https://developer.mozilla.org/en-US/docs/Web/XPath).
|
|
4
4
|
*
|
|
5
|
-
* **Pro tip:** Instantiate using
|
|
5
|
+
* **Pro tip:** Instantiate using [`By.xpath`](https://serenity-js.org/api/web/class/By/#xpath)
|
|
6
6
|
*
|
|
7
7
|
* @group Models
|
|
8
8
|
*/
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ByXPath = void 0;
|
|
4
4
|
const Selector_1 = require("./Selector");
|
|
5
5
|
/**
|
|
6
|
-
* Locates a
|
|
6
|
+
* Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) using an [XPath selector](https://developer.mozilla.org/en-US/docs/Web/XPath).
|
|
7
7
|
*
|
|
8
|
-
* **Pro tip:** Instantiate using
|
|
8
|
+
* **Pro tip:** Instantiate using [`By.xpath`](https://serenity-js.org/api/web/class/By/#xpath)
|
|
9
9
|
*
|
|
10
10
|
* @group Models
|
|
11
11
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TinyType } from 'tiny-types';
|
|
2
2
|
/**
|
|
3
|
-
* Describes a selector you use to identify a
|
|
3
|
+
* Describes a selector you use to identify a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) or a group of [`PageElement`](https://serenity-js.org/api/web/class/PageElements/).
|
|
4
4
|
*
|
|
5
5
|
* @group Models
|
|
6
6
|
*/
|
|
@@ -4,7 +4,7 @@ exports.Selector = void 0;
|
|
|
4
4
|
const core_1 = require("@serenity-js/core");
|
|
5
5
|
const tiny_types_1 = require("tiny-types");
|
|
6
6
|
/**
|
|
7
|
-
* Describes a selector you use to identify a
|
|
7
|
+
* Describes a selector you use to identify a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) or a group of [`PageElement`](https://serenity-js.org/api/web/class/PageElements/).
|
|
8
8
|
*
|
|
9
9
|
* @group Models
|
|
10
10
|
*/
|
|
@@ -2,8 +2,8 @@ import type { Answerable, AnswersQuestions, MetaQuestion, MetaQuestionAdapter, O
|
|
|
2
2
|
import { Question } from '@serenity-js/core';
|
|
3
3
|
import { PageElement } from '../models';
|
|
4
4
|
/**
|
|
5
|
-
* Uses the
|
|
6
|
-
* the value of the specified HTML attribute of a given
|
|
5
|
+
* Uses the [actor's](https://serenity-js.org/api/core/class/Actor/) [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) to retrieve
|
|
6
|
+
* the value of the specified HTML attribute of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
7
7
|
*
|
|
8
8
|
* ## Example widget
|
|
9
9
|
*
|
|
@@ -15,7 +15,7 @@ import { PageElement } from '../models';
|
|
|
15
15
|
* </ul>
|
|
16
16
|
* ```
|
|
17
17
|
*
|
|
18
|
-
* ## Retrieve an HTML attribute of a given
|
|
18
|
+
* ## Retrieve an HTML attribute of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
19
19
|
*
|
|
20
20
|
* ```ts
|
|
21
21
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -35,7 +35,7 @@ import { PageElement } from '../models';
|
|
|
35
35
|
* )
|
|
36
36
|
* ```
|
|
37
37
|
*
|
|
38
|
-
* ## Using `Attribute` as
|
|
38
|
+
* ## Using `Attribute` as [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter)
|
|
39
39
|
*
|
|
40
40
|
* ```ts
|
|
41
41
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -55,7 +55,7 @@ import { PageElement } from '../models';
|
|
|
55
55
|
* )
|
|
56
56
|
* ```
|
|
57
57
|
*
|
|
58
|
-
* ## Using as filter in
|
|
58
|
+
* ## Using as filter in [Page Element Query Language](https://serenity-js.org/handbook/web-testing/page-element-query-language/)
|
|
59
59
|
*
|
|
60
60
|
* ```ts
|
|
61
61
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -86,10 +86,10 @@ import { PageElement } from '../models';
|
|
|
86
86
|
* ```
|
|
87
87
|
*
|
|
88
88
|
* ## Learn more
|
|
89
|
-
* -
|
|
90
|
-
* -
|
|
91
|
-
* -
|
|
92
|
-
* -
|
|
89
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
90
|
+
* - [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/)
|
|
91
|
+
* - [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter)
|
|
92
|
+
* - [`Question`](https://serenity-js.org/api/core/class/Question/)
|
|
93
93
|
*
|
|
94
94
|
* @group Questions
|
|
95
95
|
*/
|
|
@@ -97,9 +97,9 @@ export declare class Attribute<Native_Element_Type> extends Question<Promise<str
|
|
|
97
97
|
private readonly name;
|
|
98
98
|
private readonly element?;
|
|
99
99
|
/**
|
|
100
|
-
* Instantiates a
|
|
101
|
-
* the
|
|
102
|
-
* the value of the specified HTML attribute of a given
|
|
100
|
+
* Instantiates a [`Question`](https://serenity-js.org/api/core/class/Question/) that uses
|
|
101
|
+
* the [actor's](https://serenity-js.org/api/core/class/Actor/) [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) to retrieve
|
|
102
|
+
* the value of the specified HTML attribute of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
103
103
|
*
|
|
104
104
|
* @param name
|
|
105
105
|
* The name of the attribute to retrieve
|
|
@@ -110,7 +110,7 @@ export declare class Attribute<Native_Element_Type> extends Question<Promise<str
|
|
|
110
110
|
* Resolves to the value of an HTML attribute of the `pageElement`.
|
|
111
111
|
*
|
|
112
112
|
* #### Learn more
|
|
113
|
-
* -
|
|
113
|
+
* - [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/)
|
|
114
114
|
*
|
|
115
115
|
* @param pageElement
|
|
116
116
|
*/
|
|
@@ -4,8 +4,8 @@ exports.Attribute = void 0;
|
|
|
4
4
|
const core_1 = require("@serenity-js/core");
|
|
5
5
|
const models_1 = require("../models");
|
|
6
6
|
/**
|
|
7
|
-
* Uses the
|
|
8
|
-
* the value of the specified HTML attribute of a given
|
|
7
|
+
* Uses the [actor's](https://serenity-js.org/api/core/class/Actor/) [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) to retrieve
|
|
8
|
+
* the value of the specified HTML attribute of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
9
9
|
*
|
|
10
10
|
* ## Example widget
|
|
11
11
|
*
|
|
@@ -17,7 +17,7 @@ const models_1 = require("../models");
|
|
|
17
17
|
* </ul>
|
|
18
18
|
* ```
|
|
19
19
|
*
|
|
20
|
-
* ## Retrieve an HTML attribute of a given
|
|
20
|
+
* ## Retrieve an HTML attribute of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
21
21
|
*
|
|
22
22
|
* ```ts
|
|
23
23
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -37,7 +37,7 @@ const models_1 = require("../models");
|
|
|
37
37
|
* )
|
|
38
38
|
* ```
|
|
39
39
|
*
|
|
40
|
-
* ## Using `Attribute` as
|
|
40
|
+
* ## Using `Attribute` as [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter)
|
|
41
41
|
*
|
|
42
42
|
* ```ts
|
|
43
43
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -57,7 +57,7 @@ const models_1 = require("../models");
|
|
|
57
57
|
* )
|
|
58
58
|
* ```
|
|
59
59
|
*
|
|
60
|
-
* ## Using as filter in
|
|
60
|
+
* ## Using as filter in [Page Element Query Language](https://serenity-js.org/handbook/web-testing/page-element-query-language/)
|
|
61
61
|
*
|
|
62
62
|
* ```ts
|
|
63
63
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -88,10 +88,10 @@ const models_1 = require("../models");
|
|
|
88
88
|
* ```
|
|
89
89
|
*
|
|
90
90
|
* ## Learn more
|
|
91
|
-
* -
|
|
92
|
-
* -
|
|
93
|
-
* -
|
|
94
|
-
* -
|
|
91
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
92
|
+
* - [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/)
|
|
93
|
+
* - [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter)
|
|
94
|
+
* - [`Question`](https://serenity-js.org/api/core/class/Question/)
|
|
95
95
|
*
|
|
96
96
|
* @group Questions
|
|
97
97
|
*/
|
|
@@ -99,9 +99,9 @@ class Attribute extends core_1.Question {
|
|
|
99
99
|
name;
|
|
100
100
|
element;
|
|
101
101
|
/**
|
|
102
|
-
* Instantiates a
|
|
103
|
-
* the
|
|
104
|
-
* the value of the specified HTML attribute of a given
|
|
102
|
+
* Instantiates a [`Question`](https://serenity-js.org/api/core/class/Question/) that uses
|
|
103
|
+
* the [actor's](https://serenity-js.org/api/core/class/Actor/) [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) to retrieve
|
|
104
|
+
* the value of the specified HTML attribute of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
105
105
|
*
|
|
106
106
|
* @param name
|
|
107
107
|
* The name of the attribute to retrieve
|
|
@@ -120,7 +120,7 @@ class Attribute extends core_1.Question {
|
|
|
120
120
|
* Resolves to the value of an HTML attribute of the `pageElement`.
|
|
121
121
|
*
|
|
122
122
|
* #### Learn more
|
|
123
|
-
* -
|
|
123
|
+
* - [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/)
|
|
124
124
|
*
|
|
125
125
|
* @param pageElement
|
|
126
126
|
*/
|
|
@@ -2,8 +2,8 @@ import type { Answerable, AnswersQuestions, MetaQuestion, MetaQuestionAdapter, Q
|
|
|
2
2
|
import { Question } from '@serenity-js/core';
|
|
3
3
|
import { PageElement } from '../models';
|
|
4
4
|
/**
|
|
5
|
-
* Uses the
|
|
6
|
-
* the value of the specified computed style property of a given
|
|
5
|
+
* Uses the [actor's](https://serenity-js.org/api/core/class/Actor/) [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) to retrieve
|
|
6
|
+
* the value of the specified computed style property of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
7
7
|
*
|
|
8
8
|
* ## Example widget
|
|
9
9
|
*
|
|
@@ -15,7 +15,7 @@ import { PageElement } from '../models';
|
|
|
15
15
|
* </ul>
|
|
16
16
|
* ```
|
|
17
17
|
*
|
|
18
|
-
* ## Retrieve a computed style property of a given
|
|
18
|
+
* ## Retrieve a computed style property of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
19
19
|
*
|
|
20
20
|
* ```ts
|
|
21
21
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -34,7 +34,7 @@ import { PageElement } from '../models';
|
|
|
34
34
|
* )
|
|
35
35
|
* ```
|
|
36
36
|
*
|
|
37
|
-
* ## Using `ComputedStyle` as
|
|
37
|
+
* ## Using `ComputedStyle` as [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter)
|
|
38
38
|
*
|
|
39
39
|
* ```ts
|
|
40
40
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -53,7 +53,7 @@ import { PageElement } from '../models';
|
|
|
53
53
|
* )
|
|
54
54
|
* ```
|
|
55
55
|
*
|
|
56
|
-
* ## Using as filter in
|
|
56
|
+
* ## Using as filter in [Page Element Query Language](https://serenity-js.org/handbook/web-testing/page-element-query-language/)
|
|
57
57
|
*
|
|
58
58
|
* ```ts
|
|
59
59
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -84,10 +84,10 @@ import { PageElement } from '../models';
|
|
|
84
84
|
* ```
|
|
85
85
|
*
|
|
86
86
|
* ## Learn more
|
|
87
|
-
* -
|
|
88
|
-
* -
|
|
89
|
-
* -
|
|
90
|
-
* -
|
|
87
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
88
|
+
* - [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/)
|
|
89
|
+
* - [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter)
|
|
90
|
+
* - [`Question`](https://serenity-js.org/api/core/class/Question/)
|
|
91
91
|
*
|
|
92
92
|
* @group Questions
|
|
93
93
|
*/
|
|
@@ -96,9 +96,9 @@ export declare class ComputedStyle<Native_Element_Type> extends Question<Promise
|
|
|
96
96
|
private readonly element?;
|
|
97
97
|
private readonly pseudoElement?;
|
|
98
98
|
/**
|
|
99
|
-
* Instantiates a
|
|
100
|
-
* the
|
|
101
|
-
* the value of the specified computed style property of a given
|
|
99
|
+
* Instantiates a [`Question`](https://serenity-js.org/api/core/class/Question/) that uses
|
|
100
|
+
* the [actor's](https://serenity-js.org/api/core/class/Actor/) [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) to retrieve
|
|
101
|
+
* the value of the specified computed style property of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
102
102
|
*
|
|
103
103
|
* @param name
|
|
104
104
|
* The name of the computed style property to retrieve
|
|
@@ -106,9 +106,9 @@ export declare class ComputedStyle<Native_Element_Type> extends Question<Promise
|
|
|
106
106
|
static called<NET = any>(name: Answerable<string>): ComputedStyle<NET>;
|
|
107
107
|
protected constructor(name: Answerable<string>, element?: QuestionAdapter<PageElement<Native_Element_Type>> | PageElement<Native_Element_Type>, pseudoElement?: Answerable<string>);
|
|
108
108
|
/**
|
|
109
|
-
* Instantiates a
|
|
110
|
-
* the
|
|
111
|
-
* the value of the specified computed style property of the specified pseudo-element of a given
|
|
109
|
+
* Instantiates a [`Question`](https://serenity-js.org/api/core/class/Question/) that uses
|
|
110
|
+
* the [actor's](https://serenity-js.org/api/core/class/Actor/) [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) to retrieve
|
|
111
|
+
* the value of the specified computed style property of the specified pseudo-element of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
112
112
|
*
|
|
113
113
|
* @param pseudoElement
|
|
114
114
|
* The pseudo-element to retrieve the computed style property from, such as `::before` or `::after`
|
|
@@ -118,7 +118,7 @@ export declare class ComputedStyle<Native_Element_Type> extends Question<Promise
|
|
|
118
118
|
* Resolves to the value of a computed style property of the `pageElement`.
|
|
119
119
|
*
|
|
120
120
|
* #### Learn more
|
|
121
|
-
* -
|
|
121
|
+
* - [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/)
|
|
122
122
|
*
|
|
123
123
|
* @param pageElement
|
|
124
124
|
*/
|
|
@@ -5,8 +5,8 @@ const core_1 = require("@serenity-js/core");
|
|
|
5
5
|
const abilities_1 = require("../abilities");
|
|
6
6
|
const models_1 = require("../models");
|
|
7
7
|
/**
|
|
8
|
-
* Uses the
|
|
9
|
-
* the value of the specified computed style property of a given
|
|
8
|
+
* Uses the [actor's](https://serenity-js.org/api/core/class/Actor/) [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) to retrieve
|
|
9
|
+
* the value of the specified computed style property of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
10
10
|
*
|
|
11
11
|
* ## Example widget
|
|
12
12
|
*
|
|
@@ -18,7 +18,7 @@ const models_1 = require("../models");
|
|
|
18
18
|
* </ul>
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
21
|
-
* ## Retrieve a computed style property of a given
|
|
21
|
+
* ## Retrieve a computed style property of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
22
22
|
*
|
|
23
23
|
* ```ts
|
|
24
24
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -37,7 +37,7 @@ const models_1 = require("../models");
|
|
|
37
37
|
* )
|
|
38
38
|
* ```
|
|
39
39
|
*
|
|
40
|
-
* ## Using `ComputedStyle` as
|
|
40
|
+
* ## Using `ComputedStyle` as [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter)
|
|
41
41
|
*
|
|
42
42
|
* ```ts
|
|
43
43
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -56,7 +56,7 @@ const models_1 = require("../models");
|
|
|
56
56
|
* )
|
|
57
57
|
* ```
|
|
58
58
|
*
|
|
59
|
-
* ## Using as filter in
|
|
59
|
+
* ## Using as filter in [Page Element Query Language](https://serenity-js.org/handbook/web-testing/page-element-query-language/)
|
|
60
60
|
*
|
|
61
61
|
* ```ts
|
|
62
62
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -87,10 +87,10 @@ const models_1 = require("../models");
|
|
|
87
87
|
* ```
|
|
88
88
|
*
|
|
89
89
|
* ## Learn more
|
|
90
|
-
* -
|
|
91
|
-
* -
|
|
92
|
-
* -
|
|
93
|
-
* -
|
|
90
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
91
|
+
* - [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/)
|
|
92
|
+
* - [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter)
|
|
93
|
+
* - [`Question`](https://serenity-js.org/api/core/class/Question/)
|
|
94
94
|
*
|
|
95
95
|
* @group Questions
|
|
96
96
|
*/
|
|
@@ -99,9 +99,9 @@ class ComputedStyle extends core_1.Question {
|
|
|
99
99
|
element;
|
|
100
100
|
pseudoElement;
|
|
101
101
|
/**
|
|
102
|
-
* Instantiates a
|
|
103
|
-
* the
|
|
104
|
-
* the value of the specified computed style property of a given
|
|
102
|
+
* Instantiates a [`Question`](https://serenity-js.org/api/core/class/Question/) that uses
|
|
103
|
+
* the [actor's](https://serenity-js.org/api/core/class/Actor/) [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) to retrieve
|
|
104
|
+
* the value of the specified computed style property of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
105
105
|
*
|
|
106
106
|
* @param name
|
|
107
107
|
* The name of the computed style property to retrieve
|
|
@@ -120,9 +120,9 @@ class ComputedStyle extends core_1.Question {
|
|
|
120
120
|
this.pseudoElement = pseudoElement;
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
|
-
* Instantiates a
|
|
124
|
-
* the
|
|
125
|
-
* the value of the specified computed style property of the specified pseudo-element of a given
|
|
123
|
+
* Instantiates a [`Question`](https://serenity-js.org/api/core/class/Question/) that uses
|
|
124
|
+
* the [actor's](https://serenity-js.org/api/core/class/Actor/) [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) to retrieve
|
|
125
|
+
* the value of the specified computed style property of the specified pseudo-element of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
126
126
|
*
|
|
127
127
|
* @param pseudoElement
|
|
128
128
|
* The pseudo-element to retrieve the computed style property from, such as `::before` or `::after`
|
|
@@ -134,7 +134,7 @@ class ComputedStyle extends core_1.Question {
|
|
|
134
134
|
* Resolves to the value of a computed style property of the `pageElement`.
|
|
135
135
|
*
|
|
136
136
|
* #### Learn more
|
|
137
|
-
* -
|
|
137
|
+
* - [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/)
|
|
138
138
|
*
|
|
139
139
|
* @param pageElement
|
|
140
140
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { MetaQuestionAdapter, QuestionAdapter } from '@serenity-js/core';
|
|
2
2
|
import { PageElement } from '../models';
|
|
3
3
|
/**
|
|
4
|
-
* Uses the
|
|
4
|
+
* Uses the [actor's](https://serenity-js.org/api/core/class/Actor/) [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) to retrieve
|
|
5
5
|
* a list of [CSS classes](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-class)
|
|
6
|
-
* of a given
|
|
6
|
+
* of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
7
7
|
*
|
|
8
8
|
* ## Example widget
|
|
9
9
|
*
|
|
@@ -15,7 +15,7 @@ import { PageElement } from '../models';
|
|
|
15
15
|
* </ul>
|
|
16
16
|
* ```
|
|
17
17
|
*
|
|
18
|
-
* ## Retrieve CSS classes of a given
|
|
18
|
+
* ## Retrieve CSS classes of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
19
19
|
*
|
|
20
20
|
* ```ts
|
|
21
21
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -35,7 +35,7 @@ import { PageElement } from '../models';
|
|
|
35
35
|
* )
|
|
36
36
|
* ```
|
|
37
37
|
*
|
|
38
|
-
* ## Using CssClasses as
|
|
38
|
+
* ## Using CssClasses as [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter)
|
|
39
39
|
*
|
|
40
40
|
* ```ts
|
|
41
41
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -59,7 +59,7 @@ import { PageElement } from '../models';
|
|
|
59
59
|
* )
|
|
60
60
|
* ```
|
|
61
61
|
*
|
|
62
|
-
* ## Using as filter in
|
|
62
|
+
* ## Using as filter in [Page Element Query Language](https://serenity-js.org/handbook/web-testing/page-element-query-language/)
|
|
63
63
|
*
|
|
64
64
|
* ```ts
|
|
65
65
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -86,22 +86,22 @@ import { PageElement } from '../models';
|
|
|
86
86
|
* ```
|
|
87
87
|
*
|
|
88
88
|
* ## Learn more
|
|
89
|
-
* -
|
|
90
|
-
* -
|
|
91
|
-
* -
|
|
92
|
-
* -
|
|
89
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
90
|
+
* - [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/)
|
|
91
|
+
* - [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter)
|
|
92
|
+
* - [`Question`](https://serenity-js.org/api/core/class/Question/)
|
|
93
93
|
*
|
|
94
94
|
* @group Questions
|
|
95
95
|
*/
|
|
96
96
|
export declare class CssClasses {
|
|
97
97
|
/**
|
|
98
|
-
* Instantiates a
|
|
99
|
-
* the
|
|
98
|
+
* Instantiates a [`Question`](https://serenity-js.org/api/core/class/Question/) that uses
|
|
99
|
+
* the [actor's](https://serenity-js.org/api/core/class/Actor/) [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) to retrieve
|
|
100
100
|
* a list of [CSS classes](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-class)
|
|
101
|
-
* of a given
|
|
101
|
+
* of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
102
102
|
*
|
|
103
103
|
* #### Learn more
|
|
104
|
-
* -
|
|
104
|
+
* - [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/)
|
|
105
105
|
*
|
|
106
106
|
* @param pageElement
|
|
107
107
|
*/
|
|
@@ -4,9 +4,9 @@ exports.CssClasses = void 0;
|
|
|
4
4
|
const core_1 = require("@serenity-js/core");
|
|
5
5
|
const models_1 = require("../models");
|
|
6
6
|
/**
|
|
7
|
-
* Uses the
|
|
7
|
+
* Uses the [actor's](https://serenity-js.org/api/core/class/Actor/) [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) to retrieve
|
|
8
8
|
* a list of [CSS classes](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-class)
|
|
9
|
-
* of a given
|
|
9
|
+
* of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
10
10
|
*
|
|
11
11
|
* ## Example widget
|
|
12
12
|
*
|
|
@@ -18,7 +18,7 @@ const models_1 = require("../models");
|
|
|
18
18
|
* </ul>
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
21
|
-
* ## Retrieve CSS classes of a given
|
|
21
|
+
* ## Retrieve CSS classes of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
22
22
|
*
|
|
23
23
|
* ```ts
|
|
24
24
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -38,7 +38,7 @@ const models_1 = require("../models");
|
|
|
38
38
|
* )
|
|
39
39
|
* ```
|
|
40
40
|
*
|
|
41
|
-
* ## Using CssClasses as
|
|
41
|
+
* ## Using CssClasses as [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter)
|
|
42
42
|
*
|
|
43
43
|
* ```ts
|
|
44
44
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -62,7 +62,7 @@ const models_1 = require("../models");
|
|
|
62
62
|
* )
|
|
63
63
|
* ```
|
|
64
64
|
*
|
|
65
|
-
* ## Using as filter in
|
|
65
|
+
* ## Using as filter in [Page Element Query Language](https://serenity-js.org/handbook/web-testing/page-element-query-language/)
|
|
66
66
|
*
|
|
67
67
|
* ```ts
|
|
68
68
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -89,22 +89,22 @@ const models_1 = require("../models");
|
|
|
89
89
|
* ```
|
|
90
90
|
*
|
|
91
91
|
* ## Learn more
|
|
92
|
-
* -
|
|
93
|
-
* -
|
|
94
|
-
* -
|
|
95
|
-
* -
|
|
92
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
93
|
+
* - [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/)
|
|
94
|
+
* - [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter)
|
|
95
|
+
* - [`Question`](https://serenity-js.org/api/core/class/Question/)
|
|
96
96
|
*
|
|
97
97
|
* @group Questions
|
|
98
98
|
*/
|
|
99
99
|
class CssClasses {
|
|
100
100
|
/**
|
|
101
|
-
* Instantiates a
|
|
102
|
-
* the
|
|
101
|
+
* Instantiates a [`Question`](https://serenity-js.org/api/core/class/Question/) that uses
|
|
102
|
+
* the [actor's](https://serenity-js.org/api/core/class/Actor/) [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) to retrieve
|
|
103
103
|
* a list of [CSS classes](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-class)
|
|
104
|
-
* of a given
|
|
104
|
+
* of a given [`PageElement`](https://serenity-js.org/api/web/class/PageElement/).
|
|
105
105
|
*
|
|
106
106
|
* #### Learn more
|
|
107
|
-
* -
|
|
107
|
+
* - [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/)
|
|
108
108
|
*
|
|
109
109
|
* @param pageElement
|
|
110
110
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { QuestionAdapter } from '@serenity-js/core';
|
|
2
2
|
/**
|
|
3
|
-
* Uses the
|
|
4
|
-
* a returns the result of the last script executed via
|
|
3
|
+
* Uses the [actor's](https://serenity-js.org/api/core/class/Actor/) [ability](https://serenity-js.org/api/core/class/Ability/) to [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/) to retrieve
|
|
4
|
+
* a returns the result of the last script executed via [`ExecuteScript`](https://serenity-js.org/api/web/class/ExecuteScript/).
|
|
5
5
|
*
|
|
6
6
|
* ## Executing a script and reading the result
|
|
7
7
|
*
|
|
@@ -17,7 +17,7 @@ import type { QuestionAdapter } from '@serenity-js/core';
|
|
|
17
17
|
* )
|
|
18
18
|
* ```
|
|
19
19
|
*
|
|
20
|
-
* ## Using LastScriptExecution as
|
|
20
|
+
* ## Using LastScriptExecution as [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter)
|
|
21
21
|
*
|
|
22
22
|
* ```ts
|
|
23
23
|
* import { actorCalled } from '@serenity-js/core'
|
|
@@ -35,15 +35,15 @@ import type { QuestionAdapter } from '@serenity-js/core';
|
|
|
35
35
|
* ```
|
|
36
36
|
*
|
|
37
37
|
* ## Learn more
|
|
38
|
-
* -
|
|
39
|
-
* -
|
|
40
|
-
* -
|
|
38
|
+
* - [`ExecuteScript`](https://serenity-js.org/api/web/class/ExecuteScript/)
|
|
39
|
+
* - [`BrowseTheWeb`](https://serenity-js.org/api/web/class/BrowseTheWeb/)
|
|
40
|
+
* - [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter)
|
|
41
41
|
*
|
|
42
42
|
* @group Questions
|
|
43
43
|
*/
|
|
44
44
|
export declare class LastScriptExecution {
|
|
45
45
|
/**
|
|
46
|
-
* Enables asserting on the result of a function executed via
|
|
46
|
+
* Enables asserting on the result of a function executed via [`ExecuteScript`](https://serenity-js.org/api/web/class/ExecuteScript/).
|
|
47
47
|
*/
|
|
48
48
|
static result<R>(): QuestionAdapter<R>;
|
|
49
49
|
}
|