Skip to content

Commit dee8d6f

Browse files
feat(roll): roll Playwright to 1.11.0-1620331022000 (#664)
1 parent bd7eff6 commit dee8d6f

File tree

7 files changed

+228
-102
lines changed

7 files changed

+228
-102
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,19 +145,19 @@ jobs:
145145
- name: Install ffmpeg
146146
run: python -m playwright install ffmpeg
147147
- name: Common Tests
148-
run: pytest -vv tests/common --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
148+
run: pytest tests/common --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
149149
- name: Test Sync API
150150
if: matrix.os != 'ubuntu-latest'
151-
run: pytest -vv tests/sync --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
151+
run: pytest tests/sync --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
152152
- name: Test Sync API
153153
if: matrix.os == 'ubuntu-latest'
154-
run: xvfb-run pytest -vv tests/sync --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
154+
run: xvfb-run pytest tests/sync --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
155155
- name: Test Async API
156156
if: matrix.os != 'ubuntu-latest'
157-
run: pytest -vv tests/async --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
157+
run: pytest tests/async --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
158158
- name: Test Async API
159159
if: matrix.os == 'ubuntu-latest'
160-
run: xvfb-run pytest -vv tests/async --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
160+
run: xvfb-run pytest tests/async --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
161161
- uses: actions/upload-artifact@v2
162162
if: failure()
163163
with:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Playwright is a Python library to automate [Chromium](https://www.chromium.org/H
66

77
| | Linux | macOS | Windows |
88
| :--- | :---: | :---: | :---: |
9-
| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> ||||
9+
| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> ||||
1010
| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> ||||
11-
| Firefox <!-- GEN:firefox-version -->89.0b2<!-- GEN:stop --> ||||
11+
| Firefox <!-- GEN:firefox-version -->89.0b6<!-- GEN:stop --> ||||
1212

1313
Headless execution is supported for all browsers on all platforms.
1414

playwright/async_api/_generated.py

Lines changed: 52 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,12 +1669,16 @@ async def select_option(
16691669
) -> typing.List[str]:
16701670
"""ElementHandle.select_option
16711671
1672-
Returns the array of option values that have been successfully selected.
1672+
This method waits for [actionability](./actionability.md) checks, waits until all specified options are present in the
1673+
`<select>` element and selects these options.
1674+
1675+
If the target element is not a `<select>` element, this method throws an error. However, if the element is inside the
1676+
`<label>` element that has an associated
1677+
[control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used instead.
16731678
1674-
Triggers a `change` and `input` event once all the provided options have been selected. If element is not a `<select>`
1675-
element, the method throws an error.
1679+
Returns the array of option values that have been successfully selected.
16761680
1677-
Will wait until all specified options are present in the `<select>` element.
1681+
Triggers a `change` and `input` event once all the provided options have been selected.
16781682
16791683
```py
16801684
# single selection matching the value
@@ -1793,10 +1797,14 @@ async def fill(
17931797
"""ElementHandle.fill
17941798
17951799
This method waits for [actionability](./actionability.md) checks, focuses the element, fills it and triggers an `input`
1796-
event after filling. If the element is inside the `<label>` element that has associated
1797-
[control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), that control will be filled
1798-
instead. If the element to be filled is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method
1799-
throws an error. Note that you can pass an empty string to clear the input field.
1800+
event after filling. Note that you can pass an empty string to clear the input field.
1801+
1802+
If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error.
1803+
However, if the element is inside the `<label>` element that has an associated
1804+
[control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled
1805+
instead.
1806+
1807+
To send fine-grained keyboard events, use `element_handle.type()`.
18001808
18011809
Parameters
18021810
----------
@@ -3777,10 +3785,13 @@ async def fill(
37773785
"""Frame.fill
37783786
37793787
This method waits for an element matching `selector`, waits for [actionability](./actionability.md) checks, focuses the
3780-
element, fills it and triggers an `input` event after filling. If the element is inside the `<label>` element that has
3781-
associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), that control will be
3782-
filled instead. If the element to be filled is not an `<input>`, `<textarea>` or `[contenteditable]` element, this
3783-
method throws an error. Note that you can pass an empty string to clear the input field.
3788+
element, fills it and triggers an `input` event after filling. Note that you can pass an empty string to clear the input
3789+
field.
3790+
3791+
If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error.
3792+
However, if the element is inside the `<label>` element that has an associated
3793+
[control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled
3794+
instead.
37843795
37853796
To send fine-grained keyboard events, use `frame.type()`.
37863797
@@ -4019,12 +4030,16 @@ async def select_option(
40194030
) -> typing.List[str]:
40204031
"""Frame.select_option
40214032
4022-
Returns the array of option values that have been successfully selected.
4033+
This method waits for an element matching `selector`, waits for [actionability](./actionability.md) checks, waits until
4034+
all specified options are present in the `<select>` element and selects these options.
40234035
4024-
Triggers a `change` and `input` event once all the provided options have been selected. If there's no `<select>` element
4025-
matching `selector`, the method throws an error.
4036+
If the target element is not a `<select>` element, this method throws an error. However, if the element is inside the
4037+
`<label>` element that has an associated
4038+
[control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used instead.
40264039
4027-
Will wait until all specified options are present in the `<select>` element.
4040+
Returns the array of option values that have been successfully selected.
4041+
4042+
Triggers a `change` and `input` event once all the provided options have been selected.
40284043
40294044
```py
40304045
# single selection matching the value
@@ -4628,6 +4643,8 @@ def type(self) -> str:
46284643
def text(self) -> str:
46294644
"""ConsoleMessage.text
46304645
4646+
The text of the console message.
4647+
46314648
Returns
46324649
-------
46334650
str
@@ -4638,6 +4655,8 @@ def text(self) -> str:
46384655
def args(self) -> typing.List["JSHandle"]:
46394656
"""ConsoleMessage.args
46404657
4658+
List of arguments passed to a `console` function call. See also `page.on('console')`.
4659+
46414660
Returns
46424661
-------
46434662
List[JSHandle]
@@ -6800,14 +6819,17 @@ async def fill(
68006819
"""Page.fill
68016820
68026821
This method waits for an element matching `selector`, waits for [actionability](./actionability.md) checks, focuses the
6803-
element, fills it and triggers an `input` event after filling. If the element is inside the `<label>` element that has
6804-
associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), that control will be
6805-
filled instead. If the element to be filled is not an `<input>`, `<textarea>` or `[contenteditable]` element, this
6806-
method throws an error. Note that you can pass an empty string to clear the input field.
6822+
element, fills it and triggers an `input` event after filling. Note that you can pass an empty string to clear the input
6823+
field.
6824+
6825+
If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error.
6826+
However, if the element is inside the `<label>` element that has an associated
6827+
[control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled
6828+
instead.
68076829
68086830
To send fine-grained keyboard events, use `page.type()`.
68096831
6810-
Shortcut for main frame's `frame.fill()`
6832+
Shortcut for main frame's `frame.fill()`.
68116833
68126834
Parameters
68136835
----------
@@ -7048,12 +7070,16 @@ async def select_option(
70487070
) -> typing.List[str]:
70497071
"""Page.select_option
70507072
7051-
Returns the array of option values that have been successfully selected.
7073+
This method waits for an element matching `selector`, waits for [actionability](./actionability.md) checks, waits until
7074+
all specified options are present in the `<select>` element and selects these options.
7075+
7076+
If the target element is not a `<select>` element, this method throws an error. However, if the element is inside the
7077+
`<label>` element that has an associated
7078+
[control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used instead.
70527079
7053-
Triggers a `change` and `input` event once all the provided options have been selected. If there's no `<select>` element
7054-
matching `selector`, the method throws an error.
7080+
Returns the array of option values that have been successfully selected.
70557081
7056-
Will wait until all specified options are present in the `<select>` element.
7082+
Triggers a `change` and `input` event once all the provided options have been selected.
70577083
70587084
```py
70597085
# single selection matching the value
@@ -7064,7 +7090,7 @@ async def select_option(
70647090
await page.select_option(\"select#colors\", value=[\"red\", \"green\", \"blue\"])
70657091
```
70667092
7067-
Shortcut for main frame's `frame.select_option()`
7093+
Shortcut for main frame's `frame.select_option()`.
70687094
70697095
Parameters
70707096
----------

playwright/sync_api/_generated.py

Lines changed: 52 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,12 +1647,16 @@ def select_option(
16471647
) -> typing.List[str]:
16481648
"""ElementHandle.select_option
16491649
1650-
Returns the array of option values that have been successfully selected.
1650+
This method waits for [actionability](./actionability.md) checks, waits until all specified options are present in the
1651+
`<select>` element and selects these options.
1652+
1653+
If the target element is not a `<select>` element, this method throws an error. However, if the element is inside the
1654+
`<label>` element that has an associated
1655+
[control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used instead.
16511656
1652-
Triggers a `change` and `input` event once all the provided options have been selected. If element is not a `<select>`
1653-
element, the method throws an error.
1657+
Returns the array of option values that have been successfully selected.
16541658
1655-
Will wait until all specified options are present in the `<select>` element.
1659+
Triggers a `change` and `input` event once all the provided options have been selected.
16561660
16571661
```py
16581662
# single selection matching the value
@@ -1782,10 +1786,14 @@ def fill(
17821786
"""ElementHandle.fill
17831787
17841788
This method waits for [actionability](./actionability.md) checks, focuses the element, fills it and triggers an `input`
1785-
event after filling. If the element is inside the `<label>` element that has associated
1786-
[control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), that control will be filled
1787-
instead. If the element to be filled is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method
1788-
throws an error. Note that you can pass an empty string to clear the input field.
1789+
event after filling. Note that you can pass an empty string to clear the input field.
1790+
1791+
If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error.
1792+
However, if the element is inside the `<label>` element that has an associated
1793+
[control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled
1794+
instead.
1795+
1796+
To send fine-grained keyboard events, use `element_handle.type()`.
17891797
17901798
Parameters
17911799
----------
@@ -3759,10 +3767,13 @@ def fill(
37593767
"""Frame.fill
37603768
37613769
This method waits for an element matching `selector`, waits for [actionability](./actionability.md) checks, focuses the
3762-
element, fills it and triggers an `input` event after filling. If the element is inside the `<label>` element that has
3763-
associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), that control will be
3764-
filled instead. If the element to be filled is not an `<input>`, `<textarea>` or `[contenteditable]` element, this
3765-
method throws an error. Note that you can pass an empty string to clear the input field.
3770+
element, fills it and triggers an `input` event after filling. Note that you can pass an empty string to clear the input
3771+
field.
3772+
3773+
If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error.
3774+
However, if the element is inside the `<label>` element that has an associated
3775+
[control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled
3776+
instead.
37663777
37673778
To send fine-grained keyboard events, use `frame.type()`.
37683779
@@ -4001,12 +4012,16 @@ def select_option(
40014012
) -> typing.List[str]:
40024013
"""Frame.select_option
40034014
4004-
Returns the array of option values that have been successfully selected.
4015+
This method waits for an element matching `selector`, waits for [actionability](./actionability.md) checks, waits until
4016+
all specified options are present in the `<select>` element and selects these options.
40054017
4006-
Triggers a `change` and `input` event once all the provided options have been selected. If there's no `<select>` element
4007-
matching `selector`, the method throws an error.
4018+
If the target element is not a `<select>` element, this method throws an error. However, if the element is inside the
4019+
`<label>` element that has an associated
4020+
[control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used instead.
40084021
4009-
Will wait until all specified options are present in the `<select>` element.
4022+
Returns the array of option values that have been successfully selected.
4023+
4024+
Triggers a `change` and `input` event once all the provided options have been selected.
40104025
40114026
```py
40124027
# single selection matching the value
@@ -4605,6 +4620,8 @@ def type(self) -> str:
46054620
def text(self) -> str:
46064621
"""ConsoleMessage.text
46074622
4623+
The text of the console message.
4624+
46084625
Returns
46094626
-------
46104627
str
@@ -4615,6 +4632,8 @@ def text(self) -> str:
46154632
def args(self) -> typing.List["JSHandle"]:
46164633
"""ConsoleMessage.args
46174634
4635+
List of arguments passed to a `console` function call. See also `page.on('console')`.
4636+
46184637
Returns
46194638
-------
46204639
List[JSHandle]
@@ -6759,14 +6778,17 @@ def fill(
67596778
"""Page.fill
67606779
67616780
This method waits for an element matching `selector`, waits for [actionability](./actionability.md) checks, focuses the
6762-
element, fills it and triggers an `input` event after filling. If the element is inside the `<label>` element that has
6763-
associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), that control will be
6764-
filled instead. If the element to be filled is not an `<input>`, `<textarea>` or `[contenteditable]` element, this
6765-
method throws an error. Note that you can pass an empty string to clear the input field.
6781+
element, fills it and triggers an `input` event after filling. Note that you can pass an empty string to clear the input
6782+
field.
6783+
6784+
If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error.
6785+
However, if the element is inside the `<label>` element that has an associated
6786+
[control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled
6787+
instead.
67666788
67676789
To send fine-grained keyboard events, use `page.type()`.
67686790
6769-
Shortcut for main frame's `frame.fill()`
6791+
Shortcut for main frame's `frame.fill()`.
67706792
67716793
Parameters
67726794
----------
@@ -7007,12 +7029,16 @@ def select_option(
70077029
) -> typing.List[str]:
70087030
"""Page.select_option
70097031
7010-
Returns the array of option values that have been successfully selected.
7032+
This method waits for an element matching `selector`, waits for [actionability](./actionability.md) checks, waits until
7033+
all specified options are present in the `<select>` element and selects these options.
7034+
7035+
If the target element is not a `<select>` element, this method throws an error. However, if the element is inside the
7036+
`<label>` element that has an associated
7037+
[control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used instead.
70117038
7012-
Triggers a `change` and `input` event once all the provided options have been selected. If there's no `<select>` element
7013-
matching `selector`, the method throws an error.
7039+
Returns the array of option values that have been successfully selected.
70147040
7015-
Will wait until all specified options are present in the `<select>` element.
7041+
Triggers a `change` and `input` event once all the provided options have been selected.
70167042
70177043
```py
70187044
# single selection matching the value
@@ -7023,7 +7049,7 @@ def select_option(
70237049
page.select_option(\"select#colors\", value=[\"red\", \"green\", \"blue\"])
70247050
```
70257051
7026-
Shortcut for main frame's `frame.select_option()`
7052+
Shortcut for main frame's `frame.select_option()`.
70277053
70287054
Parameters
70297055
----------

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.11.0-next-1620085974000"
31+
driver_version = "1.11.0-1620331022000"
3232

3333

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

0 commit comments

Comments
 (0)