@serenity-js/web 3.0.0-rc.9 → 3.0.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 +337 -74
- package/README.md +8 -12
- package/lib/errors/BrowserWindowClosedError.d.ts +15 -0
- package/lib/errors/BrowserWindowClosedError.d.ts.map +1 -0
- package/lib/errors/BrowserWindowClosedError.js +21 -0
- package/lib/errors/BrowserWindowClosedError.js.map +1 -0
- package/lib/errors/CookieMissingError.d.ts +11 -0
- package/lib/errors/CookieMissingError.d.ts.map +1 -0
- package/lib/errors/CookieMissingError.js +10 -0
- package/lib/errors/CookieMissingError.js.map +1 -1
- package/lib/errors/ModalDialogObstructsScreenshotError.d.ts +15 -0
- package/lib/errors/ModalDialogObstructsScreenshotError.d.ts.map +1 -0
- package/lib/errors/ModalDialogObstructsScreenshotError.js +21 -0
- package/lib/errors/ModalDialogObstructsScreenshotError.js.map +1 -0
- package/lib/errors/index.d.ts +3 -0
- package/lib/errors/index.d.ts.map +1 -0
- package/lib/errors/index.js +7 -1
- package/lib/errors/index.js.map +1 -1
- package/lib/expectations/index.d.ts +1 -1
- package/lib/expectations/index.d.ts.map +1 -0
- package/lib/expectations/index.js +5 -2
- package/lib/expectations/index.js.map +1 -1
- package/lib/expectations/isActive.d.ts +14 -8
- package/lib/expectations/isActive.d.ts.map +1 -0
- package/lib/expectations/isActive.js +17 -11
- package/lib/expectations/isActive.js.map +1 -1
- package/lib/expectations/isClickable.d.ts +14 -13
- package/lib/expectations/isClickable.d.ts.map +1 -0
- package/lib/expectations/isClickable.js +15 -17
- package/lib/expectations/isClickable.js.map +1 -1
- package/lib/expectations/isEnabled.d.ts +14 -7
- package/lib/expectations/isEnabled.d.ts.map +1 -0
- package/lib/expectations/isEnabled.js +17 -9
- package/lib/expectations/isEnabled.js.map +1 -1
- package/lib/expectations/isSelected.d.ts +14 -7
- package/lib/expectations/isSelected.d.ts.map +1 -0
- package/lib/expectations/isSelected.js +15 -9
- package/lib/expectations/isSelected.js.map +1 -1
- package/lib/expectations/isVisible.d.ts +14 -7
- package/lib/expectations/isVisible.d.ts.map +1 -0
- package/lib/expectations/isVisible.js +17 -9
- package/lib/expectations/isVisible.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +5 -2
- package/lib/index.js.map +1 -1
- package/lib/screenplay/abilities/BrowseTheWeb.d.ts +88 -45
- package/lib/screenplay/abilities/BrowseTheWeb.d.ts.map +1 -0
- package/lib/screenplay/abilities/BrowseTheWeb.js +89 -19
- package/lib/screenplay/abilities/BrowseTheWeb.js.map +1 -1
- package/lib/screenplay/abilities/index.d.ts +1 -1
- package/lib/screenplay/abilities/index.d.ts.map +1 -0
- package/lib/screenplay/abilities/index.js +5 -2
- package/lib/screenplay/abilities/index.js.map +1 -1
- package/lib/screenplay/index.d.ts +1 -0
- package/lib/screenplay/index.d.ts.map +1 -0
- package/lib/screenplay/index.js +5 -1
- package/lib/screenplay/index.js.map +1 -1
- package/lib/screenplay/interactions/Clear.d.ts +50 -55
- package/lib/screenplay/interactions/Clear.d.ts.map +1 -0
- package/lib/screenplay/interactions/Clear.js +70 -63
- package/lib/screenplay/interactions/Clear.js.map +1 -1
- package/lib/screenplay/interactions/Click.d.ts +41 -50
- package/lib/screenplay/interactions/Click.d.ts.map +1 -0
- package/lib/screenplay/interactions/Click.js +45 -55
- package/lib/screenplay/interactions/Click.js.map +1 -1
- package/lib/screenplay/interactions/DoubleClick.d.ts +64 -67
- package/lib/screenplay/interactions/DoubleClick.d.ts.map +1 -0
- package/lib/screenplay/interactions/DoubleClick.js +68 -72
- package/lib/screenplay/interactions/DoubleClick.js.map +1 -1
- package/lib/screenplay/interactions/Enter.d.ts +42 -51
- package/lib/screenplay/interactions/Enter.d.ts.map +1 -0
- package/lib/screenplay/interactions/Enter.js +42 -52
- package/lib/screenplay/interactions/Enter.js.map +1 -1
- package/lib/screenplay/interactions/ExecuteScript.d.ts +144 -148
- package/lib/screenplay/interactions/ExecuteScript.d.ts.map +1 -0
- package/lib/screenplay/interactions/ExecuteScript.js +163 -185
- package/lib/screenplay/interactions/ExecuteScript.js.map +1 -1
- package/lib/screenplay/interactions/Hover.d.ts +40 -50
- package/lib/screenplay/interactions/Hover.d.ts.map +1 -0
- package/lib/screenplay/interactions/Hover.js +44 -55
- package/lib/screenplay/interactions/Hover.js.map +1 -1
- package/lib/screenplay/interactions/Navigate.d.ts +106 -113
- package/lib/screenplay/interactions/Navigate.d.ts.map +1 -0
- package/lib/screenplay/interactions/Navigate.js +124 -146
- package/lib/screenplay/interactions/Navigate.js.map +1 -1
- package/lib/screenplay/interactions/PageElementInteraction.d.ts +12 -28
- package/lib/screenplay/interactions/PageElementInteraction.d.ts.map +1 -0
- package/lib/screenplay/interactions/PageElementInteraction.js +12 -33
- package/lib/screenplay/interactions/PageElementInteraction.js.map +1 -1
- package/lib/screenplay/interactions/Press.d.ts +61 -55
- package/lib/screenplay/interactions/Press.d.ts.map +1 -0
- package/lib/screenplay/interactions/Press.js +83 -72
- package/lib/screenplay/interactions/Press.js.map +1 -1
- package/lib/screenplay/interactions/RightClick.d.ts +59 -65
- package/lib/screenplay/interactions/RightClick.d.ts.map +1 -0
- package/lib/screenplay/interactions/RightClick.js +63 -70
- package/lib/screenplay/interactions/RightClick.js.map +1 -1
- package/lib/screenplay/interactions/Scroll.d.ts +46 -64
- package/lib/screenplay/interactions/Scroll.d.ts.map +1 -0
- package/lib/screenplay/interactions/Scroll.js +49 -71
- package/lib/screenplay/interactions/Scroll.js.map +1 -1
- package/lib/screenplay/interactions/Select.d.ts +217 -193
- package/lib/screenplay/interactions/Select.d.ts.map +1 -0
- package/lib/screenplay/interactions/Select.js +218 -245
- package/lib/screenplay/interactions/Select.js.map +1 -1
- package/lib/screenplay/interactions/Switch.d.ts +105 -128
- package/lib/screenplay/interactions/Switch.d.ts.map +1 -0
- package/lib/screenplay/interactions/Switch.js +121 -172
- package/lib/screenplay/interactions/Switch.js.map +1 -1
- package/lib/screenplay/interactions/TakeScreenshot.d.ts +28 -50
- package/lib/screenplay/interactions/TakeScreenshot.d.ts.map +1 -0
- package/lib/screenplay/interactions/TakeScreenshot.js +32 -57
- package/lib/screenplay/interactions/TakeScreenshot.js.map +1 -1
- package/lib/screenplay/interactions/index.d.ts +2 -3
- package/lib/screenplay/interactions/index.d.ts.map +1 -0
- package/lib/screenplay/interactions/index.js +6 -4
- package/lib/screenplay/interactions/index.js.map +1 -1
- package/lib/screenplay/models/BrowserCapabilities.d.ts +24 -0
- package/lib/screenplay/models/BrowserCapabilities.d.ts.map +1 -0
- package/lib/screenplay/models/BrowserCapabilities.js.map +1 -0
- package/lib/screenplay/models/BrowsingSession.d.ts +69 -0
- package/lib/screenplay/models/BrowsingSession.d.ts.map +1 -0
- package/lib/screenplay/models/BrowsingSession.js +101 -0
- package/lib/screenplay/models/BrowsingSession.js.map +1 -0
- package/lib/screenplay/models/Cookie.d.ts +104 -64
- package/lib/screenplay/models/Cookie.d.ts.map +1 -0
- package/lib/screenplay/models/Cookie.js +110 -59
- package/lib/screenplay/models/Cookie.js.map +1 -1
- package/lib/screenplay/models/CookieData.d.ts +20 -58
- package/lib/screenplay/models/CookieData.d.ts.map +1 -0
- package/lib/{input → screenplay/models}/Key.d.ts +13 -9
- package/lib/screenplay/models/Key.d.ts.map +1 -0
- package/lib/{input → screenplay/models}/Key.js +16 -13
- package/lib/screenplay/models/Key.js.map +1 -0
- package/lib/screenplay/models/Locator.d.ts +29 -8
- package/lib/screenplay/models/Locator.d.ts.map +1 -0
- package/lib/screenplay/models/Locator.js +53 -7
- package/lib/screenplay/models/Locator.js.map +1 -1
- package/lib/screenplay/models/Page.d.ts +398 -36
- package/lib/screenplay/models/Page.d.ts.map +1 -0
- package/lib/screenplay/models/Page.js +209 -4
- package/lib/screenplay/models/Page.js.map +1 -1
- package/lib/screenplay/models/PageElement.d.ts +77 -5
- package/lib/screenplay/models/PageElement.d.ts.map +1 -0
- package/lib/screenplay/models/PageElement.js +29 -7
- package/lib/screenplay/models/PageElement.js.map +1 -1
- package/lib/screenplay/models/PageElements.d.ts +16 -3
- package/lib/screenplay/models/PageElements.d.ts.map +1 -0
- package/lib/screenplay/models/PageElements.js +21 -8
- package/lib/screenplay/models/PageElements.js.map +1 -1
- package/lib/screenplay/models/RootLocator.d.ts +25 -0
- package/lib/screenplay/models/RootLocator.d.ts.map +1 -0
- package/lib/screenplay/models/RootLocator.js +52 -0
- package/lib/screenplay/models/RootLocator.js.map +1 -0
- package/lib/screenplay/models/SelectOption.d.ts +25 -0
- package/lib/screenplay/models/SelectOption.d.ts.map +1 -0
- package/lib/screenplay/models/SelectOption.js +37 -0
- package/lib/screenplay/models/SelectOption.js.map +1 -0
- package/lib/screenplay/models/Switchable.d.ts +23 -0
- package/lib/screenplay/models/Switchable.d.ts.map +1 -0
- package/lib/screenplay/{interactions/WaitBuilder.js → models/Switchable.js} +1 -1
- package/lib/screenplay/models/Switchable.js.map +1 -0
- package/lib/screenplay/models/SwitchableOrigin.d.ts +18 -0
- package/lib/screenplay/models/SwitchableOrigin.d.ts.map +1 -0
- package/lib/screenplay/{interactions/EnterBuilder.js → models/SwitchableOrigin.js} +1 -1
- package/lib/screenplay/models/SwitchableOrigin.js.map +1 -0
- package/lib/screenplay/models/dialogs/AbsentModalDialog.d.ts +15 -0
- package/lib/screenplay/models/dialogs/AbsentModalDialog.d.ts.map +1 -0
- package/lib/screenplay/models/dialogs/AbsentModalDialog.js +24 -0
- package/lib/screenplay/models/dialogs/AbsentModalDialog.js.map +1 -0
- package/lib/screenplay/models/dialogs/AcceptedModalDialog.d.ts +17 -0
- package/lib/screenplay/models/dialogs/AcceptedModalDialog.d.ts.map +1 -0
- package/lib/screenplay/models/dialogs/AcceptedModalDialog.js +29 -0
- package/lib/screenplay/models/dialogs/AcceptedModalDialog.js.map +1 -0
- package/lib/screenplay/models/dialogs/DismissedModalDialog.d.ts +17 -0
- package/lib/screenplay/models/dialogs/DismissedModalDialog.d.ts.map +1 -0
- package/lib/screenplay/models/dialogs/DismissedModalDialog.js +29 -0
- package/lib/screenplay/models/dialogs/DismissedModalDialog.js.map +1 -0
- package/lib/screenplay/models/dialogs/ModalDialog.d.ts +168 -0
- package/lib/screenplay/models/dialogs/ModalDialog.d.ts.map +1 -0
- package/lib/screenplay/models/dialogs/ModalDialog.js +174 -0
- package/lib/screenplay/models/dialogs/ModalDialog.js.map +1 -0
- package/lib/screenplay/models/dialogs/ModalDialogHandler.d.ts +38 -0
- package/lib/screenplay/models/dialogs/ModalDialogHandler.d.ts.map +1 -0
- package/lib/screenplay/models/dialogs/ModalDialogHandler.js +30 -0
- package/lib/screenplay/models/dialogs/ModalDialogHandler.js.map +1 -0
- package/lib/screenplay/models/dialogs/index.d.ts +6 -0
- package/lib/screenplay/models/dialogs/index.d.ts.map +1 -0
- package/lib/screenplay/models/dialogs/index.js +22 -0
- package/lib/screenplay/models/dialogs/index.js.map +1 -0
- package/lib/screenplay/models/index.d.ts +9 -1
- package/lib/screenplay/models/index.d.ts.map +1 -0
- package/lib/screenplay/models/index.js +13 -2
- package/lib/screenplay/models/index.js.map +1 -1
- package/lib/screenplay/models/selectors/By.d.ts +38 -0
- package/lib/screenplay/models/selectors/By.d.ts.map +1 -0
- package/lib/screenplay/models/selectors/By.js +43 -0
- package/lib/screenplay/models/selectors/By.js.map +1 -1
- package/lib/screenplay/models/selectors/ByCss.d.ts +8 -0
- package/lib/screenplay/models/selectors/ByCss.d.ts.map +1 -0
- package/lib/screenplay/models/selectors/ByCss.js +7 -0
- package/lib/screenplay/models/selectors/ByCss.js.map +1 -1
- package/lib/screenplay/models/selectors/ByCssContainingText.d.ts +9 -0
- package/lib/screenplay/models/selectors/ByCssContainingText.d.ts.map +1 -0
- package/lib/screenplay/models/selectors/ByCssContainingText.js +8 -0
- package/lib/screenplay/models/selectors/ByCssContainingText.js.map +1 -1
- package/lib/screenplay/models/selectors/ByDeepCss.d.ts +14 -0
- package/lib/screenplay/models/selectors/ByDeepCss.d.ts.map +1 -0
- package/lib/screenplay/models/selectors/ByDeepCss.js +20 -0
- package/lib/screenplay/models/selectors/ByDeepCss.js.map +1 -0
- package/lib/screenplay/models/selectors/ById.d.ts +8 -0
- package/lib/screenplay/models/selectors/ById.d.ts.map +1 -0
- package/lib/screenplay/models/selectors/ById.js +7 -0
- package/lib/screenplay/models/selectors/ById.js.map +1 -1
- package/lib/screenplay/models/selectors/ByTagName.d.ts +8 -0
- package/lib/screenplay/models/selectors/ByTagName.d.ts.map +1 -0
- package/lib/screenplay/models/selectors/ByTagName.js +7 -0
- package/lib/screenplay/models/selectors/ByTagName.js.map +1 -1
- package/lib/screenplay/models/selectors/ByXPath.d.ts +8 -0
- package/lib/screenplay/models/selectors/ByXPath.d.ts.map +1 -0
- package/lib/screenplay/models/selectors/ByXPath.js +7 -0
- package/lib/screenplay/models/selectors/ByXPath.js.map +1 -1
- package/lib/screenplay/models/selectors/Selector.d.ts +6 -0
- package/lib/screenplay/models/selectors/Selector.d.ts.map +1 -0
- package/lib/screenplay/models/selectors/Selector.js +6 -1
- package/lib/screenplay/models/selectors/Selector.js.map +1 -1
- package/lib/screenplay/models/selectors/index.d.ts +2 -0
- package/lib/screenplay/models/selectors/index.d.ts.map +1 -0
- package/lib/screenplay/models/selectors/index.js +6 -1
- package/lib/screenplay/models/selectors/index.js.map +1 -1
- package/lib/screenplay/questions/Attribute.d.ts +115 -67
- package/lib/screenplay/questions/Attribute.d.ts.map +1 -0
- package/lib/screenplay/questions/Attribute.js +128 -74
- package/lib/screenplay/questions/Attribute.js.map +1 -1
- package/lib/screenplay/questions/CssClasses.d.ts +124 -79
- package/lib/screenplay/questions/CssClasses.d.ts.map +1 -0
- package/lib/screenplay/questions/CssClasses.js +132 -83
- package/lib/screenplay/questions/CssClasses.js.map +1 -1
- package/lib/screenplay/questions/LastScriptExecution.d.ts +42 -6
- package/lib/screenplay/questions/LastScriptExecution.d.ts.map +1 -0
- package/lib/screenplay/questions/LastScriptExecution.js +45 -7
- package/lib/screenplay/questions/LastScriptExecution.js.map +1 -1
- package/lib/screenplay/questions/Selected.d.ts +202 -171
- package/lib/screenplay/questions/Selected.d.ts.map +1 -0
- package/lib/screenplay/questions/Selected.js +225 -186
- package/lib/screenplay/questions/Selected.js.map +1 -1
- package/lib/screenplay/questions/Text.d.ts +101 -82
- package/lib/screenplay/questions/Text.d.ts.map +1 -0
- package/lib/screenplay/questions/Text.js +143 -92
- package/lib/screenplay/questions/Text.js.map +1 -1
- package/lib/screenplay/questions/Value.d.ts +77 -44
- package/lib/screenplay/questions/Value.d.ts.map +1 -0
- package/lib/screenplay/questions/Value.js +84 -47
- package/lib/screenplay/questions/Value.js.map +1 -1
- package/lib/screenplay/questions/index.d.ts +1 -0
- package/lib/screenplay/questions/index.d.ts.map +1 -0
- package/lib/screenplay/questions/index.js +5 -1
- package/lib/screenplay/questions/index.js.map +1 -1
- package/lib/scripts/index.d.ts +2 -0
- package/lib/scripts/index.d.ts.map +1 -0
- package/lib/{input → scripts}/index.js +6 -2
- package/lib/scripts/index.js.map +1 -0
- package/lib/scripts/isVisible.d.ts +2 -0
- package/lib/scripts/isVisible.d.ts.map +1 -0
- package/lib/scripts/isVisible.js +96 -0
- package/lib/scripts/isVisible.js.map +1 -0
- package/lib/stage/crew/index.d.ts +1 -0
- package/lib/stage/crew/index.d.ts.map +1 -0
- package/lib/stage/crew/index.js +5 -1
- package/lib/stage/crew/index.js.map +1 -1
- package/lib/stage/crew/photographer/Photographer.d.ts +126 -39
- package/lib/stage/crew/photographer/Photographer.d.ts.map +1 -0
- package/lib/stage/crew/photographer/Photographer.js +161 -42
- package/lib/stage/crew/photographer/Photographer.js.map +1 -1
- package/lib/stage/crew/photographer/index.d.ts +1 -0
- package/lib/stage/crew/photographer/index.d.ts.map +1 -0
- package/lib/stage/crew/photographer/index.js +5 -1
- package/lib/stage/crew/photographer/index.js.map +1 -1
- package/lib/stage/crew/photographer/strategies/PhotoTakingStrategy.d.ts +13 -12
- package/lib/stage/crew/photographer/strategies/PhotoTakingStrategy.d.ts.map +1 -0
- package/lib/stage/crew/photographer/strategies/PhotoTakingStrategy.js +22 -33
- package/lib/stage/crew/photographer/strategies/PhotoTakingStrategy.js.map +1 -1
- package/lib/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.d.ts +8 -8
- package/lib/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.d.ts.map +1 -0
- package/lib/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.js +7 -8
- package/lib/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.js.map +1 -1
- package/lib/stage/crew/photographer/strategies/TakePhotosOfFailures.d.ts +8 -7
- package/lib/stage/crew/photographer/strategies/TakePhotosOfFailures.d.ts.map +1 -0
- package/lib/stage/crew/photographer/strategies/TakePhotosOfFailures.js +7 -7
- package/lib/stage/crew/photographer/strategies/TakePhotosOfInteractions.d.ts +8 -8
- package/lib/stage/crew/photographer/strategies/TakePhotosOfInteractions.d.ts.map +1 -0
- package/lib/stage/crew/photographer/strategies/TakePhotosOfInteractions.js +7 -8
- package/lib/stage/crew/photographer/strategies/TakePhotosOfInteractions.js.map +1 -1
- package/lib/stage/crew/photographer/strategies/index.d.ts +1 -0
- package/lib/stage/crew/photographer/strategies/index.d.ts.map +1 -0
- package/lib/stage/crew/photographer/strategies/index.js +5 -1
- package/lib/stage/crew/photographer/strategies/index.js.map +1 -1
- package/lib/stage/index.d.ts +1 -0
- package/lib/stage/index.d.ts.map +1 -0
- package/lib/stage/index.js +5 -1
- package/lib/stage/index.js.map +1 -1
- package/package.json +20 -43
- package/src/errors/BrowserWindowClosedError.ts +17 -0
- package/src/errors/CookieMissingError.ts +10 -0
- package/src/errors/ModalDialogObstructsScreenshotError.ts +17 -0
- package/src/errors/index.ts +2 -0
- package/src/expectations/index.ts +0 -1
- package/src/expectations/isActive.ts +23 -12
- package/src/expectations/isClickable.ts +22 -21
- package/src/expectations/isEnabled.ts +23 -9
- package/src/expectations/isSelected.ts +20 -10
- package/src/expectations/isVisible.ts +23 -9
- package/src/index.ts +0 -1
- package/src/screenplay/abilities/BrowseTheWeb.ts +95 -87
- package/src/screenplay/abilities/index.ts +0 -1
- package/src/screenplay/interactions/Clear.ts +75 -63
- package/src/screenplay/interactions/Click.ts +43 -54
- package/src/screenplay/interactions/DoubleClick.ts +66 -71
- package/src/screenplay/interactions/Enter.ts +41 -53
- package/src/screenplay/interactions/ExecuteScript.ts +207 -220
- package/src/screenplay/interactions/Hover.ts +42 -54
- package/src/screenplay/interactions/Navigate.ts +129 -156
- package/src/screenplay/interactions/PageElementInteraction.ts +14 -34
- package/src/screenplay/interactions/Press.ts +78 -69
- package/src/screenplay/interactions/RightClick.ts +61 -69
- package/src/screenplay/interactions/Scroll.ts +48 -71
- package/src/screenplay/interactions/Select.ts +229 -269
- package/src/screenplay/interactions/Switch.ts +123 -179
- package/src/screenplay/interactions/TakeScreenshot.ts +31 -57
- package/src/screenplay/interactions/index.ts +1 -3
- package/src/screenplay/models/BrowserCapabilities.ts +26 -0
- package/src/screenplay/models/BrowsingSession.ts +115 -0
- package/src/screenplay/models/Cookie.ts +115 -73
- package/src/screenplay/models/CookieData.ts +20 -58
- package/src/{input → screenplay/models}/Key.ts +12 -9
- package/src/screenplay/models/Locator.ts +43 -9
- package/src/screenplay/models/Page.ts +438 -37
- package/src/screenplay/models/PageElement.ts +92 -12
- package/src/screenplay/models/PageElements.ts +23 -9
- package/src/screenplay/models/RootLocator.ts +30 -0
- package/src/screenplay/models/SelectOption.ts +38 -0
- package/src/screenplay/models/Switchable.ts +24 -0
- package/src/screenplay/models/SwitchableOrigin.ts +18 -0
- package/src/screenplay/models/dialogs/AbsentModalDialog.ts +22 -0
- package/src/screenplay/models/dialogs/AcceptedModalDialog.ts +27 -0
- package/src/screenplay/models/dialogs/DismissedModalDialog.ts +27 -0
- package/src/screenplay/models/dialogs/ModalDialog.ts +200 -0
- package/src/screenplay/models/dialogs/ModalDialogHandler.ts +50 -0
- package/src/screenplay/models/dialogs/index.ts +5 -0
- package/src/screenplay/models/index.ts +8 -1
- package/src/screenplay/models/selectors/By.ts +45 -0
- package/src/screenplay/models/selectors/ByCss.ts +7 -0
- package/src/screenplay/models/selectors/ByCssContainingText.ts +8 -0
- package/src/screenplay/models/selectors/ByDeepCss.ts +15 -0
- package/src/screenplay/models/selectors/ById.ts +7 -0
- package/src/screenplay/models/selectors/ByTagName.ts +7 -0
- package/src/screenplay/models/selectors/ByXPath.ts +7 -0
- package/src/screenplay/models/selectors/Selector.ts +6 -1
- package/src/screenplay/models/selectors/index.ts +1 -0
- package/src/screenplay/questions/Attribute.ts +137 -76
- package/src/screenplay/questions/CssClasses.ts +135 -83
- package/src/screenplay/questions/LastScriptExecution.ts +45 -8
- package/src/screenplay/questions/Selected.ts +237 -191
- package/src/screenplay/questions/Text.ts +161 -96
- package/src/screenplay/questions/Value.ts +88 -48
- package/src/scripts/index.ts +1 -0
- package/src/scripts/isVisible.ts +113 -0
- package/src/stage/crew/photographer/Photographer.ts +142 -41
- package/src/stage/crew/photographer/strategies/PhotoTakingStrategy.ts +27 -42
- package/src/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.ts +7 -8
- package/src/stage/crew/photographer/strategies/TakePhotosOfFailures.ts +7 -7
- package/src/stage/crew/photographer/strategies/TakePhotosOfInteractions.ts +7 -8
- package/tsconfig.build.json +14 -0
- package/lib/expectations/ElementExpectation.d.ts +0 -83
- package/lib/expectations/ElementExpectation.js +0 -102
- package/lib/expectations/ElementExpectation.js.map +0 -1
- package/lib/input/Key.js.map +0 -1
- package/lib/input/index.d.ts +0 -1
- package/lib/input/index.js.map +0 -1
- package/lib/screenplay/abilities/BrowserCapabilities.d.ts +0 -5
- package/lib/screenplay/abilities/BrowserCapabilities.js.map +0 -1
- package/lib/screenplay/interactions/EnterBuilder.d.ts +0 -25
- package/lib/screenplay/interactions/EnterBuilder.js.map +0 -1
- package/lib/screenplay/interactions/PressBuilder.d.ts +0 -26
- package/lib/screenplay/interactions/PressBuilder.js +0 -3
- package/lib/screenplay/interactions/PressBuilder.js.map +0 -1
- package/lib/screenplay/interactions/SelectBuilder.d.ts +0 -33
- package/lib/screenplay/interactions/SelectBuilder.js +0 -3
- package/lib/screenplay/interactions/SelectBuilder.js.map +0 -1
- package/lib/screenplay/interactions/Wait.d.ts +0 -143
- package/lib/screenplay/interactions/Wait.js +0 -238
- package/lib/screenplay/interactions/Wait.js.map +0 -1
- package/lib/screenplay/interactions/WaitBuilder.d.ts +0 -32
- package/lib/screenplay/interactions/WaitBuilder.js.map +0 -1
- package/lib/screenplay/models/ModalDialog.d.ts +0 -9
- package/lib/screenplay/models/ModalDialog.js +0 -14
- package/lib/screenplay/models/ModalDialog.js.map +0 -1
- package/lib/screenplay/questions/ElementQuestion.d.ts +0 -33
- package/lib/screenplay/questions/ElementQuestion.js +0 -53
- package/lib/screenplay/questions/ElementQuestion.js.map +0 -1
- package/src/expectations/ElementExpectation.ts +0 -108
- package/src/input/index.ts +0 -1
- package/src/screenplay/abilities/BrowserCapabilities.ts +0 -5
- package/src/screenplay/interactions/EnterBuilder.ts +0 -28
- package/src/screenplay/interactions/PressBuilder.ts +0 -29
- package/src/screenplay/interactions/SelectBuilder.ts +0 -36
- package/src/screenplay/interactions/Wait.ts +0 -260
- package/src/screenplay/interactions/WaitBuilder.ts +0 -34
- package/src/screenplay/models/ModalDialog.ts +0 -19
- package/src/screenplay/questions/ElementQuestion.ts +0 -58
- package/tsconfig.eslint.json +0 -10
- /package/lib/screenplay/{abilities → models}/BrowserCapabilities.js +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TinyType } from 'tiny-types';
|
|
2
|
+
/**
|
|
3
|
+
* Describes the [`<option />`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option)
|
|
4
|
+
* elements to select.
|
|
5
|
+
*
|
|
6
|
+
* ## Learn more
|
|
7
|
+
*
|
|
8
|
+
* - {@apilink Select}
|
|
9
|
+
* - {@apilink Selected}
|
|
10
|
+
* - {@apilink PageElement.selectOptions}
|
|
11
|
+
* - {@apilink PageElement.selectedOptions}
|
|
12
|
+
*
|
|
13
|
+
* @group Models
|
|
14
|
+
*/
|
|
15
|
+
export declare class SelectOption extends TinyType {
|
|
16
|
+
readonly label?: string;
|
|
17
|
+
readonly value?: string;
|
|
18
|
+
readonly selected?: boolean;
|
|
19
|
+
readonly disabled?: boolean;
|
|
20
|
+
static withLabel(label: string): SelectOption;
|
|
21
|
+
static withValue(value: string): SelectOption;
|
|
22
|
+
constructor(label?: string, value?: string, selected?: boolean, disabled?: boolean);
|
|
23
|
+
toString(): string;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=SelectOption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectOption.d.ts","sourceRoot":"","sources":["../../../src/screenplay/models/SelectOption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;;;;;;;;;;GAYG;AACH,qBAAa,YAAa,SAAQ,QAAQ;aAWlB,KAAK,CAAC,EAAE,MAAM;aACd,KAAK,CAAC,EAAE,MAAM;aACd,QAAQ,CAAC,EAAE,OAAO;aAClB,QAAQ,CAAC,EAAE,OAAO;IAZtC,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY;IAI7C,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY;gBAKzB,KAAK,CAAC,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,OAAO,EAClB,QAAQ,CAAC,EAAE,OAAO;IAKtC,QAAQ,IAAI,MAAM;CAGrB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SelectOption = void 0;
|
|
4
|
+
const tiny_types_1 = require("tiny-types");
|
|
5
|
+
/**
|
|
6
|
+
* Describes the [`<option />`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option)
|
|
7
|
+
* elements to select.
|
|
8
|
+
*
|
|
9
|
+
* ## Learn more
|
|
10
|
+
*
|
|
11
|
+
* - {@apilink Select}
|
|
12
|
+
* - {@apilink Selected}
|
|
13
|
+
* - {@apilink PageElement.selectOptions}
|
|
14
|
+
* - {@apilink PageElement.selectedOptions}
|
|
15
|
+
*
|
|
16
|
+
* @group Models
|
|
17
|
+
*/
|
|
18
|
+
class SelectOption extends tiny_types_1.TinyType {
|
|
19
|
+
static withLabel(label) {
|
|
20
|
+
return new SelectOption(label);
|
|
21
|
+
}
|
|
22
|
+
static withValue(value) {
|
|
23
|
+
return new SelectOption(undefined, value);
|
|
24
|
+
}
|
|
25
|
+
constructor(label, value, selected, disabled) {
|
|
26
|
+
super();
|
|
27
|
+
this.label = label;
|
|
28
|
+
this.value = value;
|
|
29
|
+
this.selected = selected;
|
|
30
|
+
this.disabled = disabled;
|
|
31
|
+
}
|
|
32
|
+
toString() {
|
|
33
|
+
return `<option /> element with label: ${this.label}, value: ${this.value}`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.SelectOption = SelectOption;
|
|
37
|
+
//# sourceMappingURL=SelectOption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectOption.js","sourceRoot":"","sources":["../../../src/screenplay/models/SelectOption.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AAEtC;;;;;;;;;;;;GAYG;AACH,MAAa,YAAa,SAAQ,qBAAQ;IAEtC,MAAM,CAAC,SAAS,CAAC,KAAa;QAC1B,OAAO,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,KAAa;QAC1B,OAAO,IAAI,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC9C,CAAC;IAED,YACoB,KAAc,EACd,KAAc,EACd,QAAkB,EAClB,QAAkB;QAElC,KAAK,EAAE,CAAC;QALQ,UAAK,GAAL,KAAK,CAAS;QACd,UAAK,GAAL,KAAK,CAAS;QACd,aAAQ,GAAR,QAAQ,CAAU;QAClB,aAAQ,GAAR,QAAQ,CAAU;IAGtC,CAAC;IAED,QAAQ;QACJ,OAAO,kCAAmC,IAAI,CAAC,KAAM,YAAa,IAAI,CAAC,KAAM,EAAE,CAAC;IACpF,CAAC;CACJ;AAtBD,oCAsBC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SwitchableOrigin } from './SwitchableOrigin';
|
|
2
|
+
/**
|
|
3
|
+
* Describes a Serenity/JS model object that can be switched _to_ and switched back _from_
|
|
4
|
+
* using the {@apilink Task|task} to {@apilink Switch}.
|
|
5
|
+
*
|
|
6
|
+
* Examples of switchable models include a {@apilink Page} and {@apilink PageElement}.
|
|
7
|
+
*
|
|
8
|
+
* ## Learn more
|
|
9
|
+
* - {@apilink Page}
|
|
10
|
+
* - {@apilink PageElement}
|
|
11
|
+
* - {@apilink Switch}
|
|
12
|
+
*
|
|
13
|
+
* @group Models
|
|
14
|
+
*/
|
|
15
|
+
export interface Switchable {
|
|
16
|
+
/**
|
|
17
|
+
* Switches the context to the object implementing this interface
|
|
18
|
+
* and returns {@apilink SwitchableOrigin} that allows for the context to be switched
|
|
19
|
+
* back when needed.
|
|
20
|
+
*/
|
|
21
|
+
switchTo(): Promise<SwitchableOrigin>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=Switchable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switchable.d.ts","sourceRoot":"","sources":["../../../src/screenplay/models/Switchable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,UAAU;IAEvB;;;;OAIG;IACH,QAAQ,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switchable.js","sourceRoot":"","sources":["../../../src/screenplay/models/Switchable.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enables the {@apilink Task} to {@apilink Switch} to perform a sequence of activities
|
|
3
|
+
* and switch back to the original context afterwards.
|
|
4
|
+
*
|
|
5
|
+
* ## Learn more
|
|
6
|
+
*
|
|
7
|
+
* - {@apilink Switch}
|
|
8
|
+
* - {@apilink Switchable}
|
|
9
|
+
*
|
|
10
|
+
* @group Models
|
|
11
|
+
*/
|
|
12
|
+
export interface SwitchableOrigin {
|
|
13
|
+
/**
|
|
14
|
+
* Switches the context back to the original {@apilink Switchable}
|
|
15
|
+
*/
|
|
16
|
+
switchBack(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=SwitchableOrigin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwitchableOrigin.d.ts","sourceRoot":"","sources":["../../../src/screenplay/models/SwitchableOrigin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,WAAW,gBAAgB;IAE7B;;OAEG;IACH,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwitchableOrigin.js","sourceRoot":"","sources":["../../../src/screenplay/models/SwitchableOrigin.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ModalDialog } from './ModalDialog';
|
|
2
|
+
/**
|
|
3
|
+
* `AbsentModalDialog` is a [null object](https://en.wikipedia.org/wiki/Null_object_pattern)
|
|
4
|
+
* representing a {@apilink ModalDialog} that hasn't appeared yet.
|
|
5
|
+
*
|
|
6
|
+
* ## Learn more
|
|
7
|
+
* - {@apilink ModalDialog}
|
|
8
|
+
*
|
|
9
|
+
* @group Models
|
|
10
|
+
*/
|
|
11
|
+
export declare class AbsentModalDialog extends ModalDialog {
|
|
12
|
+
isPresent(): Promise<boolean>;
|
|
13
|
+
message(): Promise<string>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=AbsentModalDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbsentModalDialog.d.ts","sourceRoot":"","sources":["../../../../src/screenplay/models/dialogs/AbsentModalDialog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;;GAQG;AACH,qBAAa,iBAAkB,SAAQ,WAAW;IACxC,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;IAI7B,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;CAGnC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AbsentModalDialog = void 0;
|
|
4
|
+
const core_1 = require("@serenity-js/core");
|
|
5
|
+
const ModalDialog_1 = require("./ModalDialog");
|
|
6
|
+
/**
|
|
7
|
+
* `AbsentModalDialog` is a [null object](https://en.wikipedia.org/wiki/Null_object_pattern)
|
|
8
|
+
* representing a {@apilink ModalDialog} that hasn't appeared yet.
|
|
9
|
+
*
|
|
10
|
+
* ## Learn more
|
|
11
|
+
* - {@apilink ModalDialog}
|
|
12
|
+
*
|
|
13
|
+
* @group Models
|
|
14
|
+
*/
|
|
15
|
+
class AbsentModalDialog extends ModalDialog_1.ModalDialog {
|
|
16
|
+
async isPresent() {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
async message() {
|
|
20
|
+
throw new core_1.LogicError(`Can't retrieve the message of a modal dialog that hasn't been handled yet`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.AbsentModalDialog = AbsentModalDialog;
|
|
24
|
+
//# sourceMappingURL=AbsentModalDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbsentModalDialog.js","sourceRoot":"","sources":["../../../../src/screenplay/models/dialogs/AbsentModalDialog.ts"],"names":[],"mappings":";;;AAAA,4CAA+C;AAE/C,+CAA4C;AAE5C;;;;;;;;GAQG;AACH,MAAa,iBAAkB,SAAQ,yBAAW;IAC9C,KAAK,CAAC,SAAS;QACX,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,OAAO;QACT,MAAM,IAAI,iBAAU,CAAC,2EAA2E,CAAC,CAAC;IACtG,CAAC;CACJ;AARD,8CAQC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ModalDialog } from './ModalDialog';
|
|
2
|
+
/**
|
|
3
|
+
* `AcceptedModalDialog` represents a {@apilink ModalDialog} that has been accepted
|
|
4
|
+
* via {@apilink ModalDialog.acceptNext}.
|
|
5
|
+
*
|
|
6
|
+
* ## Learn more
|
|
7
|
+
* - {@apilink ModalDialog}
|
|
8
|
+
*
|
|
9
|
+
* @group Models
|
|
10
|
+
*/
|
|
11
|
+
export declare class AcceptedModalDialog extends ModalDialog {
|
|
12
|
+
private readonly dialogMessage;
|
|
13
|
+
constructor(dialogMessage: string);
|
|
14
|
+
isPresent(): Promise<boolean>;
|
|
15
|
+
message(): Promise<string>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=AcceptedModalDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcceptedModalDialog.d.ts","sourceRoot":"","sources":["../../../../src/screenplay/models/dialogs/AcceptedModalDialog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;;GAQG;AACH,qBAAa,mBAAoB,SAAQ,WAAW;IACpC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,MAAM;IAK5C,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;IAI7B,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;CAGnC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AcceptedModalDialog = void 0;
|
|
4
|
+
const tiny_types_1 = require("tiny-types");
|
|
5
|
+
const ModalDialog_1 = require("./ModalDialog");
|
|
6
|
+
/**
|
|
7
|
+
* `AcceptedModalDialog` represents a {@apilink ModalDialog} that has been accepted
|
|
8
|
+
* via {@apilink ModalDialog.acceptNext}.
|
|
9
|
+
*
|
|
10
|
+
* ## Learn more
|
|
11
|
+
* - {@apilink ModalDialog}
|
|
12
|
+
*
|
|
13
|
+
* @group Models
|
|
14
|
+
*/
|
|
15
|
+
class AcceptedModalDialog extends ModalDialog_1.ModalDialog {
|
|
16
|
+
constructor(dialogMessage) {
|
|
17
|
+
super();
|
|
18
|
+
this.dialogMessage = dialogMessage;
|
|
19
|
+
(0, tiny_types_1.ensure)('dialogMessage', dialogMessage, (0, tiny_types_1.isDefined)());
|
|
20
|
+
}
|
|
21
|
+
async isPresent() {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
async message() {
|
|
25
|
+
return this.dialogMessage;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.AcceptedModalDialog = AcceptedModalDialog;
|
|
29
|
+
//# sourceMappingURL=AcceptedModalDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcceptedModalDialog.js","sourceRoot":"","sources":["../../../../src/screenplay/models/dialogs/AcceptedModalDialog.ts"],"names":[],"mappings":";;;AAAA,2CAA+C;AAE/C,+CAA4C;AAE5C;;;;;;;;GAQG;AACH,MAAa,mBAAoB,SAAQ,yBAAW;IAChD,YAA6B,aAAqB;QAC9C,KAAK,EAAE,CAAC;QADiB,kBAAa,GAAb,aAAa,CAAQ;QAE9C,IAAA,mBAAM,EAAC,eAAe,EAAE,aAAa,EAAE,IAAA,sBAAS,GAAE,CAAC,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,SAAS;QACX,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,OAAO;QACT,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;CACJ;AAbD,kDAaC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ModalDialog } from './ModalDialog';
|
|
2
|
+
/**
|
|
3
|
+
* `DismissedModalDialog` represents a {@apilink ModalDialog} that has been dismissed
|
|
4
|
+
* via {@apilink ModalDialog.dismissNext}.
|
|
5
|
+
*
|
|
6
|
+
* ## Learn more
|
|
7
|
+
* - {@apilink ModalDialog}
|
|
8
|
+
*
|
|
9
|
+
* @group Models
|
|
10
|
+
*/
|
|
11
|
+
export declare class DismissedModalDialog extends ModalDialog {
|
|
12
|
+
private readonly dialogMessage;
|
|
13
|
+
constructor(dialogMessage: string);
|
|
14
|
+
isPresent(): Promise<boolean>;
|
|
15
|
+
message(): Promise<string>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=DismissedModalDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DismissedModalDialog.d.ts","sourceRoot":"","sources":["../../../../src/screenplay/models/dialogs/DismissedModalDialog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;;GAQG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IACrC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,MAAM;IAK5C,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;IAI7B,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;CAGnC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DismissedModalDialog = void 0;
|
|
4
|
+
const tiny_types_1 = require("tiny-types");
|
|
5
|
+
const ModalDialog_1 = require("./ModalDialog");
|
|
6
|
+
/**
|
|
7
|
+
* `DismissedModalDialog` represents a {@apilink ModalDialog} that has been dismissed
|
|
8
|
+
* via {@apilink ModalDialog.dismissNext}.
|
|
9
|
+
*
|
|
10
|
+
* ## Learn more
|
|
11
|
+
* - {@apilink ModalDialog}
|
|
12
|
+
*
|
|
13
|
+
* @group Models
|
|
14
|
+
*/
|
|
15
|
+
class DismissedModalDialog extends ModalDialog_1.ModalDialog {
|
|
16
|
+
constructor(dialogMessage) {
|
|
17
|
+
super();
|
|
18
|
+
this.dialogMessage = dialogMessage;
|
|
19
|
+
(0, tiny_types_1.ensure)('dialogMessage', dialogMessage, (0, tiny_types_1.isDefined)());
|
|
20
|
+
}
|
|
21
|
+
async isPresent() {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
async message() {
|
|
25
|
+
return this.dialogMessage;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.DismissedModalDialog = DismissedModalDialog;
|
|
29
|
+
//# sourceMappingURL=DismissedModalDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DismissedModalDialog.js","sourceRoot":"","sources":["../../../../src/screenplay/models/dialogs/DismissedModalDialog.ts"],"names":[],"mappings":";;;AAAA,2CAA+C;AAE/C,+CAA4C;AAE5C;;;;;;;;GAQG;AACH,MAAa,oBAAqB,SAAQ,yBAAW;IACjD,YAA6B,aAAqB;QAC9C,KAAK,EAAE,CAAC;QADiB,kBAAa,GAAb,aAAa,CAAQ;QAE9C,IAAA,mBAAM,EAAC,eAAe,EAAE,aAAa,EAAE,IAAA,sBAAS,GAAE,CAAC,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,SAAS;QACX,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,OAAO;QACT,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;CACJ;AAbD,oDAaC"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { Answerable, Interaction, Optional, Question, QuestionAdapter } from '@serenity-js/core';
|
|
2
|
+
/**
|
|
3
|
+
* Manages interactions with JavaScript modal dialog windows,
|
|
4
|
+
* triggered by [window.alert](https://developer.mozilla.org/en-US/docs/Web/API/Window/alert),
|
|
5
|
+
* [window.confirm](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm),
|
|
6
|
+
* or [`window.prompt`](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt),
|
|
7
|
+
* and stores their `message` so that it can be asserted on once the dialog is handled.
|
|
8
|
+
*
|
|
9
|
+
* Note that in order to make handling modal windows
|
|
10
|
+
* consistent across the various Web integration tools (such as Playwright, Puppeteer,
|
|
11
|
+
* WebdriverIO or Selenium), Serenity/JS works as follows:
|
|
12
|
+
* - Serenity/JS dismisses any modal dialogs by default and stores their message so that it can be asserted on.
|
|
13
|
+
* - This behaviour can be changed by invoking {@apilink ModalDialog.acceptNext}, {@apilink ModalDialog.acceptNextWithValue]], or [[ModalDialog.dismissNext} before the dialog is triggered, as per the below examples.
|
|
14
|
+
* - Serenity/JS also allows you to `Wait.until(ModalDialog, isPresent())` so that you can synchronise your tests
|
|
15
|
+
* with modal dialogs that appear after a delay.
|
|
16
|
+
*
|
|
17
|
+
* ## Example HTML widget
|
|
18
|
+
*
|
|
19
|
+
* In the below example widget, clicking on the button results in a [confirmation dialog](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm)
|
|
20
|
+
* appearing.
|
|
21
|
+
*
|
|
22
|
+
* ```html
|
|
23
|
+
* <button id="trigger" onclick="trigger()">Trigger Alert</button>
|
|
24
|
+
* <p id="result"></p>
|
|
25
|
+
*
|
|
26
|
+
* <script>
|
|
27
|
+
* function trigger() {
|
|
28
|
+
* document.getElementById("result").innerHTML = (
|
|
29
|
+
* function () {
|
|
30
|
+
* return confirm('Continue?')
|
|
31
|
+
* ? 'accepted'
|
|
32
|
+
* : 'dismissed';
|
|
33
|
+
* }
|
|
34
|
+
* )();
|
|
35
|
+
* }
|
|
36
|
+
* </script>
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ## Modal dialog gets dismissed by default
|
|
40
|
+
*
|
|
41
|
+
* ```ts
|
|
42
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
43
|
+
* import { By, Click, Text, PageElement, ModalDialog } from '@serenity-js/web'
|
|
44
|
+
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
45
|
+
*
|
|
46
|
+
* const Example = {
|
|
47
|
+
* trigger: () =>
|
|
48
|
+
* PageElement.located(By.id('trigger')).describedAs('the modal dialog trigger'),
|
|
49
|
+
*
|
|
50
|
+
* result: () =>
|
|
51
|
+
* PageElement.located(By.id('result')).describedAs('result'),
|
|
52
|
+
* }
|
|
53
|
+
*
|
|
54
|
+
* await actorCalled('Nick').attemptsTo(
|
|
55
|
+
* Click.on(Example.trigger()),
|
|
56
|
+
*
|
|
57
|
+
* Ensure.that(ModalDialog.lastDialogState(), equals('dismissed')),
|
|
58
|
+
*
|
|
59
|
+
* Ensure.that(Text.of(Example.result()), equals('dismissed')),
|
|
60
|
+
* )
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* ## Changing modal dialog handler
|
|
64
|
+
*
|
|
65
|
+
* ```ts
|
|
66
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
67
|
+
* import { By, Click, Text, PageElement, ModalDialog } from '@serenity-js/web'
|
|
68
|
+
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
69
|
+
*
|
|
70
|
+
* const Example = {
|
|
71
|
+
* trigger: () =>
|
|
72
|
+
* PageElement.located(By.id('trigger')).describedAs('the modal dialog trigger'),
|
|
73
|
+
*
|
|
74
|
+
* result: () =>
|
|
75
|
+
* PageElement.located(By.id('result')).describedAs('result'),
|
|
76
|
+
* }
|
|
77
|
+
*
|
|
78
|
+
* await actorCalled('Nick').attemptsTo(
|
|
79
|
+
* ModalDialog.acceptNext(),
|
|
80
|
+
* // or: ModalDialog.acceptNextWithValue('some value'),
|
|
81
|
+
* // or: ModalDialog.dismissNext(),
|
|
82
|
+
*
|
|
83
|
+
* Click.on(Example.trigger),
|
|
84
|
+
*
|
|
85
|
+
* Ensure.that(ModalDialog.lastDialogState(), equals('accepted')),
|
|
86
|
+
*
|
|
87
|
+
* Ensure.that(Text.of(Example.result), equals('accepted')),
|
|
88
|
+
* )
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* ## Learn more
|
|
92
|
+
* - {@apilink Optional}
|
|
93
|
+
*
|
|
94
|
+
* @group Models
|
|
95
|
+
*/
|
|
96
|
+
export declare abstract class ModalDialog implements Optional {
|
|
97
|
+
/**
|
|
98
|
+
* Returns a promise that resolves to `true`
|
|
99
|
+
* when a modal dialog has been handled, so accepted or dismissed.
|
|
100
|
+
* Returns `false` for dialogs that haven't been handled yet.
|
|
101
|
+
*
|
|
102
|
+
* Useful when a JavaScript modal dialog is generated after a delay,
|
|
103
|
+
* e.g. triggered by `setTimeout`.
|
|
104
|
+
*
|
|
105
|
+
* #### Example usage
|
|
106
|
+
*
|
|
107
|
+
* ```ts
|
|
108
|
+
* import { actorCalled, Wait } from '@serenity-js/core'
|
|
109
|
+
* import { Ensure, equals, isPresent } from '@serenity-js/assertions'
|
|
110
|
+
* import { ModalDialog } from '@serenity-js/web'
|
|
111
|
+
*
|
|
112
|
+
* await actorCalled('Nick').attemptsTo(
|
|
113
|
+
* ModalDialog.acceptNext(),
|
|
114
|
+
* Wait.until(ModalDialog, isPresent()),
|
|
115
|
+
* Ensure.that(ModalDialog.lastDialogState(), equals('accepted')),
|
|
116
|
+
* )
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
static isPresent(): Question<Promise<boolean>>;
|
|
120
|
+
/**
|
|
121
|
+
* Produces an {@apilink Interaction|interaction} that invokes {@apilink ModalDialog.acceptNext}.
|
|
122
|
+
*/
|
|
123
|
+
static acceptNext(): Interaction;
|
|
124
|
+
/**
|
|
125
|
+
* Produces an {@apilink Interaction|interaction} that invokes {@apilink ModalDialog.acceptNextWithValue}.
|
|
126
|
+
*
|
|
127
|
+
* @param value
|
|
128
|
+
*/
|
|
129
|
+
static acceptNextWithValue(value: Answerable<string | number>): Interaction;
|
|
130
|
+
/**
|
|
131
|
+
* Produces an {@apilink Interaction|interaction} that invokes {@apilink ModalDialog.dismissNext}.
|
|
132
|
+
*/
|
|
133
|
+
static dismissNext(): Interaction;
|
|
134
|
+
/**
|
|
135
|
+
* {@apilink QuestionAdapter} that resolves to {@apilink ModalDialog.message} for the current {@apilink Page}.
|
|
136
|
+
*/
|
|
137
|
+
static lastDialogMessage(): QuestionAdapter<string>;
|
|
138
|
+
/**
|
|
139
|
+
* {@apilink QuestionAdapter} that resolves to {@apilink ModalDialog.state} for the current {@apilink Page}.
|
|
140
|
+
*/
|
|
141
|
+
static lastDialogState(): QuestionAdapter<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Returns the message of the last modal dialog handled,
|
|
144
|
+
* or rejects the promise with a {@apilink LogicError}
|
|
145
|
+
* when no modal dialogs have been observed yet.
|
|
146
|
+
*
|
|
147
|
+
* @returns
|
|
148
|
+
* Message of the last handled dialog, or a `Promise`
|
|
149
|
+
* rejected with a {@apilink LogicError}
|
|
150
|
+
* when no dialog has been handled yet.
|
|
151
|
+
*/
|
|
152
|
+
abstract message(): Promise<string>;
|
|
153
|
+
/**
|
|
154
|
+
* Returns a promise that resolves to `true`
|
|
155
|
+
* when a modal dialog has been handled, so either accepted or dismissed.
|
|
156
|
+
* Returns `false` for dialogs that haven't been handled yet.
|
|
157
|
+
*
|
|
158
|
+
* Useful when a JavaScript modal dialog is generated after a delay,
|
|
159
|
+
* e.g. triggered by `setTimeout`.
|
|
160
|
+
*/
|
|
161
|
+
abstract isPresent(): Promise<boolean>;
|
|
162
|
+
/**
|
|
163
|
+
* Returns `accepted` or `dismissed` for dialogs that have been handled,
|
|
164
|
+
* or `absent` for those that haven't been handled yet.
|
|
165
|
+
*/
|
|
166
|
+
state(): string;
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=ModalDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalDialog.d.ts","sourceRoot":"","sources":["../../../../src/screenplay/models/dialogs/ModalDialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAK,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6FG;AACH,8BAAsB,WAAY,YAAW,QAAQ;IAEjD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,SAAS,IAAI,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAI9C;;OAEG;IACH,MAAM,CAAC,UAAU,IAAI,WAAW;IAKhC;;;;OAIG;IACH,MAAM,CAAC,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,WAAW;IAK3E;;OAEG;IACH,MAAM,CAAC,WAAW,IAAI,WAAW;IAKjC;;OAEG;IACH,MAAM,CAAC,iBAAiB,IAAI,eAAe,CAAC,MAAM,CAAC;IAKnD;;OAEG;IACH,MAAM,CAAC,eAAe,IAAI,eAAe,CAAC,MAAM,CAAC;IAKjD;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;IAEnC;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;IAEtC;;;OAGG;IACH,KAAK,IAAI,MAAM;CAKlB"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModalDialog = void 0;
|
|
4
|
+
const core_1 = require("@serenity-js/core");
|
|
5
|
+
const Page_1 = require("../Page");
|
|
6
|
+
/**
|
|
7
|
+
* Manages interactions with JavaScript modal dialog windows,
|
|
8
|
+
* triggered by [window.alert](https://developer.mozilla.org/en-US/docs/Web/API/Window/alert),
|
|
9
|
+
* [window.confirm](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm),
|
|
10
|
+
* or [`window.prompt`](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt),
|
|
11
|
+
* and stores their `message` so that it can be asserted on once the dialog is handled.
|
|
12
|
+
*
|
|
13
|
+
* Note that in order to make handling modal windows
|
|
14
|
+
* consistent across the various Web integration tools (such as Playwright, Puppeteer,
|
|
15
|
+
* WebdriverIO or Selenium), Serenity/JS works as follows:
|
|
16
|
+
* - Serenity/JS dismisses any modal dialogs by default and stores their message so that it can be asserted on.
|
|
17
|
+
* - This behaviour can be changed by invoking {@apilink ModalDialog.acceptNext}, {@apilink ModalDialog.acceptNextWithValue]], or [[ModalDialog.dismissNext} before the dialog is triggered, as per the below examples.
|
|
18
|
+
* - Serenity/JS also allows you to `Wait.until(ModalDialog, isPresent())` so that you can synchronise your tests
|
|
19
|
+
* with modal dialogs that appear after a delay.
|
|
20
|
+
*
|
|
21
|
+
* ## Example HTML widget
|
|
22
|
+
*
|
|
23
|
+
* In the below example widget, clicking on the button results in a [confirmation dialog](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm)
|
|
24
|
+
* appearing.
|
|
25
|
+
*
|
|
26
|
+
* ```html
|
|
27
|
+
* <button id="trigger" onclick="trigger()">Trigger Alert</button>
|
|
28
|
+
* <p id="result"></p>
|
|
29
|
+
*
|
|
30
|
+
* <script>
|
|
31
|
+
* function trigger() {
|
|
32
|
+
* document.getElementById("result").innerHTML = (
|
|
33
|
+
* function () {
|
|
34
|
+
* return confirm('Continue?')
|
|
35
|
+
* ? 'accepted'
|
|
36
|
+
* : 'dismissed';
|
|
37
|
+
* }
|
|
38
|
+
* )();
|
|
39
|
+
* }
|
|
40
|
+
* </script>
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* ## Modal dialog gets dismissed by default
|
|
44
|
+
*
|
|
45
|
+
* ```ts
|
|
46
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
47
|
+
* import { By, Click, Text, PageElement, ModalDialog } from '@serenity-js/web'
|
|
48
|
+
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
49
|
+
*
|
|
50
|
+
* const Example = {
|
|
51
|
+
* trigger: () =>
|
|
52
|
+
* PageElement.located(By.id('trigger')).describedAs('the modal dialog trigger'),
|
|
53
|
+
*
|
|
54
|
+
* result: () =>
|
|
55
|
+
* PageElement.located(By.id('result')).describedAs('result'),
|
|
56
|
+
* }
|
|
57
|
+
*
|
|
58
|
+
* await actorCalled('Nick').attemptsTo(
|
|
59
|
+
* Click.on(Example.trigger()),
|
|
60
|
+
*
|
|
61
|
+
* Ensure.that(ModalDialog.lastDialogState(), equals('dismissed')),
|
|
62
|
+
*
|
|
63
|
+
* Ensure.that(Text.of(Example.result()), equals('dismissed')),
|
|
64
|
+
* )
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* ## Changing modal dialog handler
|
|
68
|
+
*
|
|
69
|
+
* ```ts
|
|
70
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
71
|
+
* import { By, Click, Text, PageElement, ModalDialog } from '@serenity-js/web'
|
|
72
|
+
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
73
|
+
*
|
|
74
|
+
* const Example = {
|
|
75
|
+
* trigger: () =>
|
|
76
|
+
* PageElement.located(By.id('trigger')).describedAs('the modal dialog trigger'),
|
|
77
|
+
*
|
|
78
|
+
* result: () =>
|
|
79
|
+
* PageElement.located(By.id('result')).describedAs('result'),
|
|
80
|
+
* }
|
|
81
|
+
*
|
|
82
|
+
* await actorCalled('Nick').attemptsTo(
|
|
83
|
+
* ModalDialog.acceptNext(),
|
|
84
|
+
* // or: ModalDialog.acceptNextWithValue('some value'),
|
|
85
|
+
* // or: ModalDialog.dismissNext(),
|
|
86
|
+
*
|
|
87
|
+
* Click.on(Example.trigger),
|
|
88
|
+
*
|
|
89
|
+
* Ensure.that(ModalDialog.lastDialogState(), equals('accepted')),
|
|
90
|
+
*
|
|
91
|
+
* Ensure.that(Text.of(Example.result), equals('accepted')),
|
|
92
|
+
* )
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* ## Learn more
|
|
96
|
+
* - {@apilink Optional}
|
|
97
|
+
*
|
|
98
|
+
* @group Models
|
|
99
|
+
*/
|
|
100
|
+
class ModalDialog {
|
|
101
|
+
/**
|
|
102
|
+
* Returns a promise that resolves to `true`
|
|
103
|
+
* when a modal dialog has been handled, so accepted or dismissed.
|
|
104
|
+
* Returns `false` for dialogs that haven't been handled yet.
|
|
105
|
+
*
|
|
106
|
+
* Useful when a JavaScript modal dialog is generated after a delay,
|
|
107
|
+
* e.g. triggered by `setTimeout`.
|
|
108
|
+
*
|
|
109
|
+
* #### Example usage
|
|
110
|
+
*
|
|
111
|
+
* ```ts
|
|
112
|
+
* import { actorCalled, Wait } from '@serenity-js/core'
|
|
113
|
+
* import { Ensure, equals, isPresent } from '@serenity-js/assertions'
|
|
114
|
+
* import { ModalDialog } from '@serenity-js/web'
|
|
115
|
+
*
|
|
116
|
+
* await actorCalled('Nick').attemptsTo(
|
|
117
|
+
* ModalDialog.acceptNext(),
|
|
118
|
+
* Wait.until(ModalDialog, isPresent()),
|
|
119
|
+
* Ensure.that(ModalDialog.lastDialogState(), equals('accepted')),
|
|
120
|
+
* )
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
static isPresent() {
|
|
124
|
+
return Page_1.Page.current().modalDialog().last().isPresent();
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Produces an {@apilink Interaction|interaction} that invokes {@apilink ModalDialog.acceptNext}.
|
|
128
|
+
*/
|
|
129
|
+
static acceptNext() {
|
|
130
|
+
return Page_1.Page.current().modalDialog().acceptNext()
|
|
131
|
+
.describedAs('#actor accepts next modal dialog window');
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Produces an {@apilink Interaction|interaction} that invokes {@apilink ModalDialog.acceptNextWithValue}.
|
|
135
|
+
*
|
|
136
|
+
* @param value
|
|
137
|
+
*/
|
|
138
|
+
static acceptNextWithValue(value) {
|
|
139
|
+
return Page_1.Page.current().modalDialog().acceptNextWithValue(value)
|
|
140
|
+
.describedAs((0, core_1.d) `#actor accepts next modal dialog window with value ${value}`);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Produces an {@apilink Interaction|interaction} that invokes {@apilink ModalDialog.dismissNext}.
|
|
144
|
+
*/
|
|
145
|
+
static dismissNext() {
|
|
146
|
+
return Page_1.Page.current().modalDialog().dismissNext()
|
|
147
|
+
.describedAs((0, core_1.d) `#actor dismisses next modal dialog window`);
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* {@apilink QuestionAdapter} that resolves to {@apilink ModalDialog.message} for the current {@apilink Page}.
|
|
151
|
+
*/
|
|
152
|
+
static lastDialogMessage() {
|
|
153
|
+
return Page_1.Page.current().modalDialog().last().message()
|
|
154
|
+
.describedAs(`last dialog message`);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* {@apilink QuestionAdapter} that resolves to {@apilink ModalDialog.state} for the current {@apilink Page}.
|
|
158
|
+
*/
|
|
159
|
+
static lastDialogState() {
|
|
160
|
+
return Page_1.Page.current().modalDialog().last().state()
|
|
161
|
+
.describedAs(`last dialog state`);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Returns `accepted` or `dismissed` for dialogs that have been handled,
|
|
165
|
+
* or `absent` for those that haven't been handled yet.
|
|
166
|
+
*/
|
|
167
|
+
state() {
|
|
168
|
+
return this.constructor.name
|
|
169
|
+
.replace('ModalDialog', '')
|
|
170
|
+
.toLowerCase();
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
exports.ModalDialog = ModalDialog;
|
|
174
|
+
//# sourceMappingURL=ModalDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalDialog.js","sourceRoot":"","sources":["../../../../src/screenplay/models/dialogs/ModalDialog.ts"],"names":[],"mappings":";;;AAAA,4CAAoG;AAEpG,kCAA+B;AAE/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6FG;AACH,MAAsB,WAAW;IAE7B;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,SAAS;QACZ,OAAO,WAAI,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,SAAS,EAAE,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,UAAU;QACb,OAAO,WAAI,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC,UAAU,EAAE;aAC3C,WAAW,CAAC,yCAAyC,CAAC,CAAC;IAChE,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,mBAAmB,CAAC,KAAkC;QACzD,OAAO,WAAI,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC;aACzD,WAAW,CAAC,IAAA,QAAC,EAAA,sDAAuD,KAAM,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,WAAW;QACd,OAAO,WAAI,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE;aAC5C,WAAW,CAAC,IAAA,QAAC,EAAA,2CAA2C,CAAC,CAAC;IACnE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,iBAAiB;QACpB,OAAO,WAAI,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;aAC/C,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAC5C,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,eAAe;QAClB,OAAO,WAAI,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE;aAC7C,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAC1C,CAAC;IAwBD;;;OAGG;IACH,KAAK;QACD,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI;aACvB,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC;aAC1B,WAAW,EAAE,CAAC;IACvB,CAAC;CACJ;AArGD,kCAqGC"}
|