@serenity-js/playwright 3.0.0-rc.20
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 +30 -0
- package/LICENSE.md +201 -0
- package/NOTICE.md +1 -0
- package/README.md +145 -0
- package/lib/PlaywrightOptions.d.ts +40 -0
- package/lib/PlaywrightOptions.js +3 -0
- package/lib/PlaywrightOptions.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +19 -0
- package/lib/index.js.map +1 -0
- package/lib/screenplay/abilities/BrowseTheWebWithPlaywright.d.ts +71 -0
- package/lib/screenplay/abilities/BrowseTheWebWithPlaywright.js +86 -0
- package/lib/screenplay/abilities/BrowseTheWebWithPlaywright.js.map +1 -0
- package/lib/screenplay/abilities/index.d.ts +1 -0
- package/lib/screenplay/abilities/index.js +18 -0
- package/lib/screenplay/abilities/index.js.map +1 -0
- package/lib/screenplay/index.d.ts +2 -0
- package/lib/screenplay/index.js +19 -0
- package/lib/screenplay/index.js.map +1 -0
- package/lib/screenplay/models/PlaywrightBrowsingSession.d.ts +25 -0
- package/lib/screenplay/models/PlaywrightBrowsingSession.js +67 -0
- package/lib/screenplay/models/PlaywrightBrowsingSession.js.map +1 -0
- package/lib/screenplay/models/PlaywrightCookie.d.ts +8 -0
- package/lib/screenplay/models/PlaywrightCookie.js +39 -0
- package/lib/screenplay/models/PlaywrightCookie.js.map +1 -0
- package/lib/screenplay/models/PlaywrightModalDialogHandler.d.ts +13 -0
- package/lib/screenplay/models/PlaywrightModalDialogHandler.js +45 -0
- package/lib/screenplay/models/PlaywrightModalDialogHandler.js.map +1 -0
- package/lib/screenplay/models/PlaywrightPage.d.ts +58 -0
- package/lib/screenplay/models/PlaywrightPage.js +177 -0
- package/lib/screenplay/models/PlaywrightPage.js.map +1 -0
- package/lib/screenplay/models/PlaywrightPageElement.d.ts +24 -0
- package/lib/screenplay/models/PlaywrightPageElement.js +194 -0
- package/lib/screenplay/models/PlaywrightPageElement.js.map +1 -0
- package/lib/screenplay/models/index.d.ts +5 -0
- package/lib/screenplay/models/index.js +22 -0
- package/lib/screenplay/models/index.js.map +1 -0
- package/lib/screenplay/models/locators/PlaywrightLocator.d.ts +13 -0
- package/lib/screenplay/models/locators/PlaywrightLocator.js +77 -0
- package/lib/screenplay/models/locators/PlaywrightLocator.js.map +1 -0
- package/lib/screenplay/models/locators/PlaywrightRootLocator.d.ts +11 -0
- package/lib/screenplay/models/locators/PlaywrightRootLocator.js +26 -0
- package/lib/screenplay/models/locators/PlaywrightRootLocator.js.map +1 -0
- package/lib/screenplay/models/locators/index.d.ts +2 -0
- package/lib/screenplay/models/locators/index.js +19 -0
- package/lib/screenplay/models/locators/index.js.map +1 -0
- package/package.json +68 -0
- package/src/PlaywrightOptions.ts +43 -0
- package/src/index.ts +2 -0
- package/src/screenplay/abilities/BrowseTheWebWithPlaywright.ts +89 -0
- package/src/screenplay/abilities/index.ts +1 -0
- package/src/screenplay/index.ts +2 -0
- package/src/screenplay/models/PlaywrightBrowsingSession.ts +88 -0
- package/src/screenplay/models/PlaywrightCookie.ts +46 -0
- package/src/screenplay/models/PlaywrightModalDialogHandler.ts +53 -0
- package/src/screenplay/models/PlaywrightPage.ts +258 -0
- package/src/screenplay/models/PlaywrightPageElement.ts +235 -0
- package/src/screenplay/models/index.ts +5 -0
- package/src/screenplay/models/locators/PlaywrightLocator.ts +113 -0
- package/src/screenplay/models/locators/PlaywrightRootLocator.ts +29 -0
- package/src/screenplay/models/locators/index.ts +2 -0
- package/tsconfig.eslint.json +10 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# [3.0.0-rc.20](https://github.com/serenity-js/serenity-js/compare/v3.0.0-rc.19...v3.0.0-rc.20) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **web:** renamed PagesContext to BrowsingSession to make the name more descriptive ([6b4e998](https://github.com/serenity-js/serenity-js/commit/6b4e9984d80f8f349f367e59bd0e615cd01703ec)), closes [#1236](https://github.com/serenity-js/serenity-js/issues/1236)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **core:** interactions to Wait.for and Wait.until are now browser-independent ([d115142](https://github.com/serenity-js/serenity-js/commit/d1151427bed96c1ebd0d1dcc4159c6aeedc605de)), closes [#1035](https://github.com/serenity-js/serenity-js/issues/1035) [#1236](https://github.com/serenity-js/serenity-js/issues/1236)
|
|
17
|
+
* **playwright:** configurable navigation and interaction timeouts for BrowseTheWebWithPlaywright ([142b78e](https://github.com/serenity-js/serenity-js/commit/142b78ed5c3ede1f61f5a1c5ae72d785c3fe70a9)), closes [#1236](https://github.com/serenity-js/serenity-js/issues/1236)
|
|
18
|
+
* **playwright:** configurable navigation waitUntil timeout ([2458fcb](https://github.com/serenity-js/serenity-js/commit/2458fcb22c946da41ab59cb21ac0d4cc48012da7)), closes [#1236](https://github.com/serenity-js/serenity-js/issues/1236)
|
|
19
|
+
* **playwright:** initial support for Playwright ([87e88a1](https://github.com/serenity-js/serenity-js/commit/87e88a16cdc06477ed25eb83f9597fd370fdc109)), closes [#493](https://github.com/serenity-js/serenity-js/issues/493) [#563](https://github.com/serenity-js/serenity-js/issues/563) [#911](https://github.com/serenity-js/serenity-js/issues/911)
|
|
20
|
+
* **playwright:** interaction to Select option(s) from a <select /> dropdown ([009041d](https://github.com/serenity-js/serenity-js/commit/009041d83e22ddf3fef14670e0e5fd6d11cdfc73)), closes [#1236](https://github.com/serenity-js/serenity-js/issues/1236)
|
|
21
|
+
* **playwright:** interactions to Scroll, Press, and TakeScreenshot ([1c039d2](https://github.com/serenity-js/serenity-js/commit/1c039d2027057f074f3d9be9685489b1512ac63c)), closes [#493](https://github.com/serenity-js/serenity-js/issues/493) [#563](https://github.com/serenity-js/serenity-js/issues/563) [#911](https://github.com/serenity-js/serenity-js/issues/911)
|
|
22
|
+
* **playwright:** isActive check for PlaywrightPageElement ([dbf44eb](https://github.com/serenity-js/serenity-js/commit/dbf44eb7a8bfbeb45e03d9269d8c454e951c11b2)), closes [#1236](https://github.com/serenity-js/serenity-js/issues/1236)
|
|
23
|
+
* **playwright:** support for executing in-browser JavaScript ([630bedd](https://github.com/serenity-js/serenity-js/commit/630beddbf6f782a85e1a15c0b8b57637498dbd91)), closes [#493](https://github.com/serenity-js/serenity-js/issues/493) [#563](https://github.com/serenity-js/serenity-js/issues/563) [#911](https://github.com/serenity-js/serenity-js/issues/911)
|
|
24
|
+
* **playwright:** support for isClickable ([afc8587](https://github.com/serenity-js/serenity-js/commit/afc8587a2ee2af6a4151512dc621473a3a892b7e)), closes [#1236](https://github.com/serenity-js/serenity-js/issues/1236)
|
|
25
|
+
* **playwright:** support for isVisible, plus consistent visibility checks across the board ([2c5c929](https://github.com/serenity-js/serenity-js/commit/2c5c929802f894f9fe59438a01f08b1b7bec3318)), closes [#1236](https://github.com/serenity-js/serenity-js/issues/1236)
|
|
26
|
+
* **playwright:** support for working with cookies ([1215a8f](https://github.com/serenity-js/serenity-js/commit/1215a8f0d2aabd99bdda8be4e136e0c4f6687803)), closes [#1237](https://github.com/serenity-js/serenity-js/issues/1237)
|
|
27
|
+
* **playwright:** support for working with frames ([89d4621](https://github.com/serenity-js/serenity-js/commit/89d46212073a342fe812a3ad2638a2ad0c39b620)), closes [#1236](https://github.com/serenity-js/serenity-js/issues/1236)
|
|
28
|
+
* **web:** introduced PagesContext and implemented PlaywrightPage ([0045a72](https://github.com/serenity-js/serenity-js/commit/0045a726d540871333f644928218aed00bcd372c)), closes [#1236](https://github.com/serenity-js/serenity-js/issues/1236)
|
|
29
|
+
* **web:** new portable APIs to handle ModalDialog windows ([c94d0ec](https://github.com/serenity-js/serenity-js/commit/c94d0ec43d2bc8aa39f8824f5d0f1e1cbcf137a1)), closes [#1236](https://github.com/serenity-js/serenity-js/issues/1236) [#805](https://github.com/serenity-js/serenity-js/issues/805) [#1156](https://github.com/serenity-js/serenity-js/issues/1156)
|
|
30
|
+
* **web:** standardised support for deep CSS selectors across the Web integration modules ([e9e3f28](https://github.com/serenity-js/serenity-js/commit/e9e3f281191fc5c891841b6c8aab41213da3b0f5)), closes [#1238](https://github.com/serenity-js/serenity-js/issues/1238)
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright {yyyy} {name of copyright owner}
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/NOTICE.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Copyright 2016- Jan Molak, smartcode ltd.
|
package/README.md
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# Serenity/JS
|
|
2
|
+
|
|
3
|
+
[Serenity/JS](https://serenity-js.org) is a framework designed to make acceptance and regression testing
|
|
4
|
+
of modern full-stack applications faster, more collaborative and easier to scale.
|
|
5
|
+
|
|
6
|
+
Visit [serenity-js.org](https://serenity-js.org/) for the [latest tutorials](https://serenity-js.org/handbook/)
|
|
7
|
+
and [API docs](https://serenity-js.org/modules/), and follow [@SerenityJS](https://twitter.com/SerenityJS) and [@JanMolak](https://twitter.com/JanMolak) on Twitter for project updates.
|
|
8
|
+
|
|
9
|
+
[](https://twitter.com/@SerenityJS)
|
|
10
|
+
[](https://twitter.com/@JanMolak)
|
|
11
|
+
[](https://gitter.im/serenity-js/Lobby)
|
|
12
|
+
|
|
13
|
+
Subscribe to [Serenity/JS YouTube channel](https://www.youtube.com/channel/UC0RdeVPyjtJopVHvlLrXd1Q) to get notified when new demos and video tutorials are available.
|
|
14
|
+
|
|
15
|
+
### Learning Serenity/JS
|
|
16
|
+
|
|
17
|
+
To learn more about Serenity/JS, [follow the tutorial](https://serenity-js.org/handbook/thinking-in-serenity-js/index.html), [review the examples](https://github.com/serenity-js/serenity-js/tree/main/examples), and create your own test suite with [Serenity/JS template projects](https://github.com/serenity-js).
|
|
18
|
+
|
|
19
|
+
If you have any questions, join us on [Serenity/JS Community Chat](https://gitter.im/serenity-js/Lobby).
|
|
20
|
+
|
|
21
|
+
## Serenity/JS Playwright
|
|
22
|
+
|
|
23
|
+
[`@serenity-js/playwright`](https://serenity-js.org/modules/playwright/) module is a [Screenplay Pattern](https://serenity-js.org/handbook/thinking-in-serenity-js/screenplay-pattern.html)-style adapter
|
|
24
|
+
for [Playwright](https://playwright.dev/), that helps with testing Web-based apps.
|
|
25
|
+
|
|
26
|
+
### Installation
|
|
27
|
+
|
|
28
|
+
To install this module, run the following command in your [Playwright project directory](https://playwright.dev/docs/intro):
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npm install --save-dev @serenity-js/{assertions,console-reporter,core,serenity-bdd,web,playwright}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Usage with Mocha
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { Ensure, equals } from '@serenity-js/assertions';
|
|
38
|
+
import { actorCalled, Actor, ArtifactArchiver, Cast, configure, Duration } from '@serenity-js/core';
|
|
39
|
+
import { ConsoleReporter } from '@serenity-js/console-reporter';
|
|
40
|
+
import { BrowseTheWebWithPlaywright, PlaywrightOptions } from '@serenity-js/playwright';
|
|
41
|
+
import { SerenityBDDReporter } from '@serenity-js/serenity-bdd';
|
|
42
|
+
import { By, Navigate, PageElement, Photographer, TakePhotosOfFailures, Text } from '@serenity-js/web';
|
|
43
|
+
|
|
44
|
+
import { describe, it, beforeAll, afterAll } from 'mocha';
|
|
45
|
+
import * as playwright from 'playwright';
|
|
46
|
+
|
|
47
|
+
// example Lean Page Object describing a widget we interact with in the test
|
|
48
|
+
class SerenityJSWebsite {
|
|
49
|
+
static header = () =>
|
|
50
|
+
PageElement.located(By.css('h1')) // selector to identify the interactable element
|
|
51
|
+
.describedAs('header'); // description to be used in reports
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// example Actors class, confgures Serenity/JS actors to use Playwright
|
|
55
|
+
class Actors implements Cast {
|
|
56
|
+
constructor(
|
|
57
|
+
private readonly browser: playwright.Browser,
|
|
58
|
+
private readonly options: PlaywrightOptions,
|
|
59
|
+
) {
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
prepare(actor: Actor): Actor {
|
|
63
|
+
return actor.whoCan(
|
|
64
|
+
BrowseTheWebWithPlaywright.using(this.browser, this.options),
|
|
65
|
+
// ... add other abilities as needed, like CallAnApi or TakeNotes
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
describe('Serenity/JS', () => {
|
|
71
|
+
|
|
72
|
+
let browser: playwright.Browser;
|
|
73
|
+
|
|
74
|
+
beforeAll(async () => {
|
|
75
|
+
// Start a single browser before all the tests,
|
|
76
|
+
// Serenity/JS will open new tabs
|
|
77
|
+
// and manage Playwright browser context as needed
|
|
78
|
+
browser = await playwright.chromium.launch({
|
|
79
|
+
headless: true
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
// Configure Serenity/JS providing your Actors
|
|
83
|
+
// and required "stage crew memebers" (a.k.a. reporting services)
|
|
84
|
+
configure({
|
|
85
|
+
actors: new Actors(browser, {
|
|
86
|
+
baseURL: `https://serenity-js.org`,
|
|
87
|
+
defaultNavigationTimeout: Duration.ofSeconds(2).inMilliseconds(),
|
|
88
|
+
defaultTimeout: Duration.ofMilliseconds(750).inMilliseconds(),
|
|
89
|
+
}),
|
|
90
|
+
crew: [
|
|
91
|
+
ArtifactArchiver.storingArtifactsAt(`./target/site/serenity`),
|
|
92
|
+
Photographer.whoWill(TakePhotosOfFailures),
|
|
93
|
+
new SerenityBDDReporter(),
|
|
94
|
+
ConsoleReporter.forDarkTerminals(),
|
|
95
|
+
]
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
it('supports Playwright', async () => {
|
|
100
|
+
// actorCalled(name) instantiates or retrieves an existing actor identified by name
|
|
101
|
+
// Actors class configures the actors to use Playwright
|
|
102
|
+
await actorCalled('William')
|
|
103
|
+
.attemptsTo(
|
|
104
|
+
Navigate.to('https://serenity-js.org'),
|
|
105
|
+
Ensure.that(
|
|
106
|
+
Text.of(SerenityJSWebsite.header()),
|
|
107
|
+
equals('Next generation acceptance testing')
|
|
108
|
+
),
|
|
109
|
+
)
|
|
110
|
+
})
|
|
111
|
+
|
|
112
|
+
afterAll(async () => {
|
|
113
|
+
// Close the browser after all the tests are finished
|
|
114
|
+
if (browser) {
|
|
115
|
+
await browser.close()
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Next steps:
|
|
122
|
+
- Add [`@serenity-js/mocha`](https://serenity-js.org/modules/mocha/) adapter to produce the reports
|
|
123
|
+
- Learn about the [Screenplay Pattern](https://serenity-js.org/handbook/design/screenplay-pattern.html)
|
|
124
|
+
- Explore [`@serenity-js/web`](https://serenity-js.org/modules/web) and [`@serenity-js/assertions`](https://serenity-js.org/modules/assertions) APIs
|
|
125
|
+
|
|
126
|
+
## Usage with `@playwright/test`
|
|
127
|
+
|
|
128
|
+
Support for `@playwright/test` is coming soon!
|
|
129
|
+
|
|
130
|
+
Give [serenity-js/serenity-js#1240](https://github.com/serenity-js/serenity-js/issues/1240) a 👍 on GitHub
|
|
131
|
+
to show your interest and get notified when the feature arrives.
|
|
132
|
+
|
|
133
|
+
## Usage with Cucumber
|
|
134
|
+
|
|
135
|
+
Tutorial coming soon!
|
|
136
|
+
|
|
137
|
+
Follow [@SerenityJS on Twitter](https://twitter.com/@SerenityJS) to get notified about new tutorials.
|
|
138
|
+
|
|
139
|
+
## More coming soon!
|
|
140
|
+
|
|
141
|
+
New features, tutorials, and demos are coming soon, so follow us on Twitter and join the [Serenity/JS Community chat channel](https://gitter.im/serenity-js/Lobby) to stay up to date!
|
|
142
|
+
|
|
143
|
+
[](https://twitter.com/@SerenityJS)
|
|
144
|
+
[](https://twitter.com/@JanMolak)
|
|
145
|
+
[](https://gitter.im/serenity-js/Lobby)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as playwright from 'playwright-core';
|
|
2
|
+
/**
|
|
3
|
+
* @desc
|
|
4
|
+
* Playwright-specific options used to configure the ability to {@link BrowseTheWebWithPlaywright}
|
|
5
|
+
*
|
|
6
|
+
* @extends {playwright~BrowserContextOptions}
|
|
7
|
+
*/
|
|
8
|
+
export interface PlaywrightOptions extends playwright.BrowserContextOptions {
|
|
9
|
+
/**
|
|
10
|
+
* @desc
|
|
11
|
+
* This setting will change the default maximum navigation time for the browser context used by {@link BrowseTheWebWithPlaywright}
|
|
12
|
+
*
|
|
13
|
+
* @see https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-navigation-timeout
|
|
14
|
+
*
|
|
15
|
+
* @type {?number}
|
|
16
|
+
*/
|
|
17
|
+
defaultNavigationTimeout?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @desc
|
|
20
|
+
* When to consider navigation operation succeeded, defaults to `load`. Events can be either:
|
|
21
|
+
* - `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
|
|
22
|
+
* - `'load'` - consider operation to be finished when the `load` event is fired.
|
|
23
|
+
* - `'networkidle'` - consider operation to be finished when there are no network connections for at least `500` ms.
|
|
24
|
+
* - `'commit'` - consider operation to be finished when network response is received and the document started loading.
|
|
25
|
+
*
|
|
26
|
+
* @see https://playwright.dev/docs/api/class-page#page-goto-option-wait-until
|
|
27
|
+
*
|
|
28
|
+
* @type {?string}
|
|
29
|
+
*/
|
|
30
|
+
defaultNavigationWaitUntil?: 'load' | 'domcontentloaded' | 'networkidle' | 'commit';
|
|
31
|
+
/**
|
|
32
|
+
* @desc
|
|
33
|
+
* This setting will change the default maximum time for all Playwright methods accepting `timeout` option.
|
|
34
|
+
*
|
|
35
|
+
* @see https://playwright.dev/docs/api/class-page#page-set-default-timeout
|
|
36
|
+
*
|
|
37
|
+
* @type {?number}
|
|
38
|
+
*/
|
|
39
|
+
defaultTimeout?: number;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlaywrightOptions.js","sourceRoot":"","sources":["../src/PlaywrightOptions.ts"],"names":[],"mappings":""}
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./PlaywrightOptions"), exports);
|
|
18
|
+
__exportStar(require("./screenplay"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,+CAA6B"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Discardable } from '@serenity-js/core';
|
|
2
|
+
import { BrowserCapabilities, BrowseTheWeb } from '@serenity-js/web';
|
|
3
|
+
import * as playwright from 'playwright-core';
|
|
4
|
+
import { PlaywrightOptions } from '../../PlaywrightOptions';
|
|
5
|
+
/**
|
|
6
|
+
* @desc
|
|
7
|
+
* An {@link @serenity-js/core/lib/screenplay~Ability} that enables the {@link Actor}
|
|
8
|
+
* to interact with web front-ends using [Playwright](https://playwright.dev/).
|
|
9
|
+
*
|
|
10
|
+
* @example <caption>Using a Playwright browser</caption>
|
|
11
|
+
* import { actorCalled } from '@serenity-js/core';
|
|
12
|
+
* import { BrowseTheWebWithPlaywright } from '@serenity-js/playwright';
|
|
13
|
+
* import { By, Navigate, PageElement } from '@serenity-js/web';
|
|
14
|
+
* import { Ensure, equals } from '@serenity-js/assertions';
|
|
15
|
+
* import { Browser, chromium } from 'playwright';
|
|
16
|
+
*
|
|
17
|
+
* const HomePage = {
|
|
18
|
+
* title: PageElement.located(By.css('h1')).describedAs('title')
|
|
19
|
+
* }
|
|
20
|
+
*
|
|
21
|
+
* const browser = await chromium.launch({ headless: true });
|
|
22
|
+
*
|
|
23
|
+
* await actorCalled('Wendy')
|
|
24
|
+
* .whoCan(BrowseTheWebWithPlaywright.using(browser))
|
|
25
|
+
* .attemptsTo(
|
|
26
|
+
* Navigate.to(`https://serenity-js.org`),
|
|
27
|
+
* Ensure.that(Text.of(HomePage.title), equals('Serenity/JS')),
|
|
28
|
+
* );
|
|
29
|
+
*
|
|
30
|
+
* @extends {@serenity-js/web/lib/screenplay/abilities~BrowseTheWeb}
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
*
|
|
34
|
+
* @see https://playwright.dev/
|
|
35
|
+
* @see {@link @serenity-js/core/lib/screenplay/actor~Actor}
|
|
36
|
+
*/
|
|
37
|
+
export declare class BrowseTheWebWithPlaywright extends BrowseTheWeb<playwright.ElementHandle> implements Discardable {
|
|
38
|
+
protected readonly browser: playwright.Browser;
|
|
39
|
+
/**
|
|
40
|
+
* @param {playwright~Browser} browser
|
|
41
|
+
* @param {PlaywrightOptions} options
|
|
42
|
+
* @returns {BrowseTheWebWithPlaywright}
|
|
43
|
+
*/
|
|
44
|
+
static using(browser: playwright.Browser, options?: PlaywrightOptions): BrowseTheWebWithPlaywright;
|
|
45
|
+
/**
|
|
46
|
+
* @param {playwright~Browser} browser
|
|
47
|
+
* @param {PlaywrightOptions} browserContextOptions
|
|
48
|
+
*/
|
|
49
|
+
protected constructor(browser: playwright.Browser, browserContextOptions?: PlaywrightOptions);
|
|
50
|
+
/**
|
|
51
|
+
* @desc
|
|
52
|
+
* Automatically closes any open {@link Page}s when the {@link SceneFinishes}
|
|
53
|
+
*
|
|
54
|
+
* @see {@link PlaywrightBrowsingSession#closeAllPages}
|
|
55
|
+
* @see {@link @serenity-js/core/lib/screenplay/abilities~Discardable}
|
|
56
|
+
*/
|
|
57
|
+
discard(): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* @desc
|
|
60
|
+
* Returns basic meta-data about the browser associated with this ability.
|
|
61
|
+
*
|
|
62
|
+
* **Please note** that since Playwright does not expose information about the operating system
|
|
63
|
+
* the tests are running on, **Serenity/JS assumes that the tests are running locally**
|
|
64
|
+
* and therefore returns the value of Node.js `process.platform` for `platformName`.
|
|
65
|
+
*
|
|
66
|
+
* @returns {Promise<BrowserCapabilities>}
|
|
67
|
+
*
|
|
68
|
+
* @see {@link @serenity-js/web/lib/screenplay/abilities~BrowserCapabilities}
|
|
69
|
+
*/
|
|
70
|
+
browserCapabilities(): Promise<BrowserCapabilities>;
|
|
71
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BrowseTheWebWithPlaywright = void 0;
|
|
4
|
+
const web_1 = require("@serenity-js/web");
|
|
5
|
+
const models_1 = require("../models");
|
|
6
|
+
/**
|
|
7
|
+
* @desc
|
|
8
|
+
* An {@link @serenity-js/core/lib/screenplay~Ability} that enables the {@link Actor}
|
|
9
|
+
* to interact with web front-ends using [Playwright](https://playwright.dev/).
|
|
10
|
+
*
|
|
11
|
+
* @example <caption>Using a Playwright browser</caption>
|
|
12
|
+
* import { actorCalled } from '@serenity-js/core';
|
|
13
|
+
* import { BrowseTheWebWithPlaywright } from '@serenity-js/playwright';
|
|
14
|
+
* import { By, Navigate, PageElement } from '@serenity-js/web';
|
|
15
|
+
* import { Ensure, equals } from '@serenity-js/assertions';
|
|
16
|
+
* import { Browser, chromium } from 'playwright';
|
|
17
|
+
*
|
|
18
|
+
* const HomePage = {
|
|
19
|
+
* title: PageElement.located(By.css('h1')).describedAs('title')
|
|
20
|
+
* }
|
|
21
|
+
*
|
|
22
|
+
* const browser = await chromium.launch({ headless: true });
|
|
23
|
+
*
|
|
24
|
+
* await actorCalled('Wendy')
|
|
25
|
+
* .whoCan(BrowseTheWebWithPlaywright.using(browser))
|
|
26
|
+
* .attemptsTo(
|
|
27
|
+
* Navigate.to(`https://serenity-js.org`),
|
|
28
|
+
* Ensure.that(Text.of(HomePage.title), equals('Serenity/JS')),
|
|
29
|
+
* );
|
|
30
|
+
*
|
|
31
|
+
* @extends {@serenity-js/web/lib/screenplay/abilities~BrowseTheWeb}
|
|
32
|
+
*
|
|
33
|
+
* @public
|
|
34
|
+
*
|
|
35
|
+
* @see https://playwright.dev/
|
|
36
|
+
* @see {@link @serenity-js/core/lib/screenplay/actor~Actor}
|
|
37
|
+
*/
|
|
38
|
+
class BrowseTheWebWithPlaywright extends web_1.BrowseTheWeb {
|
|
39
|
+
/**
|
|
40
|
+
* @param {playwright~Browser} browser
|
|
41
|
+
* @param {PlaywrightOptions} browserContextOptions
|
|
42
|
+
*/
|
|
43
|
+
constructor(browser, browserContextOptions = {}) {
|
|
44
|
+
super(new models_1.PlaywrightBrowsingSession(browser, browserContextOptions));
|
|
45
|
+
this.browser = browser;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @param {playwright~Browser} browser
|
|
49
|
+
* @param {PlaywrightOptions} options
|
|
50
|
+
* @returns {BrowseTheWebWithPlaywright}
|
|
51
|
+
*/
|
|
52
|
+
static using(browser, options) {
|
|
53
|
+
return new BrowseTheWebWithPlaywright(browser, options);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @desc
|
|
57
|
+
* Automatically closes any open {@link Page}s when the {@link SceneFinishes}
|
|
58
|
+
*
|
|
59
|
+
* @see {@link PlaywrightBrowsingSession#closeAllPages}
|
|
60
|
+
* @see {@link @serenity-js/core/lib/screenplay/abilities~Discardable}
|
|
61
|
+
*/
|
|
62
|
+
async discard() {
|
|
63
|
+
await this.session.closeAllPages();
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @desc
|
|
67
|
+
* Returns basic meta-data about the browser associated with this ability.
|
|
68
|
+
*
|
|
69
|
+
* **Please note** that since Playwright does not expose information about the operating system
|
|
70
|
+
* the tests are running on, **Serenity/JS assumes that the tests are running locally**
|
|
71
|
+
* and therefore returns the value of Node.js `process.platform` for `platformName`.
|
|
72
|
+
*
|
|
73
|
+
* @returns {Promise<BrowserCapabilities>}
|
|
74
|
+
*
|
|
75
|
+
* @see {@link @serenity-js/web/lib/screenplay/abilities~BrowserCapabilities}
|
|
76
|
+
*/
|
|
77
|
+
async browserCapabilities() {
|
|
78
|
+
return {
|
|
79
|
+
browserName: this.browser._initializer.name,
|
|
80
|
+
platformName: process.platform,
|
|
81
|
+
browserVersion: this.browser.version()
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.BrowseTheWebWithPlaywright = BrowseTheWebWithPlaywright;
|
|
86
|
+
//# sourceMappingURL=BrowseTheWebWithPlaywright.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowseTheWebWithPlaywright.js","sourceRoot":"","sources":["../../../src/screenplay/abilities/BrowseTheWebWithPlaywright.ts"],"names":[],"mappings":";;;AACA,0CAAqE;AAIrE,sCAAsD;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,0BAA2B,SAAQ,kBAAsC;IAWlF;;;OAGG;IACH,YAAyC,OAA2B,EAAE,wBAA2C,EAAE;QAC/G,KAAK,CAAC,IAAI,kCAAyB,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC;QADhC,YAAO,GAAP,OAAO,CAAoB;IAEpE,CAAC;IAfD;;;;OAIG;IACH,MAAM,CAAC,KAAK,CAAC,OAA2B,EAAE,OAA2B;QACjE,OAAO,IAAI,0BAA0B,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAUD;;;;;;OAMG;IACH,KAAK,CAAC,OAAO;QACT,MAAM,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;IACvC,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,mBAAmB;QACrB,OAAO;YACH,WAAW,EAAG,IAAI,CAAC,OAAe,CAAC,YAAY,CAAC,IAAI;YACpD,YAAY,EAAE,OAAO,CAAC,QAAQ;YAC9B,cAAc,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;SACzC,CAAA;IACL,CAAC;CACJ;AAjDD,gEAiDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BrowseTheWebWithPlaywright';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BrowseTheWebWithPlaywright"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/screenplay/abilities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C"}
|