@serenity-js/web 3.4.2 → 3.6.0

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.
Files changed (175) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/lib/expectations/isActive.d.ts +1 -1
  3. package/lib/expectations/isActive.d.ts.map +1 -1
  4. package/lib/expectations/isClickable.d.ts +1 -1
  5. package/lib/expectations/isClickable.d.ts.map +1 -1
  6. package/lib/expectations/isEnabled.d.ts +1 -1
  7. package/lib/expectations/isEnabled.d.ts.map +1 -1
  8. package/lib/expectations/isSelected.d.ts +1 -1
  9. package/lib/expectations/isSelected.d.ts.map +1 -1
  10. package/lib/expectations/isVisible.d.ts +1 -1
  11. package/lib/expectations/isVisible.d.ts.map +1 -1
  12. package/lib/screenplay/abilities/BrowseTheWeb.d.ts +5 -5
  13. package/lib/screenplay/abilities/BrowseTheWeb.d.ts.map +1 -1
  14. package/lib/screenplay/abilities/BrowseTheWeb.js +6 -0
  15. package/lib/screenplay/abilities/BrowseTheWeb.js.map +1 -1
  16. package/lib/screenplay/interactions/Clear.d.ts +2 -2
  17. package/lib/screenplay/interactions/Clear.d.ts.map +1 -1
  18. package/lib/screenplay/interactions/Clear.js.map +1 -1
  19. package/lib/screenplay/interactions/Click.d.ts +2 -2
  20. package/lib/screenplay/interactions/Click.d.ts.map +1 -1
  21. package/lib/screenplay/interactions/Click.js.map +1 -1
  22. package/lib/screenplay/interactions/DoubleClick.d.ts +2 -2
  23. package/lib/screenplay/interactions/DoubleClick.d.ts.map +1 -1
  24. package/lib/screenplay/interactions/DoubleClick.js.map +1 -1
  25. package/lib/screenplay/interactions/Enter.d.ts +2 -2
  26. package/lib/screenplay/interactions/Enter.d.ts.map +1 -1
  27. package/lib/screenplay/interactions/Enter.js.map +1 -1
  28. package/lib/screenplay/interactions/ExecuteScript.d.ts +2 -1
  29. package/lib/screenplay/interactions/ExecuteScript.d.ts.map +1 -1
  30. package/lib/screenplay/interactions/ExecuteScript.js.map +1 -1
  31. package/lib/screenplay/interactions/Hover.d.ts +2 -2
  32. package/lib/screenplay/interactions/Hover.d.ts.map +1 -1
  33. package/lib/screenplay/interactions/Hover.js.map +1 -1
  34. package/lib/screenplay/interactions/Navigate.d.ts +2 -1
  35. package/lib/screenplay/interactions/Navigate.d.ts.map +1 -1
  36. package/lib/screenplay/interactions/Navigate.js.map +1 -1
  37. package/lib/screenplay/interactions/PageElementInteraction.d.ts +4 -3
  38. package/lib/screenplay/interactions/PageElementInteraction.d.ts.map +1 -1
  39. package/lib/screenplay/interactions/PageElementInteraction.js.map +1 -1
  40. package/lib/screenplay/interactions/Press.d.ts +4 -2
  41. package/lib/screenplay/interactions/Press.d.ts.map +1 -1
  42. package/lib/screenplay/interactions/Press.js.map +1 -1
  43. package/lib/screenplay/interactions/RightClick.d.ts +2 -2
  44. package/lib/screenplay/interactions/RightClick.d.ts.map +1 -1
  45. package/lib/screenplay/interactions/RightClick.js.map +1 -1
  46. package/lib/screenplay/interactions/Scroll.d.ts +3 -2
  47. package/lib/screenplay/interactions/Scroll.d.ts.map +1 -1
  48. package/lib/screenplay/interactions/Scroll.js.map +1 -1
  49. package/lib/screenplay/interactions/Select.d.ts +2 -2
  50. package/lib/screenplay/interactions/Select.d.ts.map +1 -1
  51. package/lib/screenplay/interactions/Select.js.map +1 -1
  52. package/lib/screenplay/interactions/Switch.d.ts +3 -2
  53. package/lib/screenplay/interactions/Switch.d.ts.map +1 -1
  54. package/lib/screenplay/interactions/Switch.js.map +1 -1
  55. package/lib/screenplay/interactions/TakeScreenshot.d.ts +2 -1
  56. package/lib/screenplay/interactions/TakeScreenshot.d.ts.map +1 -1
  57. package/lib/screenplay/interactions/TakeScreenshot.js.map +1 -1
  58. package/lib/screenplay/models/BrowsingSession.d.ts +7 -2
  59. package/lib/screenplay/models/BrowsingSession.d.ts.map +1 -1
  60. package/lib/screenplay/models/BrowsingSession.js.map +1 -1
  61. package/lib/screenplay/models/Cookie.d.ts +3 -2
  62. package/lib/screenplay/models/Cookie.d.ts.map +1 -1
  63. package/lib/screenplay/models/Cookie.js.map +1 -1
  64. package/lib/screenplay/models/CookieData.d.ts +1 -1
  65. package/lib/screenplay/models/CookieData.d.ts.map +1 -1
  66. package/lib/screenplay/models/Key.js +1 -1
  67. package/lib/screenplay/models/Key.js.map +1 -1
  68. package/lib/screenplay/models/Locator.d.ts +5 -2
  69. package/lib/screenplay/models/Locator.d.ts.map +1 -1
  70. package/lib/screenplay/models/Locator.js +3 -0
  71. package/lib/screenplay/models/Locator.js.map +1 -1
  72. package/lib/screenplay/models/Page.d.ts +20 -14
  73. package/lib/screenplay/models/Page.d.ts.map +1 -1
  74. package/lib/screenplay/models/Page.js.map +1 -1
  75. package/lib/screenplay/models/PageElement.d.ts +7 -6
  76. package/lib/screenplay/models/PageElement.d.ts.map +1 -1
  77. package/lib/screenplay/models/PageElement.js +6 -0
  78. package/lib/screenplay/models/PageElement.js.map +1 -1
  79. package/lib/screenplay/models/PageElements.d.ts +5 -4
  80. package/lib/screenplay/models/PageElements.d.ts.map +1 -1
  81. package/lib/screenplay/models/PageElements.js.map +1 -1
  82. package/lib/screenplay/models/RootLocator.d.ts +1 -1
  83. package/lib/screenplay/models/RootLocator.d.ts.map +1 -1
  84. package/lib/screenplay/models/Switchable.d.ts +1 -1
  85. package/lib/screenplay/models/Switchable.d.ts.map +1 -1
  86. package/lib/screenplay/models/dialogs/ModalDialog.d.ts +1 -1
  87. package/lib/screenplay/models/dialogs/ModalDialog.d.ts.map +1 -1
  88. package/lib/screenplay/models/dialogs/ModalDialog.js.map +1 -1
  89. package/lib/screenplay/models/dialogs/ModalDialogHandler.d.ts +1 -1
  90. package/lib/screenplay/models/dialogs/ModalDialogHandler.d.ts.map +1 -1
  91. package/lib/screenplay/models/selectors/By.d.ts +2 -1
  92. package/lib/screenplay/models/selectors/By.d.ts.map +1 -1
  93. package/lib/screenplay/models/selectors/By.js.map +1 -1
  94. package/lib/screenplay/models/selectors/Selector.d.ts +2 -1
  95. package/lib/screenplay/models/selectors/Selector.d.ts.map +1 -1
  96. package/lib/screenplay/models/selectors/Selector.js +2 -1
  97. package/lib/screenplay/models/selectors/Selector.js.map +1 -1
  98. package/lib/screenplay/questions/Attribute.d.ts +2 -1
  99. package/lib/screenplay/questions/Attribute.d.ts.map +1 -1
  100. package/lib/screenplay/questions/Attribute.js.map +1 -1
  101. package/lib/screenplay/questions/CssClasses.d.ts +2 -1
  102. package/lib/screenplay/questions/CssClasses.d.ts.map +1 -1
  103. package/lib/screenplay/questions/CssClasses.js.map +1 -1
  104. package/lib/screenplay/questions/LastScriptExecution.d.ts +1 -1
  105. package/lib/screenplay/questions/LastScriptExecution.d.ts.map +1 -1
  106. package/lib/screenplay/questions/LastScriptExecution.js.map +1 -1
  107. package/lib/screenplay/questions/Selected.d.ts +2 -2
  108. package/lib/screenplay/questions/Selected.d.ts.map +1 -1
  109. package/lib/screenplay/questions/Selected.js.map +1 -1
  110. package/lib/screenplay/questions/Text.d.ts +1 -1
  111. package/lib/screenplay/questions/Text.d.ts.map +1 -1
  112. package/lib/screenplay/questions/Text.js.map +1 -1
  113. package/lib/screenplay/questions/Value.d.ts +2 -1
  114. package/lib/screenplay/questions/Value.d.ts.map +1 -1
  115. package/lib/screenplay/questions/Value.js.map +1 -1
  116. package/lib/stage/crew/photographer/Photographer.d.ts +2 -2
  117. package/lib/stage/crew/photographer/Photographer.d.ts.map +1 -1
  118. package/lib/stage/crew/photographer/Photographer.js.map +1 -1
  119. package/lib/stage/crew/photographer/strategies/PhotoTakingStrategy.d.ts +2 -2
  120. package/lib/stage/crew/photographer/strategies/PhotoTakingStrategy.d.ts.map +1 -1
  121. package/lib/stage/crew/photographer/strategies/PhotoTakingStrategy.js.map +1 -1
  122. package/lib/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.d.ts +2 -1
  123. package/lib/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.d.ts.map +1 -1
  124. package/lib/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.js.map +1 -1
  125. package/lib/stage/crew/photographer/strategies/TakePhotosOfFailures.d.ts +2 -1
  126. package/lib/stage/crew/photographer/strategies/TakePhotosOfFailures.d.ts.map +1 -1
  127. package/lib/stage/crew/photographer/strategies/TakePhotosOfFailures.js.map +1 -1
  128. package/lib/stage/crew/photographer/strategies/TakePhotosOfInteractions.d.ts +2 -1
  129. package/lib/stage/crew/photographer/strategies/TakePhotosOfInteractions.d.ts.map +1 -1
  130. package/lib/stage/crew/photographer/strategies/TakePhotosOfInteractions.js.map +1 -1
  131. package/package.json +6 -6
  132. package/src/expectations/isActive.ts +1 -1
  133. package/src/expectations/isClickable.ts +1 -1
  134. package/src/expectations/isEnabled.ts +1 -1
  135. package/src/expectations/isSelected.ts +1 -1
  136. package/src/expectations/isVisible.ts +1 -1
  137. package/src/screenplay/abilities/BrowseTheWeb.ts +8 -6
  138. package/src/screenplay/interactions/Clear.ts +3 -2
  139. package/src/screenplay/interactions/Click.ts +3 -2
  140. package/src/screenplay/interactions/DoubleClick.ts +3 -2
  141. package/src/screenplay/interactions/Enter.ts +3 -2
  142. package/src/screenplay/interactions/ExecuteScript.ts +2 -1
  143. package/src/screenplay/interactions/Hover.ts +3 -2
  144. package/src/screenplay/interactions/Navigate.ts +2 -1
  145. package/src/screenplay/interactions/PageElementInteraction.ts +4 -3
  146. package/src/screenplay/interactions/Press.ts +4 -2
  147. package/src/screenplay/interactions/RightClick.ts +4 -3
  148. package/src/screenplay/interactions/Scroll.ts +3 -2
  149. package/src/screenplay/interactions/Select.ts +4 -2
  150. package/src/screenplay/interactions/Switch.ts +3 -2
  151. package/src/screenplay/interactions/TakeScreenshot.ts +2 -1
  152. package/src/screenplay/models/BrowsingSession.ts +8 -2
  153. package/src/screenplay/models/Cookie.ts +5 -3
  154. package/src/screenplay/models/CookieData.ts +1 -1
  155. package/src/screenplay/models/Locator.ts +5 -2
  156. package/src/screenplay/models/Page.ts +22 -14
  157. package/src/screenplay/models/PageElement.ts +15 -6
  158. package/src/screenplay/models/PageElements.ts +5 -4
  159. package/src/screenplay/models/RootLocator.ts +1 -1
  160. package/src/screenplay/models/Switchable.ts +1 -1
  161. package/src/screenplay/models/dialogs/ModalDialog.ts +2 -1
  162. package/src/screenplay/models/dialogs/ModalDialogHandler.ts +1 -1
  163. package/src/screenplay/models/selectors/By.ts +2 -1
  164. package/src/screenplay/models/selectors/Selector.ts +2 -1
  165. package/src/screenplay/questions/Attribute.ts +2 -1
  166. package/src/screenplay/questions/CssClasses.ts +2 -1
  167. package/src/screenplay/questions/LastScriptExecution.ts +2 -1
  168. package/src/screenplay/questions/Selected.ts +3 -2
  169. package/src/screenplay/questions/Text.ts +2 -1
  170. package/src/screenplay/questions/Value.ts +2 -1
  171. package/src/stage/crew/photographer/Photographer.ts +3 -2
  172. package/src/stage/crew/photographer/strategies/PhotoTakingStrategy.ts +4 -2
  173. package/src/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.ts +2 -1
  174. package/src/stage/crew/photographer/strategies/TakePhotosOfFailures.ts +2 -1
  175. package/src/stage/crew/photographer/strategies/TakePhotosOfInteractions.ts +2 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Selected.js","sourceRoot":"","sources":["../../../src/screenplay/questions/Selected.ts"],"names":[],"mappings":";;;AAAA,4CAA6E;AAI7E;;;;;;;;;;;;GAYG;AACH,MAAa,QAAQ;IAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+CG;IACH,MAAM,CAAC,OAAO,CAAC,WAAoC;QAC/C,OAAO,eAAQ,CAAC,KAAK,CAAC,IAAA,QAAC,EAAA,qBAAsB,WAAY,EAAE,EAAE,KAAK,EAAC,KAAK,EAAC,EAAE;YACvE,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YAChD,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,eAAe,EAAE,CAAC;YAEhD,OA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ED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACH,MAAM,CAAC,SAAS,CAAC,WAAoC;QACjD,OAAO,eAAQ,CAAC,KAAK,CAAC,IAAA,QAAC,EAAA,uBAAwB,WAAY,EAAE,EAAE,KAAK,EAAC,KAAK,EAAC,EAAE;YACzE,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YAEhD,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,eAAe,EAAE,CAAC;YAEhD,OAAO,OAAO;iBACT,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;iBACjC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAlPD,4BAkPC"}
@@ -1,4 +1,4 @@
1
- import { Answerable, MetaQuestion, QuestionAdapter } from '@serenity-js/core';
1
+ import type { Answerable, MetaQuestion, QuestionAdapter } from '@serenity-js/core';
2
2
  import { PageElement, PageElements } from '../models';
3
3
  /**
4
4
  * Uses the {@apilink Actor|actor's} {@apilink Ability|ability} to {@apilink BrowseTheWeb} to retrieve
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/screenplay/questions/Text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAuB,YAAY,EAAY,eAAe,EAAiB,MAAM,mBAAmB,CAAC;AAG5H,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsFG;AACH,qBAAa,IAAI;IAEb;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC,WAAW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;IACH,KAAK,CAAC,UAAU,CAAC,KAAuC;QACpD,MAAM,QAAQ,GAAkB,MAAM,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAElE,OAAO,IAAA,aAAQ,EAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,OAAe;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;OAEG;IACH,QAAQ;QACJ,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;CACJ"}
@@ -1,4 +1,5 @@
1
- import { Answerable, AnswersQuestions, MetaQuestion, Question, QuestionAdapter, UsesAbilities } from '@serenity-js/core';
1
+ import type { Answerable, AnswersQuestions, MetaQuestion, QuestionAdapter, UsesAbilities } from '@serenity-js/core';
2
+ import { Question } from '@serenity-js/core';
2
3
  import { PageElement } from '../models';
3
4
  /**
4
5
  * Uses the {@apilink Actor|actor's} {@apilink Ability|ability} to {@apilink BrowseTheWeb} to retrieve
@@ -1 +1 @@
1
- {"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../src/screenplay/questions/Value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAK,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE5H,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,qBAAa,KACT,SAAQ,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAChC,YAAW,YAAY,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAkB3C,OAAO,CAAC,QAAQ,CAAC,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AAO,CAAC,CAAC;QAEjD,OAAO,OAAO,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,OAAe;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;OAEG;IACH,QAAQ;QACJ,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;CACJ;AA/DD,sBA+DC"}
@@ -1,5 +1,5 @@
1
- import { DomainEvent } from '@serenity-js/core/lib/events';
2
- import { Stage, StageCrewMember } from '@serenity-js/core/lib/stage';
1
+ import type { DomainEvent } from '@serenity-js/core/lib/events';
2
+ import type { Stage, StageCrewMember } from '@serenity-js/core/lib/stage';
3
3
  import * as strategies from './strategies';
4
4
  /**
5
5
  * The Photographer is a {@apilink StageCrewMember} who takes screenshots
@@ -1 +1 @@
1
- {"version":3,"file":"Photographer.d.ts","sourceRoot":"","sources":["../../../../src/stage/crew/photographer/Photographer.ts"],"names":[],"mappings":"AACA,OAAO,EAAoC,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC7F,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiIG;AACH,qBAAa,YAAa,YAAW,eAAe;IAqC5C,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,KAAK,CAAC;IApClB;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAU,UAAU,CAAC,mBAAmB,GAAG,eAAe;IAInF;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QAAE,Q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AAC;IACnE,CAAC;IAED,YACqB,mBAAmD,EAC5D,KAAa;QADJ,wBAAmB,GAAnB,mBAAmB,CAAgC;QAC5D,UAAK,GAAL,KAAK,CAAQ;IAEzB,CAAC;IAED;;;;;OAKG;IACH,UAAU,CAAC,KAAY;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CAAC,KAAkB;QACvB,IAAI,CAAE,IAAI,CAAC,KAAK,EAAE;YACd,MAAM,IAAI,iBAAU,CAAC,8FAA8F,CAAC,CAAC;SACxH;QAED,IAAI,CAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,EAAE;YAClC,OAAO,KAAK,CAAC,CAAC;SACjB;QAED,IAAI,KAAK,YAAY,uBAAc,IAAI,KAAK,YAAY,yBAAgB,EAAE;YACtE,IAAI,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;SACnE;IACL,CAAC;CACJ;AAxED,oCAwEC"}
1
+ {"version":3,"file":"Photographer.js","sourceRoot":"","sources":["../../../../src/stage/crew/photographer/Photographer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAmE;AAEnE,yDAAgF;AAGhF,yDAA2C;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiIG;AACH,MAAa,YAAY;IAErB;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,CAAC,QAAkD;QAC7D,OAAO,IAAI,YAAY,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,MAA4E;QACxF,IAAI,MAAM,IAAI,MA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CAAC;CACJ;AAxED,oCAwEC"}
@@ -1,5 +1,5 @@
1
- import { Stage } from '@serenity-js/core';
2
- import { ActivityFinished, ActivityStarts, DomainEvent } from '@serenity-js/core/lib/events';
1
+ import type { Stage } from '@serenity-js/core';
2
+ import type { ActivityFinished, ActivityStarts, DomainEvent } from '@serenity-js/core/lib/events';
3
3
  /**
4
4
  * Configures the {@apilink Photographer} to take {@apilink Photo|photos}, a.k.a. screenshots,
5
5
  * of the {@apilink Activity} performed by the {@apilink Actor} in the {@apilink actorInTheSpotlight|spotlight}
@@ -1 +1 @@
1
- {"version":3,"file":"PhotoTakingStrategy.d.ts","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/PhotoTakingStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAoC,cAAc,EAAiG,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAK9N;;;;;;GAMG;AACH,8BAAsB,mBAAmB;IAErC;;;;;;;;;;;OAWG;IACG,mBAAmB,CAAC,KAAK,EAAE,cAAc,GAAG,gBAAgB,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IA6DhG,SAAS,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO;IAElE,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM;IAE3D,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,YAAY;CAIvB"}
1
+ {"version":3,"file":"PhotoTakingStrategy.d.ts","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/PhotoTakingStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAMlG;;;;;;GAMG;AACH,8BAAsB,mBAAmB;IAErC;;;;;;;;;;;OAWG;IACG,mBAAmB,CAAC,KAAK,EAAE,cAAc,GAAG,gBAAgB,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IA6DhG,SAAS,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO;IAElE,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM;IAE3D,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,YAAY;CAIvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"PhotoTakingStrategy.js","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/PhotoTakingStrategy.ts"],"names":[],"mappings":";;;AAAA,4CAAsD;AACtD,yDAA8N;AAC9N,uDAAsF;AAEtF,uDAAsD;AAEtD;;;;;;GAMG;AACH,MAAsB,mBAAmB;IAErC;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,mBAAmB,CAAC,KAAwC,EAAE,KAAY;QAC5E,IAAI,CAAE,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE;YAClC,OAAO,KAAK,CAAC,CAAC;SACjB;QAED,IAAI,YAA0B,CAAC;QAE/B,IAAI;YACA,YAAY,GAAG,yBAAY,CAAC,EAAE,CAAC,KAAK,CAAC,sBAAsB,EAAE,CAAC,CAAC;SAClE;QAAC,MAAM;YACJ,sCAAsC;YACtC,OAAO,KAAK,CAAC,CAAC;SACjB;QAED,MACI,EAAE,GAAgB,qBAAa,CAAC,MAAM,EAAE,EACxC,UAAU,GAAQ,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAE/C,KAAK,CAAC,QAAQ,CAAC,IAAI,gCAAuB,CACtC,IAAI,YAAI,CAAC,gBAAiB,IAAI,CAAC,WAAW,CAAC,IAAK,EAAE,CAAC,EACnD,IAAI,mBAAW,CAAC,yBAA0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AgB,CAAC,GAAG,KAAe;QACvC,OAAO,IAAI,YAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACvD,CAAC;IAEO,YAAY,CAAC,KAAY;QAC7B,OAAO,KAAK,YAAY,iBAAU;eAC3B,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAU,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;CACJ;AAvFD,kDAuFC"}
1
+ {"version":3,"file":"PhotoTakingStrategy.js","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/PhotoTakingStrategy.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAE/C,yDAA+K;AAC/K,uDAAsF;AAEtF,uDAAsD;AAEtD;;;;;;GAMG;AACH,MAAsB,mBAAmB;IAErC;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,mBAAmB,CAAC,KAAwC,EAAE,KAAY;QAC5E,IAAI,CAAE,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE;YAClC,OAAO,KAAK,CAAC,CAAC;SACjB;QAED,IAAI,YAA0B,CAAC;QAE/B,IAAI;YACA,YAAY,GAAG,yBAAY,CAAC,EAAE,CAAC,KAAK,CAAC,sBAAsB,EAAE,CAAC,CAAC;SAClE;QAAC,MAAM;YACJ,sCAAsC;YACtC,OAAO,KAAK,CAAC,CAAC;SACjB;QAED,MACI,EAAE,GAAgB,qBAAa,CAAC,MAAM,EAAE,EACxC,UAAU,GAAQ,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAE/C,KAAK,CAAC,QAAQ,CAAC,IAAI,gCAAuB,CACtC,IAAI,YAAI,CAAC,gBAAiB,IAAI,CAAC,WAAW,CAAC,IAAK,EAAE,CAAC,EACnD,IAAI,mBAAW,CAAC,yBAA0B,UAAW,MAAM,CAAC,EAC5D,EAAE,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,IAAI,YAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACvD,CAAC;IAEO,YAAY,CAAC,KAAY;QAC7B,OAAO,KAAK,YAAY,iBAAU;eAC3B,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAU,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;CACJ;AAvFD,kDAuFC"}
@@ -1,4 +1,5 @@
1
- import { DomainEvent, InteractionFinished, InteractionStarts } from '@serenity-js/core/lib/events';
1
+ import type { DomainEvent } from '@serenity-js/core/lib/events';
2
+ import { InteractionFinished, InteractionStarts } from '@serenity-js/core/lib/events';
2
3
  import { PhotoTakingStrategy } from './PhotoTakingStrategy';
3
4
  /**
4
5
  * Configures the {@apilink Photographer} to take photos (a.k.a. screenshots) **both before and after**
@@ -1 +1 @@
1
- {"version":3,"file":"TakePhotosBeforeAndAfterInteractions.d.ts","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEnG,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,qBAAa,oCAAqC,SAAQ,mBAAmB;IACzE,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO;IAKzD,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,mBAAmB,GAAG,MAAM;CAKjF"}
1
+ {"version":3,"file":"TakePhotosBeforeAndAfterInteractions.d.ts","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,qBAAa,oCAAqC,SAAQ,mBAAmB;IACzE,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO;IAKzD,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,mBAAmB,GAAG,MAAM;CAKjF"}
@@ -1 +1 @@
1
- {"version":3,"file":"TakePhotosBeforeAndAfterInteractions.js","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.ts"],"names":[],"mappings":";;;AAAA,yDAAmG;AAEnG,+DAA4D;AAE5D;;;;;;;;;;GAUG;AACH,MAAa,oCAAqC,SAAQ,yCAAmB;IAC/D,kBAAkB,CAAC,KAAkB;QAC3C,OAAO,KAAK,YAAY,0BAAiB;eAClC,KAAK,YAAY,4BAAmB,CAAC;IAChD,CAAC;IAES,YAAY,CAAC,KAA8C;QACjE,OAAO,KAAK,YAAY,0BAAiB;YACrC,CAAC,CAAC,UAAW,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAM,EAAE;YACxC,CAAC,CAAC,SAAU,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAM,EAAE,CAAC;IAChD,CAAC;CACJ;AAXD,oFAWC"}
1
+ {"version":3,"file":"TakePhotosBeforeAndAfterInteractions.js","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/TakePhotosBeforeAndAfterInteractions.ts"],"names":[],"mappings":";;;AACA,yDAAsF;AAEtF,+DAA4D;AAE5D;;;;;;;;;;GAUG;AACH,MAAa,oCAAqC,SAAQ,yCAAmB;IAC/D,kBAAkB,CAAC,KAAkB;QAC3C,OAAO,KAAK,YAAY,0BAAiB;eAClC,KAAK,YAAY,4BAAmB,CAAC;IAChD,CAAC;IAES,YAAY,CAAC,KAA8C;QACjE,OAAO,KAAK,YAAY,0BAAiB;YACrC,CAAC,CAAC,UAAW,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAM,EAAE;YACxC,CAAC,CAAC,SAAU,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAM,EAAE,CAAC;IAChD,CAAC;CACJ;AAXD,oFAWC"}
@@ -1,4 +1,5 @@
1
- import { DomainEvent, InteractionFinished } from '@serenity-js/core/lib/events';
1
+ import type { DomainEvent } from '@serenity-js/core/lib/events';
2
+ import { InteractionFinished } from '@serenity-js/core/lib/events';
2
3
  import { PhotoTakingStrategy } from './PhotoTakingStrategy';
3
4
  /**
4
5
  * Configures the {@apilink Photographer} to take photos (a.k.a. screenshots)
@@ -1 +1 @@
1
- {"version":3,"file":"TakePhotosOfFailures.d.ts","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/TakePhotosOfFailures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGhF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,qBAAa,oBAAqB,SAAQ,mBAAmB;IACzD,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO;IAKzD,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM;CAG7D"}
1
+ {"version":3,"file":"TakePhotosOfFailures.d.ts","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/TakePhotosOfFailures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,qBAAa,oBAAqB,SAAQ,mBAAmB;IACzD,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO;IAKzD,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM;CAG7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"TakePhotosOfFailures.js","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/TakePhotosOfFailures.ts"],"names":[],"mappings":";;;AAAA,yDAAgF;AAChF,uDAAoE;AAEpE,+DAA4D;AAE5D;;;;;;;;;;GAUG;AACH,MAAa,oBAAqB,SAAQ,yCAAmB;IAC/C,kBAAkB,CAAC,KAAkB;QAC3C,OAAO,KAAK,YAAY,4BAAmB;eACpC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,6BAAqB,CAAC,CAAC;IAC5D,CAAC;IAES,YAAY,CAAC,KAA0B;QAC7C,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;IACpC,CAAC;CACJ;AATD,oDASC"}
1
+ {"version":3,"file":"TakePhotosOfFailures.js","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/TakePhotosOfFailures.ts"],"names":[],"mappings":";;;AACA,yDAAmE;AACnE,uDAAoE;AAEpE,+DAA4D;AAE5D;;;;;;;;;;GAUG;AACH,MAAa,oBAAqB,SAAQ,yCAAmB;IAC/C,kBAAkB,CAAC,KAAkB;QAC3C,OAAO,KAAK,YAAY,4BAAmB;eACpC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,6BAAqB,CAAC,CAAC;IAC5D,CAAC;IAES,YAAY,CAAC,KAA0B;QAC7C,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;IACpC,CAAC;CACJ;AATD,oDASC"}
@@ -1,4 +1,5 @@
1
- import { DomainEvent, InteractionFinished } from '@serenity-js/core/lib/events';
1
+ import type { DomainEvent } from '@serenity-js/core/lib/events';
2
+ import { InteractionFinished } from '@serenity-js/core/lib/events';
2
3
  import { PhotoTakingStrategy } from './PhotoTakingStrategy';
3
4
  /**
4
5
  * Configures the {@apilink Photographer} to take photos (a.k.a. screenshots)
@@ -1 +1 @@
1
- {"version":3,"file":"TakePhotosOfInteractions.d.ts","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/TakePhotosOfInteractions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEhF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;;;;;;;;;GAWG;AACH,qBAAa,wBAAyB,SAAQ,mBAAmB;IAC7D,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO;IAIzD,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM;CAG7D"}
1
+ {"version":3,"file":"TakePhotosOfInteractions.d.ts","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/TakePhotosOfInteractions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;;;;;;;;;GAWG;AACH,qBAAa,wBAAyB,SAAQ,mBAAmB;IAC7D,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO;IAIzD,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM;CAG7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"TakePhotosOfInteractions.js","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/TakePhotosOfInteractions.ts"],"names":[],"mappings":";;;AAAA,yDAAgF;AAEhF,+DAA4D;AAE5D;;;;;;;;;;;GAWG;AACH,MAAa,wBAAyB,SAAQ,yCAAmB;IACnD,kBAAkB,CAAC,KAAkB;QAC3C,OAAO,KAAK,YAAY,4BAAmB,CAAC;IAChD,CAAC;IAES,YAAY,CAAC,KAA0B;QAC7C,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;IACpC,CAAC;CACJ;AARD,4DAQC"}
1
+ {"version":3,"file":"TakePhotosOfInteractions.js","sourceRoot":"","sources":["../../../../../src/stage/crew/photographer/strategies/TakePhotosOfInteractions.ts"],"names":[],"mappings":";;;AACA,yDAAmE;AAEnE,+DAA4D;AAE5D;;;;;;;;;;;GAWG;AACH,MAAa,wBAAyB,SAAQ,yCAAmB;IACnD,kBAAkB,CAAC,KAAkB;QAC3C,OAAO,KAAK,YAAY,4BAAmB,CAAC;IAChD,CAAC;IAES,YAAY,CAAC,KAA0B;QAC7C,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;IACpC,CAAC;CACJ;AARD,4DAQC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serenity-js/web",
3
- "version": "3.4.2",
3
+ "version": "3.6.0",
4
4
  "description": "Serenity/JS Screenplay Pattern APIs for the Web",
5
5
  "author": {
6
6
  "name": "Jan Molak",
@@ -44,9 +44,9 @@
44
44
  "node": "^16.13 || ^18.12 || ^20"
45
45
  },
46
46
  "dependencies": {
47
- "@serenity-js/assertions": "3.4.2",
48
- "@serenity-js/core": "3.4.2",
49
- "tiny-types": "^1.19.1"
47
+ "@serenity-js/assertions": "3.6.0",
48
+ "@serenity-js/core": "3.6.0",
49
+ "tiny-types": "^1.20.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@integration/testing-tools": "3.0.0",
@@ -56,7 +56,7 @@
56
56
  "mocha": "^10.2.0",
57
57
  "mocha-multi": "^1.1.7",
58
58
  "ts-node": "^10.9.1",
59
- "typescript": "^5.0.4"
59
+ "typescript": "^5.1.6"
60
60
  },
61
- "gitHead": "cfa92797638b21f0fde4f2cc836b57f849fee671"
61
+ "gitHead": "970ac224860693ab70e813e176b7532241503b14"
62
62
  }
@@ -1,7 +1,7 @@
1
1
  import { and, isPresent } from '@serenity-js/assertions';
2
2
  import { Expectation } from '@serenity-js/core';
3
3
 
4
- import { PageElement } from '../screenplay';
4
+ import type { PageElement } from '../screenplay';
5
5
 
6
6
  const isElementActive = Expectation.define(
7
7
  'isActive', 'become active',
@@ -1,7 +1,7 @@
1
1
  import { and, isPresent } from '@serenity-js/assertions';
2
2
  import { Expectation } from '@serenity-js/core';
3
3
 
4
- import { PageElement } from '../screenplay';
4
+ import type { PageElement } from '../screenplay';
5
5
 
6
6
  const isElementClickable = Expectation.define(
7
7
  'isClickable', 'become clickable',
@@ -1,7 +1,7 @@
1
1
  import { and, isPresent } from '@serenity-js/assertions';
2
2
  import { Expectation } from '@serenity-js/core';
3
3
 
4
- import { PageElement } from '../screenplay';
4
+ import type { PageElement } from '../screenplay';
5
5
 
6
6
  const isElementEnabled = Expectation.define(
7
7
  'isEnabled', 'become enabled',
@@ -1,7 +1,7 @@
1
1
  import { and, isPresent } from '@serenity-js/assertions';
2
2
  import { Expectation } from '@serenity-js/core';
3
3
 
4
- import { PageElement } from '../screenplay';
4
+ import type { PageElement } from '../screenplay';
5
5
 
6
6
  const isElementSelected = Expectation.define(
7
7
  'isSelected', 'become selected',
@@ -1,7 +1,7 @@
1
1
  import { and, isPresent } from '@serenity-js/assertions';
2
2
  import { Expectation } from '@serenity-js/core';
3
3
 
4
- import { PageElement } from '../screenplay';
4
+ import type { PageElement } from '../screenplay';
5
5
 
6
6
  const isElementVisible = Expectation.define(
7
7
  'isVisible', 'become visible',
@@ -1,6 +1,6 @@
1
1
  import { Ability } from '@serenity-js/core';
2
2
 
3
- import { BrowserCapabilities, BrowsingSession, Page } from '../models';
3
+ import type { BrowserCapabilities, BrowsingSession, Page } from '../models';
4
4
 
5
5
  /**
6
6
  * The {@apilink Ability|ability} to `BrowseTheWeb` enables an {@apilink Actor|actor}
@@ -84,11 +84,6 @@ export abstract class BrowseTheWeb<Native_Element_Type = any> extends Ability {
84
84
  super();
85
85
  }
86
86
 
87
- /**
88
- * Returns {@apilink BrowserCapabilities|basic meta-data} about the browser associated with this ability.
89
- */
90
- abstract browserCapabilities(): Promise<BrowserCapabilities>;
91
-
92
87
  /**
93
88
  * Returns a {@apilink Page} representing the currently active browser tab.
94
89
  */
@@ -103,4 +98,11 @@ export abstract class BrowseTheWeb<Native_Element_Type = any> extends Ability {
103
98
  allPages(): Promise<Array<Page<Native_Element_Type>>> {
104
99
  return this.session.allPages();
105
100
  }
101
+
102
+ /**
103
+ * Returns {@apilink BrowserCapabilities|basic meta-data} about the browser associated with this ability.
104
+ */
105
+ async browserCapabilities(): Promise<BrowserCapabilities> {
106
+ return this.session.browserCapabilities();
107
+ }
106
108
  }
@@ -1,6 +1,7 @@
1
- import { Answerable, AnswersQuestions, d, Interaction, LogicError, UsesAbilities } from '@serenity-js/core';
1
+ import type { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@serenity-js/core';
2
+ import { d, LogicError } from '@serenity-js/core';
2
3
 
3
- import { PageElement } from '../models';
4
+ import type { PageElement } from '../models';
4
5
  import { PageElementInteraction } from './PageElementInteraction';
5
6
 
6
7
  /**
@@ -1,6 +1,7 @@
1
- import { Answerable, AnswersQuestions, d, Interaction, UsesAbilities } from '@serenity-js/core';
1
+ import type { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@serenity-js/core';
2
+ import { d } from '@serenity-js/core';
2
3
 
3
- import { PageElement } from '../models';
4
+ import type { PageElement } from '../models';
4
5
  import { PageElementInteraction } from './PageElementInteraction';
5
6
 
6
7
  /**
@@ -1,6 +1,7 @@
1
- import { Answerable, AnswersQuestions, d, Interaction, UsesAbilities } from '@serenity-js/core';
1
+ import type { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@serenity-js/core';
2
+ import { d } from '@serenity-js/core';
2
3
 
3
- import { PageElement } from '../models';
4
+ import type { PageElement } from '../models';
4
5
  import { PageElementInteraction } from './PageElementInteraction';
5
6
 
6
7
  /**
@@ -1,7 +1,8 @@
1
- import { Answerable, AnswersQuestions, d, Interaction, UsesAbilities } from '@serenity-js/core';
1
+ import type { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@serenity-js/core';
2
+ import { d } from '@serenity-js/core';
2
3
  import { asyncMap } from '@serenity-js/core/lib/io';
3
4
 
4
- import { PageElement } from '../models';
5
+ import type { PageElement } from '../models';
5
6
  import { PageElementInteraction } from './PageElementInteraction';
6
7
 
7
8
  /**
@@ -1,4 +1,5 @@
1
- import { Answerable, AnswersQuestions, CollectsArtifacts, f, Interaction, LogicError, UsesAbilities } from '@serenity-js/core';
1
+ import type { Answerable, AnswersQuestions, CollectsArtifacts, UsesAbilities } from '@serenity-js/core';
2
+ import { f, Interaction, LogicError } from '@serenity-js/core';
2
3
  import { asyncMap } from '@serenity-js/core/lib/io';
3
4
  import { Name, TextData } from '@serenity-js/core/lib/model';
4
5
 
@@ -1,6 +1,7 @@
1
- import { Answerable, AnswersQuestions, d, Interaction, UsesAbilities } from '@serenity-js/core';
1
+ import type { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@serenity-js/core';
2
+ import { d } from '@serenity-js/core';
2
3
 
3
- import { PageElement } from '../models';
4
+ import type { PageElement } from '../models';
4
5
  import { PageElementInteraction } from './PageElementInteraction';
5
6
 
6
7
  /**
@@ -1,4 +1,5 @@
1
- import { Answerable, AnswersQuestions, d, Interaction, TestCompromisedError, UsesAbilities } from '@serenity-js/core';
1
+ import type { Answerable, AnswersQuestions, UsesAbilities } from '@serenity-js/core';
2
+ import { d, Interaction, TestCompromisedError } from '@serenity-js/core';
2
3
 
3
4
  import { BrowseTheWeb } from '../abilities';
4
5
 
@@ -1,7 +1,8 @@
1
- import { Answerable, AnswersQuestions, d, Interaction, LogicError } from '@serenity-js/core';
2
- import { FileSystemLocation } from '@serenity-js/core/lib/io';
1
+ import type { Answerable, AnswersQuestions} from '@serenity-js/core';
2
+ import { d, Interaction, LogicError } from '@serenity-js/core';
3
+ import type { FileSystemLocation } from '@serenity-js/core/lib/io';
3
4
 
4
- import { PageElement } from '../models';
5
+ import type { PageElement } from '../models';
5
6
 
6
7
  /**
7
8
  * A base class for interactions with {@apilink PageElement} objects.
@@ -1,8 +1,10 @@
1
- import { Activity, Answerable, AnswersQuestions, d, Interaction, Question, UsesAbilities } from '@serenity-js/core';
1
+ import type { Activity, Answerable, AnswersQuestions, UsesAbilities } from '@serenity-js/core';
2
+ import { d, Interaction, Question } from '@serenity-js/core';
2
3
  import { asyncMap } from '@serenity-js/core/lib/io';
3
4
 
4
5
  import { BrowseTheWeb } from '../abilities';
5
- import { Key, PageElement } from '../models';
6
+ import type { PageElement } from '../models';
7
+ import { Key } from '../models';
6
8
  import { PageElementInteraction } from './PageElementInteraction';
7
9
 
8
10
  /**
@@ -1,6 +1,7 @@
1
- import { Answerable, AnswersQuestions, d, Interaction, UsesAbilities } from '@serenity-js/core';
2
-
3
- import { PageElement } from '../models';
1
+ import type { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@serenity-js/core';
2
+ import { d } from '@serenity-js/core';
3
+
4
+ import type { PageElement } from '../models';
4
5
  import { PageElementInteraction } from './PageElementInteraction';
5
6
 
6
7
  /**
@@ -1,6 +1,7 @@
1
- import { Answerable, AnswersQuestions, d, Interaction, UsesAbilities } from '@serenity-js/core';
1
+ import type { Answerable, AnswersQuestions, UsesAbilities } from '@serenity-js/core';
2
+ import { d, Interaction } from '@serenity-js/core';
2
3
 
3
- import { PageElement } from '../models';
4
+ import type { PageElement } from '../models';
4
5
 
5
6
  /**
6
7
  * Instructs an {@apilink Actor|actor} who has the {@apilink Ability|ability} to {@apilink BrowseTheWeb}
@@ -1,9 +1,11 @@
1
- import { Answerable, d } from '@serenity-js/core';
1
+ import type { Answerable} from '@serenity-js/core';
2
+ import { d } from '@serenity-js/core';
2
3
  import { asyncMap, commaSeparated } from '@serenity-js/core/lib/io';
3
4
  import { stringified } from '@serenity-js/core/lib/io/stringified';
4
5
  import { Interaction } from '@serenity-js/core/lib/screenplay';
5
6
 
6
- import { PageElement, SelectOption } from '../models';
7
+ import type { PageElement} from '../models';
8
+ import { SelectOption } from '../models';
7
9
 
8
10
  /**
9
11
  * Instructs an {@apilink Actor|actor} who has the {@apilink Ability|ability} to {@apilink BrowseTheWeb}
@@ -1,6 +1,7 @@
1
- import { Activity, Actor, Answerable, AnswersQuestions, Interaction, Task, UsesAbilities } from '@serenity-js/core';
1
+ import type { Activity, Actor, Answerable, AnswersQuestions, UsesAbilities } from '@serenity-js/core';
2
+ import { Interaction, Task } from '@serenity-js/core';
2
3
 
3
- import { Switchable } from '../models';
4
+ import type { Switchable } from '../models';
4
5
 
5
6
  /**
6
7
  * Instructs an {@apilink Actor|actor} who has the {@apilink Ability|ability} to {@apilink BrowseTheWeb}
@@ -1,4 +1,5 @@
1
- import { Answerable, AnswersQuestions, CollectsArtifacts, d, Interaction, UsesAbilities } from '@serenity-js/core';
1
+ import type { Answerable, AnswersQuestions, CollectsArtifacts, UsesAbilities } from '@serenity-js/core';
2
+ import { d, Interaction } from '@serenity-js/core';
2
3
  import { Name, Photo } from '@serenity-js/core/lib/model';
3
4
 
4
5
  import { BrowseTheWeb } from '../abilities';
@@ -1,6 +1,7 @@
1
- import { CorrelationId } from '@serenity-js/core/lib/model';
1
+ import type { CorrelationId } from '@serenity-js/core/lib/model';
2
2
 
3
- import { Page } from './Page';
3
+ import type { BrowserCapabilities } from './BrowserCapabilities';
4
+ import type { Page } from './Page';
4
5
 
5
6
  /**
6
7
  * Represents the pages open in the current browsing context.
@@ -30,6 +31,11 @@ export abstract class BrowsingSession<Page_Type extends Page> {
30
31
  */
31
32
  protected abstract registerCurrentPage(): Promise<Page_Type>;
32
33
 
34
+ /**
35
+ * Returns {@apilink BrowserCapabilities|basic meta-data} about the browser associated with this browsing session.
36
+ */
37
+ public abstract browserCapabilities(): Promise<BrowserCapabilities>;
38
+
33
39
  /**
34
40
  * Returns a {@apilink Page} representing the currently active top-level browsing context.
35
41
  */
@@ -1,9 +1,11 @@
1
- import { Answerable, d, Interaction, Optional, Question, QuestionAdapter, Timestamp, WithAnswerableProperties } from '@serenity-js/core';
2
- import { ensure, isBoolean, isDefined, isInstanceOf, isOneOf, isPlainObject, isString, Predicate } from 'tiny-types';
1
+ import type { Answerable, Optional, QuestionAdapter, WithAnswerableProperties } from '@serenity-js/core';
2
+ import { d, Interaction, Question, Timestamp } from '@serenity-js/core';
3
+ import type { Predicate } from 'tiny-types';
4
+ import { ensure, isBoolean, isDefined, isInstanceOf, isOneOf, isPlainObject, isString } from 'tiny-types';
3
5
 
4
6
  import { CookieMissingError } from '../../errors';
5
7
  import { BrowseTheWeb } from '../abilities';
6
- import { CookieData } from './CookieData';
8
+ import type { CookieData } from './CookieData';
7
9
 
8
10
  /**
9
11
  * A Screenplay Pattern-style model responsible for managing cookies available to the current {@apilink Page}.
@@ -1,4 +1,4 @@
1
- import { Timestamp } from '@serenity-js/core';
1
+ import type { Timestamp } from '@serenity-js/core';
2
2
 
3
3
  /**
4
4
  * A data structure describing a {@apilink Cookie} to be set, or one that's been read.
@@ -1,9 +1,9 @@
1
1
  import { inspectedObject } from '@serenity-js/core/lib/io';
2
2
  import * as util from 'util'; // eslint-disable-line unicorn/import-style
3
3
 
4
- import { PageElement } from './PageElement';
4
+ import type { PageElement } from './PageElement';
5
5
  import { RootLocator } from './RootLocator';
6
- import { Selector } from './selectors';
6
+ import type { Selector } from './selectors';
7
7
 
8
8
  /**
9
9
  * {@apilink Locator} uses a {@apilink Selector} to locate a {@apilink PageElement} or {@apilink PageElements}
@@ -55,5 +55,8 @@ export abstract class Locator<Native_Element_Type, Native_Selector_Type = any>
55
55
  return this.selector.toString();
56
56
  }
57
57
 
58
+ /**
59
+ * Custom [Node.js inspection method](https://nodejs.org/api/util.html#utilinspectcustom).
60
+ */
58
61
  [util.inspect.custom] = inspectedObject(this, [ 'parent' as keyof this, 'selector' ]);
59
62
  }
@@ -1,20 +1,21 @@
1
- import { Expectation, ExpectationMet, ExpectationOutcome, LogicError, Optional, Question, QuestionAdapter } from '@serenity-js/core';
2
- import { CorrelationId } from '@serenity-js/core/lib/model';
1
+ import type { Expectation, ExpectationOutcome, Optional, QuestionAdapter } from '@serenity-js/core';
2
+ import { ExpectationMet, LogicError, Question } from '@serenity-js/core';
3
+ import type { CorrelationId } from '@serenity-js/core/lib/model';
3
4
  import { ensure, isDefined } from 'tiny-types';
4
- import { URL } from 'url';
5
+ import type { URL } from 'url';
5
6
 
6
7
  import { BrowseTheWeb } from '../abilities';
7
- import { BrowsingSession } from './BrowsingSession';
8
- import { Cookie } from './Cookie';
9
- import { CookieData } from './CookieData';
10
- import { ModalDialogHandler } from './dialogs';
11
- import { Key } from './Key';
12
- import { PageElement } from './PageElement';
13
- import { PageElements } from './PageElements';
14
- import { RootLocator } from './RootLocator';
15
- import { Selector } from './selectors';
16
- import { Switchable } from './Switchable';
17
- import { SwitchableOrigin } from './SwitchableOrigin';
8
+ import type { BrowsingSession } from './BrowsingSession';
9
+ import type { Cookie } from './Cookie';
10
+ import type { CookieData } from './CookieData';
11
+ import type { ModalDialogHandler } from './dialogs';
12
+ import type { Key } from './Key';
13
+ import type { PageElement } from './PageElement';
14
+ import type { PageElements } from './PageElements';
15
+ import type { RootLocator } from './RootLocator';
16
+ import type { Selector } from './selectors';
17
+ import type { Switchable } from './Switchable';
18
+ import type { SwitchableOrigin } from './SwitchableOrigin';
18
19
 
19
20
  /**
20
21
  * Serenity/JS Screenplay Pattern-style model that enables interactions with a Web page
@@ -256,6 +257,13 @@ export abstract class Page<Native_Element_Type = any> implements Optional, Switc
256
257
  ensure('id', id, isDefined());
257
258
  }
258
259
 
260
+ /**
261
+ * Creates a {@apilink PageElement} wrapping a native element.
262
+ *
263
+ * @param nativeElement
264
+ */
265
+ abstract createPageElement(nativeElement: Native_Element_Type): PageElement<Native_Element_Type>;
266
+
259
267
  /**
260
268
  * Creates a {@apilink PageElement}, retrieving an element located by {@apilink Selector}.
261
269
  *