Skip to content

Commit a385b00

Browse files
authored
feat(roll): roll Playwright 1.16.0-next-1632717011000 (#919)
1 parent 2bd77c7 commit a385b00

File tree

8 files changed

+44
-28
lines changed

8 files changed

+44
-28
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Playwright is a Python library to automate [Chromium](https://www.chromium.org/H
44

55
| | Linux | macOS | Windows |
66
| :--- | :---: | :---: | :---: |
7-
| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> ||||
7+
| Chromium <!-- GEN:chromium-version -->96.0.4652.0<!-- GEN:stop --> ||||
88
| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> ||||
99
| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> ||||
1010

playwright/_impl/_frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ async def uncheck(
634634
await self._channel.send("uncheck", locals_to_params(locals()))
635635

636636
async def wait_for_timeout(self, timeout: float) -> None:
637-
await self._connection._loop.create_task(asyncio.sleep(timeout / 1000))
637+
await self._channel.send("waitForTimeout", locals_to_params(locals()))
638638

639639
async def wait_for_function(
640640
self,

playwright/async_api/_generated.py

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3104,7 +3104,9 @@ def expect_navigation(
31043104
Parameters
31053105
----------
31063106
url : Union[Callable[[str], bool], Pattern, str, NoneType]
3107-
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
3107+
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
3108+
parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
3109+
the string.
31083110
wait_until : Union["domcontentloaded", "load", "networkidle", NoneType]
31093111
When to consider operation succeeded, defaults to `load`. Events can be either:
31103112
- `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
@@ -3146,7 +3148,9 @@ async def wait_for_url(
31463148
Parameters
31473149
----------
31483150
url : Union[Callable[[str], bool], Pattern, str]
3149-
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
3151+
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
3152+
parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
3153+
the string.
31503154
wait_until : Union["domcontentloaded", "load", "networkidle", NoneType]
31513155
When to consider operation succeeded, defaults to `load`. Events can be either:
31523156
- `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
@@ -7430,7 +7434,9 @@ async def wait_for_url(
74307434
Parameters
74317435
----------
74327436
url : Union[Callable[[str], bool], Pattern, str]
7433-
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
7437+
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
7438+
parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
7439+
the string.
74347440
wait_until : Union["domcontentloaded", "load", "networkidle", NoneType]
74357441
When to consider operation succeeded, defaults to `load`. Events can be either:
74367442
- `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
@@ -9398,7 +9404,9 @@ def expect_navigation(
93989404
Parameters
93999405
----------
94009406
url : Union[Callable[[str], bool], Pattern, str, NoneType]
9401-
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
9407+
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
9408+
parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
9409+
the string.
94029410
wait_until : Union["domcontentloaded", "load", "networkidle", NoneType]
94039411
When to consider operation succeeded, defaults to `load`. Events can be either:
94049412
- `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
@@ -10872,7 +10880,7 @@ async def new_context(
1087210880
no_viewport : Union[bool, NoneType]
1087310881
Does not enforce fixed viewport, allows resizing window in the headed mode.
1087410882
ignore_https_errors : Union[bool, NoneType]
10875-
Whether to ignore HTTPS errors during navigation. Defaults to `false`.
10883+
Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
1087610884
java_script_enabled : Union[bool, NoneType]
1087710885
Whether or not to enable JavaScript in the context. Defaults to `true`.
1087810886
bypass_csp : Union[bool, NoneType]
@@ -10891,7 +10899,7 @@ async def new_context(
1089110899
A list of permissions to grant to all pages in this context. See `browser_context.grant_permissions()` for more
1089210900
details.
1089310901
extra_http_headers : Union[Dict[str, str], NoneType]
10894-
An object containing additional HTTP headers to be sent with every request. All header values must be strings.
10902+
An object containing additional HTTP headers to be sent with every request.
1089510903
offline : Union[bool, NoneType]
1089610904
Whether to emulate network being offline. Defaults to `false`.
1089710905
http_credentials : Union[{username: str, password: str}, NoneType]
@@ -11046,7 +11054,7 @@ async def new_page(
1104611054
no_viewport : Union[bool, NoneType]
1104711055
Does not enforce fixed viewport, allows resizing window in the headed mode.
1104811056
ignore_https_errors : Union[bool, NoneType]
11049-
Whether to ignore HTTPS errors during navigation. Defaults to `false`.
11057+
Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
1105011058
java_script_enabled : Union[bool, NoneType]
1105111059
Whether or not to enable JavaScript in the context. Defaults to `true`.
1105211060
bypass_csp : Union[bool, NoneType]
@@ -11065,7 +11073,7 @@ async def new_page(
1106511073
A list of permissions to grant to all pages in this context. See `browser_context.grant_permissions()` for more
1106611074
details.
1106711075
extra_http_headers : Union[Dict[str, str], NoneType]
11068-
An object containing additional HTTP headers to be sent with every request. All header values must be strings.
11076+
An object containing additional HTTP headers to be sent with every request.
1106911077
offline : Union[bool, NoneType]
1107011078
Whether to emulate network being offline. Defaults to `false`.
1107111079
http_credentials : Union[{username: str, password: str}, NoneType]
@@ -11539,7 +11547,7 @@ async def launch_persistent_context(
1153911547
no_viewport : Union[bool, NoneType]
1154011548
Does not enforce fixed viewport, allows resizing window in the headed mode.
1154111549
ignore_https_errors : Union[bool, NoneType]
11542-
Whether to ignore HTTPS errors during navigation. Defaults to `false`.
11550+
Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
1154311551
java_script_enabled : Union[bool, NoneType]
1154411552
Whether or not to enable JavaScript in the context. Defaults to `true`.
1154511553
bypass_csp : Union[bool, NoneType]
@@ -11558,7 +11566,7 @@ async def launch_persistent_context(
1155811566
A list of permissions to grant to all pages in this context. See `browser_context.grant_permissions()` for more
1155911567
details.
1156011568
extra_http_headers : Union[Dict[str, str], NoneType]
11561-
An object containing additional HTTP headers to be sent with every request. All header values must be strings.
11569+
An object containing additional HTTP headers to be sent with every request.
1156211570
offline : Union[bool, NoneType]
1156311571
Whether to emulate network being offline. Defaults to `false`.
1156411572
http_credentials : Union[{username: str, password: str}, NoneType]

playwright/sync_api/_generated.py

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3053,7 +3053,9 @@ def expect_navigation(
30533053
Parameters
30543054
----------
30553055
url : Union[Callable[[str], bool], Pattern, str, NoneType]
3056-
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
3056+
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
3057+
parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
3058+
the string.
30573059
wait_until : Union["domcontentloaded", "load", "networkidle", NoneType]
30583060
When to consider operation succeeded, defaults to `load`. Events can be either:
30593061
- `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
@@ -3095,7 +3097,9 @@ def wait_for_url(
30953097
Parameters
30963098
----------
30973099
url : Union[Callable[[str], bool], Pattern, str]
3098-
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
3100+
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
3101+
parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
3102+
the string.
30993103
wait_until : Union["domcontentloaded", "load", "networkidle", NoneType]
31003104
When to consider operation succeeded, defaults to `load`. Events can be either:
31013105
- `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
@@ -7246,7 +7250,9 @@ def wait_for_url(
72467250
Parameters
72477251
----------
72487252
url : Union[Callable[[str], bool], Pattern, str]
7249-
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
7253+
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
7254+
parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
7255+
the string.
72507256
wait_until : Union["domcontentloaded", "load", "networkidle", NoneType]
72517257
When to consider operation succeeded, defaults to `load`. Events can be either:
72527258
- `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
@@ -9206,7 +9212,9 @@ def expect_navigation(
92069212
Parameters
92079213
----------
92089214
url : Union[Callable[[str], bool], Pattern, str, NoneType]
9209-
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
9215+
A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
9216+
parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
9217+
the string.
92109218
wait_until : Union["domcontentloaded", "load", "networkidle", NoneType]
92119219
When to consider operation succeeded, defaults to `load`. Events can be either:
92129220
- `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
@@ -10619,7 +10627,7 @@ def new_context(
1061910627
no_viewport : Union[bool, NoneType]
1062010628
Does not enforce fixed viewport, allows resizing window in the headed mode.
1062110629
ignore_https_errors : Union[bool, NoneType]
10622-
Whether to ignore HTTPS errors during navigation. Defaults to `false`.
10630+
Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
1062310631
java_script_enabled : Union[bool, NoneType]
1062410632
Whether or not to enable JavaScript in the context. Defaults to `true`.
1062510633
bypass_csp : Union[bool, NoneType]
@@ -10638,7 +10646,7 @@ def new_context(
1063810646
A list of permissions to grant to all pages in this context. See `browser_context.grant_permissions()` for more
1063910647
details.
1064010648
extra_http_headers : Union[Dict[str, str], NoneType]
10641-
An object containing additional HTTP headers to be sent with every request. All header values must be strings.
10649+
An object containing additional HTTP headers to be sent with every request.
1064210650
offline : Union[bool, NoneType]
1064310651
Whether to emulate network being offline. Defaults to `false`.
1064410652
http_credentials : Union[{username: str, password: str}, NoneType]
@@ -10793,7 +10801,7 @@ def new_page(
1079310801
no_viewport : Union[bool, NoneType]
1079410802
Does not enforce fixed viewport, allows resizing window in the headed mode.
1079510803
ignore_https_errors : Union[bool, NoneType]
10796-
Whether to ignore HTTPS errors during navigation. Defaults to `false`.
10804+
Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
1079710805
java_script_enabled : Union[bool, NoneType]
1079810806
Whether or not to enable JavaScript in the context. Defaults to `true`.
1079910807
bypass_csp : Union[bool, NoneType]
@@ -10812,7 +10820,7 @@ def new_page(
1081210820
A list of permissions to grant to all pages in this context. See `browser_context.grant_permissions()` for more
1081310821
details.
1081410822
extra_http_headers : Union[Dict[str, str], NoneType]
10815-
An object containing additional HTTP headers to be sent with every request. All header values must be strings.
10823+
An object containing additional HTTP headers to be sent with every request.
1081610824
offline : Union[bool, NoneType]
1081710825
Whether to emulate network being offline. Defaults to `false`.
1081810826
http_credentials : Union[{username: str, password: str}, NoneType]
@@ -11286,7 +11294,7 @@ def launch_persistent_context(
1128611294
no_viewport : Union[bool, NoneType]
1128711295
Does not enforce fixed viewport, allows resizing window in the headed mode.
1128811296
ignore_https_errors : Union[bool, NoneType]
11289-
Whether to ignore HTTPS errors during navigation. Defaults to `false`.
11297+
Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
1129011298
java_script_enabled : Union[bool, NoneType]
1129111299
Whether or not to enable JavaScript in the context. Defaults to `true`.
1129211300
bypass_csp : Union[bool, NoneType]
@@ -11305,7 +11313,7 @@ def launch_persistent_context(
1130511313
A list of permissions to grant to all pages in this context. See `browser_context.grant_permissions()` for more
1130611314
details.
1130711315
extra_http_headers : Union[Dict[str, str], NoneType]
11308-
An object containing additional HTTP headers to be sent with every request. All header values must be strings.
11316+
An object containing additional HTTP headers to be sent with every request.
1130911317
offline : Union[bool, NoneType]
1131011318
Whether to emulate network being offline. Defaults to `false`.
1131111319
http_credentials : Union[{username: str, password: str}, NoneType]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
InWheel = None
2929
from wheel.bdist_wheel import bdist_wheel as BDistWheelCommand
3030

31-
driver_version = "1.16.0-next-1631799458000"
31+
driver_version = "1.16.0-next-1632717011000"
3232

3333

3434
def extractall(zip: zipfile.ZipFile, path: str) -> None:

tests/async/test_element_handle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,12 +551,12 @@ async def test_inner_text_should_throw(page, server):
551551
await page.set_content("<svg>text</svg>")
552552
with pytest.raises(Error) as exc_info1:
553553
await page.inner_text("svg")
554-
assert "Not an HTMLElement" in exc_info1.value.message
554+
assert " Node is not an HTMLElement" in exc_info1.value.message
555555

556556
handle = await page.query_selector("svg")
557557
with pytest.raises(Error) as exc_info2:
558558
await handle.inner_text()
559-
assert "Not an HTMLElement" in exc_info2.value.message
559+
assert " Node is not an HTMLElement" in exc_info2.value.message
560560

561561

562562
async def test_text_content(page, server):

tests/async/test_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ async def test_select_option_should_throw_when_element_is_not_a__select_(page, s
845845
await page.goto(server.PREFIX + "/input/select.html")
846846
with pytest.raises(Error) as exc_info:
847847
await page.select_option("body", "")
848-
assert "Element is not a <select> element." in exc_info.value.message
848+
assert "Element is not a <select> element" in exc_info.value.message
849849

850850

851851
async def test_select_option_should_return_on_no_matched_values(page, server):

tests/sync/test_element_handle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,13 +511,13 @@ def test_inner_text_should_throw(page: Page) -> None:
511511
page.set_content("<svg>text</svg>")
512512
with pytest.raises(Error) as exc_info1:
513513
page.inner_text("svg")
514-
assert "Not an HTMLElement" in exc_info1.value.message
514+
assert " Node is not an HTMLElement" in exc_info1.value.message
515515

516516
handle = page.query_selector("svg")
517517
assert handle
518518
with pytest.raises(Error) as exc_info2:
519519
handle.inner_text()
520-
assert "Not an HTMLElement" in exc_info2.value.message
520+
assert " Node is not an HTMLElement" in exc_info2.value.message
521521

522522

523523
def test_text_content(page: Page, server: Server) -> None:

0 commit comments

Comments
 (0)