@serenity-js/web 3.25.0 → 3.25.2
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 +19 -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 +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 +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
|
@@ -6,8 +6,8 @@ import { ById } from './ById';
|
|
|
6
6
|
import { ByTagName } from './ByTagName';
|
|
7
7
|
import { ByXPath } from './ByXPath';
|
|
8
8
|
/**
|
|
9
|
-
* `By` produces a
|
|
10
|
-
* Selectors can be defined using a static value or a
|
|
9
|
+
* `By` produces a [`Selector`](https://serenity-js.org/api/web/class/Selector/) used to locate a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) or [`PageElement`](https://serenity-js.org/api/web/class/PageElements/) on a web page.
|
|
10
|
+
* Selectors can be defined using a static value or a [`Question`](https://serenity-js.org/api/core/class/Question/) to be resolved at runtime.
|
|
11
11
|
*
|
|
12
12
|
* ### Defining a selector using a static value
|
|
13
13
|
*
|
|
@@ -27,11 +27,11 @@ import { ByXPath } from './ByXPath';
|
|
|
27
27
|
*
|
|
28
28
|
* ### Defining a selector using a Question
|
|
29
29
|
*
|
|
30
|
-
* Each method on this class accepts an
|
|
30
|
+
* Each method on this class accepts an [`Answerable`](https://serenity-js.org/api/core/#Answerable) to allow for dynamic resolution of the selector.
|
|
31
31
|
* This can be useful when the selector is not known at the time of writing the test, or when the selector
|
|
32
32
|
* needs to be calculated based on the state of the system under test.
|
|
33
33
|
*
|
|
34
|
-
* The example below demonstrates how to use
|
|
34
|
+
* The example below demonstrates how to use [`q`](https://serenity-js.org/api/core/function/q/) to define a selector that includes a dynamic value.
|
|
35
35
|
*
|
|
36
36
|
* ```typescript
|
|
37
37
|
* import { q } from '@serenity-js/core'
|
|
@@ -46,22 +46,22 @@ import { ByXPath } from './ByXPath';
|
|
|
46
46
|
* ```
|
|
47
47
|
*
|
|
48
48
|
* ### Learn more
|
|
49
|
-
* - [Page Element Query Language](/handbook/web-testing/page-element-query-language)
|
|
50
|
-
* -
|
|
51
|
-
* -
|
|
52
|
-
* -
|
|
49
|
+
* - [Page Element Query Language](https://serenity-js.org/handbook/web-testing/page-element-query-language)
|
|
50
|
+
* - [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
51
|
+
* - [`PageElement`](https://serenity-js.org/api/web/class/PageElements/)
|
|
52
|
+
* - [`q`](https://serenity-js.org/api/core/function/q/)
|
|
53
53
|
*
|
|
54
54
|
* @group Models
|
|
55
55
|
*/
|
|
56
56
|
export declare class By {
|
|
57
57
|
/**
|
|
58
|
-
* Locates a
|
|
58
|
+
* 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).
|
|
59
59
|
*
|
|
60
60
|
* @param selector
|
|
61
61
|
*/
|
|
62
62
|
static css(selector: Answerable<string>): Question<Promise<ByCss>>;
|
|
63
63
|
/**
|
|
64
|
-
* Locates a
|
|
64
|
+
* Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) with a given [`innerText`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText)
|
|
65
65
|
* using a [CSS selector](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors).
|
|
66
66
|
*
|
|
67
67
|
* @param selector
|
|
@@ -69,26 +69,26 @@ export declare class By {
|
|
|
69
69
|
*/
|
|
70
70
|
static cssContainingText(selector: Answerable<string>, text: Answerable<string>): Question<Promise<ByCssContainingText>>;
|
|
71
71
|
/**
|
|
72
|
-
* Locates a
|
|
72
|
+
* 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)
|
|
73
73
|
* capable of piercing [shadow DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM)-piercing
|
|
74
74
|
*
|
|
75
75
|
* @param selector
|
|
76
76
|
*/
|
|
77
77
|
static deepCss(selector: Answerable<string>): Question<Promise<ByCss>>;
|
|
78
78
|
/**
|
|
79
|
-
* Locates a
|
|
79
|
+
* 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).
|
|
80
80
|
*
|
|
81
81
|
* @param selector
|
|
82
82
|
*/
|
|
83
83
|
static id(selector: Answerable<string>): Question<Promise<ById>>;
|
|
84
84
|
/**
|
|
85
|
-
* Locates a
|
|
85
|
+
* 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).
|
|
86
86
|
*
|
|
87
87
|
* @param selector
|
|
88
88
|
*/
|
|
89
89
|
static tagName(selector: Answerable<string>): Question<Promise<ByTagName>>;
|
|
90
90
|
/**
|
|
91
|
-
* Locates a
|
|
91
|
+
* Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) using an [XPath selector](https://developer.mozilla.org/en-US/docs/Web/XPath).
|
|
92
92
|
*
|
|
93
93
|
* @param selector
|
|
94
94
|
*/
|
|
@@ -9,8 +9,8 @@ const ById_1 = require("./ById");
|
|
|
9
9
|
const ByTagName_1 = require("./ByTagName");
|
|
10
10
|
const ByXPath_1 = require("./ByXPath");
|
|
11
11
|
/**
|
|
12
|
-
* `By` produces a
|
|
13
|
-
* Selectors can be defined using a static value or a
|
|
12
|
+
* `By` produces a [`Selector`](https://serenity-js.org/api/web/class/Selector/) used to locate a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) or [`PageElement`](https://serenity-js.org/api/web/class/PageElements/) on a web page.
|
|
13
|
+
* Selectors can be defined using a static value or a [`Question`](https://serenity-js.org/api/core/class/Question/) to be resolved at runtime.
|
|
14
14
|
*
|
|
15
15
|
* ### Defining a selector using a static value
|
|
16
16
|
*
|
|
@@ -30,11 +30,11 @@ const ByXPath_1 = require("./ByXPath");
|
|
|
30
30
|
*
|
|
31
31
|
* ### Defining a selector using a Question
|
|
32
32
|
*
|
|
33
|
-
* Each method on this class accepts an
|
|
33
|
+
* Each method on this class accepts an [`Answerable`](https://serenity-js.org/api/core/#Answerable) to allow for dynamic resolution of the selector.
|
|
34
34
|
* This can be useful when the selector is not known at the time of writing the test, or when the selector
|
|
35
35
|
* needs to be calculated based on the state of the system under test.
|
|
36
36
|
*
|
|
37
|
-
* The example below demonstrates how to use
|
|
37
|
+
* The example below demonstrates how to use [`q`](https://serenity-js.org/api/core/function/q/) to define a selector that includes a dynamic value.
|
|
38
38
|
*
|
|
39
39
|
* ```typescript
|
|
40
40
|
* import { q } from '@serenity-js/core'
|
|
@@ -49,16 +49,16 @@ const ByXPath_1 = require("./ByXPath");
|
|
|
49
49
|
* ```
|
|
50
50
|
*
|
|
51
51
|
* ### Learn more
|
|
52
|
-
* - [Page Element Query Language](/handbook/web-testing/page-element-query-language)
|
|
53
|
-
* -
|
|
54
|
-
* -
|
|
55
|
-
* -
|
|
52
|
+
* - [Page Element Query Language](https://serenity-js.org/handbook/web-testing/page-element-query-language)
|
|
53
|
+
* - [`PageElement`](https://serenity-js.org/api/web/class/PageElement/)
|
|
54
|
+
* - [`PageElement`](https://serenity-js.org/api/web/class/PageElements/)
|
|
55
|
+
* - [`q`](https://serenity-js.org/api/core/function/q/)
|
|
56
56
|
*
|
|
57
57
|
* @group Models
|
|
58
58
|
*/
|
|
59
59
|
class By {
|
|
60
60
|
/**
|
|
61
|
-
* Locates a
|
|
61
|
+
* 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).
|
|
62
62
|
*
|
|
63
63
|
* @param selector
|
|
64
64
|
*/
|
|
@@ -69,7 +69,7 @@ class By {
|
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
-
* Locates a
|
|
72
|
+
* Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) with a given [`innerText`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText)
|
|
73
73
|
* using a [CSS selector](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors).
|
|
74
74
|
*
|
|
75
75
|
* @param selector
|
|
@@ -83,7 +83,7 @@ class By {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
|
-
* Locates a
|
|
86
|
+
* 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)
|
|
87
87
|
* capable of piercing [shadow DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM)-piercing
|
|
88
88
|
*
|
|
89
89
|
* @param selector
|
|
@@ -95,7 +95,7 @@ class By {
|
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
|
-
* Locates a
|
|
98
|
+
* 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).
|
|
99
99
|
*
|
|
100
100
|
* @param selector
|
|
101
101
|
*/
|
|
@@ -106,7 +106,7 @@ class By {
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* Locates a
|
|
109
|
+
* 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).
|
|
110
110
|
*
|
|
111
111
|
* @param selector
|
|
112
112
|
*/
|
|
@@ -117,7 +117,7 @@ class By {
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
/**
|
|
120
|
-
* Locates a
|
|
120
|
+
* Locates a [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) using an [XPath selector](https://developer.mozilla.org/en-US/docs/Web/XPath).
|
|
121
121
|
*
|
|
122
122
|
* @param selector
|
|
123
123
|
*/
|
|
@@ -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 a [CSS selector](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors).
|
|
4
4
|
*
|
|
5
|
-
* **Pro tip:** Instantiate using
|
|
5
|
+
* **Pro tip:** Instantiate using [`By.css`](https://serenity-js.org/api/web/class/By/#css)
|
|
6
6
|
*
|
|
7
7
|
* @group Models
|
|
8
8
|
*/
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ByCss = 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
|
*
|
|
8
|
-
* **Pro tip:** Instantiate using
|
|
8
|
+
* **Pro tip:** Instantiate using [`By.css`](https://serenity-js.org/api/web/class/By/#css)
|
|
9
9
|
*
|
|
10
10
|
* @group Models
|
|
11
11
|
*/
|
|
@@ -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/) with a given [`innerText`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText)
|
|
4
4
|
* using a [CSS selector](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors).
|
|
5
5
|
*
|
|
6
|
-
* **Pro tip:** Instantiate using
|
|
6
|
+
* **Pro tip:** Instantiate using [`By.cssContainingText`](https://serenity-js.org/api/web/class/By/#cssContainingText)
|
|
7
7
|
*
|
|
8
8
|
* @group Models
|
|
9
9
|
*/
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ByCssContainingText = 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/) with a given [`innerText`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText)
|
|
7
7
|
* using a [CSS selector](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors).
|
|
8
8
|
*
|
|
9
|
-
* **Pro tip:** Instantiate using
|
|
9
|
+
* **Pro tip:** Instantiate using [`By.cssContainingText`](https://serenity-js.org/api/web/class/By/#cssContainingText)
|
|
10
10
|
*
|
|
11
11
|
* @group Models
|
|
12
12
|
*/
|
|
@@ -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
|
*/
|