Skip to content

Commit

Permalink
feat(roll): roll to ToT Playwright (13-06-24)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 13, 2024
1 parent fa36f9a commit 46f9da0
Show file tree
Hide file tree
Showing 20 changed files with 56 additions and 24 deletions.
2 changes: 1 addition & 1 deletion dotnet/docs/api/class-elementhandle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ Use locator-based [Locator.SetInputFilesAsync()](/api/class-locator.mdx#locator-
:::


Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files.
Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files. For inputs with a `[webkitdirectory]` attribute, only a single directory path is supported.

This method expects [ElementHandle] to point to an [input element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). However, if the element is inside the `<label>` element that has an associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), targets the control instead.

Expand Down
2 changes: 1 addition & 1 deletion dotnet/docs/api/class-locator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1980,7 +1980,7 @@ When all steps combined have not finished during the specified `timeout`, this m

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.14</font><x-search>locator.SetInputFilesAsync</x-search>

Upload file or multiple files into `<input type=file>`.
Upload file or multiple files into `<input type=file>`. For inputs with a `[webkitdirectory]` attribute, only a single directory path is supported.

**Usage**

Expand Down
2 changes: 1 addition & 1 deletion dotnet/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4387,7 +4387,7 @@ Use locator-based [Locator.SetInputFilesAsync()](/api/class-locator.mdx#locator-
:::


Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files.
Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files. For inputs with a `[webkitdirectory]` attribute, only a single directory path is supported.

This method expects `selector` to point to an [input element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). However, if the element is inside the `<label>` element that has an associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), targets the control instead.

Expand Down
2 changes: 1 addition & 1 deletion dotnet/docs/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ See our doc on [Running and Debugging Tests](./running-tests.mdx) to learn more
## System requirements
- Playwright is distributed as a .NET Standard 2.0 library. We recommend .NET 8.
- Windows 10+, Windows Server 2016+ or Windows Subsystem for Linux (WSL).
- MacOS 12 Monterey, MacOS 13 Ventura, or MacOS 14 Sonoma.
- macOS 13 Ventura, or macOS 14 Sonoma.
- Debian 11, Debian 12, Ubuntu 20.04 or Ubuntu 22.04, Ubuntu 24.04, on x86-64 and arm64 architecture.

## What's next
Expand Down
12 changes: 10 additions & 2 deletions dotnet/docs/trace-viewer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ In the Actions tab you can see what locator was used for every action and how lo

### Screenshots

When tracing with the `screenshots` option turned on, each trace records a screencast and renders it as a film strip. You can hover over the film strip to see a magnified image of for each action and state which helps you easily find the action you want to inspect.
When tracing with the `screenshots` option turned on (default), each trace records a screencast and renders it as a film strip. You can hover over the film strip to see a magnified image of for each action and state which helps you easily find the action you want to inspect.

Double click on an action to see the time range for that action. You can use the slider in the timeline to increase the actions selected and these will be shown in the Actions tab and all console logs and network logs will be filtered to only show the logs for the actions selected.

Expand All @@ -53,7 +53,7 @@ Notice how it highlights both, the DOM Node as well as the exact click position.

### Source

As you hover over each action of your test the line of code for that action is highlighted in the source panel.
When you click on an action in the sidebar, the line of code for that action is highlighted in the source panel.

![showing source code tab in trace viewer](https://github.com/microsoft/playwright/assets/13063165/daa8845d-c250-4923-aa7a-5d040da9adc5)

Expand Down Expand Up @@ -81,12 +81,20 @@ See console logs from the browser as well as from your test. Different icons are

![showing log of tests in trace viewer](https://github.com/microsoft/playwright/assets/13063165/4107c08d-1eaf-421c-bdd4-9dd2aa641d4a)

Double click on an action from your test in the actions sidebar. This will filter the console to only show the logs that were made during that action. Click the *Show all* button to see all console logs again.

Use the timeline to filter actions, by clicking a start point and dragging to an ending point. The console tab will also be filtered to only show the logs that were made during the actions selected.

### Network

The Network tab shows you all the network requests that were made during your test. You can sort by different types of requests, status code, method, request, content type, duration and size. Click on a request to see more information about it such as the request headers, response headers, request body and response body.

![network requests tab in trace viewer](https://github.com/microsoft/playwright/assets/13063165/0a3d1671-8ccd-4f7a-a844-35f5eb37f236)

Double click on an action from your test in the actions sidebar. This will filter the network requests to only show the requests that were made during that action. Click the *Show all* button to see all network requests again.

Use the timeline to filter actions, by clicking a start point and dragging to an ending point. The network tab will also be filtered to only show the network requests that were made during the actions selected.

### Metadata

Next to the Actions tab you will find the Metadata tab which will show you more information on your test such as the Browser, viewport size, test duration and more.
Expand Down
2 changes: 1 addition & 1 deletion java/docs/api/class-elementhandle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ Use locator-based [Locator.setInputFiles()](/api/class-locator.mdx#locator-set-i
:::


Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files.
Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files. For inputs with a `[webkitdirectory]` attribute, only a single directory path is supported.

This method expects [ElementHandle] to point to an [input element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). However, if the element is inside the `<label>` element that has an associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), targets the control instead.

Expand Down
2 changes: 1 addition & 1 deletion java/docs/api/class-locator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1983,7 +1983,7 @@ When all steps combined have not finished during the specified `timeout`, this m

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.14</font><x-search>locator.setInputFiles</x-search>

Upload file or multiple files into `<input type=file>`.
Upload file or multiple files into `<input type=file>`. For inputs with a `[webkitdirectory]` attribute, only a single directory path is supported.

**Usage**

Expand Down
2 changes: 1 addition & 1 deletion java/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4138,7 +4138,7 @@ Use locator-based [Locator.setInputFiles()](/api/class-locator.mdx#locator-set-i
:::


Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files.
Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files. For inputs with a `[webkitdirectory]` attribute, only a single directory path is supported.

This method expects `selector` to point to an [input element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). However, if the element is inside the `<label>` element that has an associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), targets the control instead.

Expand Down
2 changes: 1 addition & 1 deletion java/docs/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ By default browsers launched with Playwright run headless, meaning no browser UI
## System requirements
- Java 8 or higher.
- Windows 10+, Windows Server 2016+ or Windows Subsystem for Linux (WSL).
- MacOS 12 Monterey, MacOS 13 Ventura, or MacOS 14 Sonoma.
- macOS 13 Ventura, or macOS 14 Sonoma.
- Debian 11, Debian 12, Ubuntu 20.04 or Ubuntu 22.04, Ubuntu 24.04, on x86-64 and arm64 architecture.

## What's next
Expand Down
12 changes: 10 additions & 2 deletions java/docs/trace-viewer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ In the Actions tab you can see what locator was used for every action and how lo

### Screenshots

When tracing with the `screenshots` option turned on, each trace records a screencast and renders it as a film strip. You can hover over the film strip to see a magnified image of for each action and state which helps you easily find the action you want to inspect.
When tracing with the `screenshots` option turned on (default), each trace records a screencast and renders it as a film strip. You can hover over the film strip to see a magnified image of for each action and state which helps you easily find the action you want to inspect.

Double click on an action to see the time range for that action. You can use the slider in the timeline to increase the actions selected and these will be shown in the Actions tab and all console logs and network logs will be filtered to only show the logs for the actions selected.

Expand All @@ -53,7 +53,7 @@ Notice how it highlights both, the DOM Node as well as the exact click position.

### Source

As you hover over each action of your test the line of code for that action is highlighted in the source panel.
When you click on an action in the sidebar, the line of code for that action is highlighted in the source panel.

![showing source code tab in trace viewer](https://github.com/microsoft/playwright/assets/13063165/daa8845d-c250-4923-aa7a-5d040da9adc5)

Expand Down Expand Up @@ -81,12 +81,20 @@ See console logs from the browser as well as from your test. Different icons are

![showing log of tests in trace viewer](https://github.com/microsoft/playwright/assets/13063165/4107c08d-1eaf-421c-bdd4-9dd2aa641d4a)

Double click on an action from your test in the actions sidebar. This will filter the console to only show the logs that were made during that action. Click the *Show all* button to see all console logs again.

Use the timeline to filter actions, by clicking a start point and dragging to an ending point. The console tab will also be filtered to only show the logs that were made during the actions selected.

### Network

The Network tab shows you all the network requests that were made during your test. You can sort by different types of requests, status code, method, request, content type, duration and size. Click on a request to see more information about it such as the request headers, response headers, request body and response body.

![network requests tab in trace viewer](https://github.com/microsoft/playwright/assets/13063165/0a3d1671-8ccd-4f7a-a844-35f5eb37f236)

Double click on an action from your test in the actions sidebar. This will filter the network requests to only show the requests that were made during that action. Click the *Show all* button to see all network requests again.

Use the timeline to filter actions, by clicking a start point and dragging to an ending point. The network tab will also be filtered to only show the network requests that were made during the actions selected.

### Metadata

Next to the Actions tab you will find the Metadata tab which will show you more information on your test such as the Browser, viewport size, test duration and more.
Expand Down
2 changes: 1 addition & 1 deletion nodejs/docs/api/class-elementhandle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ Use locator-based [locator.setInputFiles()](/api/class-locator.mdx#locator-set-i
:::


Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files.
Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files. For inputs with a `[webkitdirectory]` attribute, only a single directory path is supported.

This method expects [ElementHandle] to point to an [input element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). However, if the element is inside the `<label>` element that has an associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), targets the control instead.

Expand Down
2 changes: 1 addition & 1 deletion nodejs/docs/api/class-locator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,7 @@ When all steps combined have not finished during the specified `timeout`, this m

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.14</font><x-search>locator.setInputFiles</x-search>

Upload file or multiple files into `<input type=file>`.
Upload file or multiple files into `<input type=file>`. For inputs with a `[webkitdirectory]` attribute, only a single directory path is supported.

**Usage**

Expand Down
2 changes: 1 addition & 1 deletion nodejs/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3901,7 +3901,7 @@ Use locator-based [locator.setInputFiles()](/api/class-locator.mdx#locator-set-i
:::


Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files.
Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files. For inputs with a `[webkitdirectory]` attribute, only a single directory path is supported.

This method expects `selector` to point to an [input element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). However, if the element is inside the `<label>` element that has an associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), targets the control instead.

Expand Down
2 changes: 1 addition & 1 deletion nodejs/docs/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ pnpm exec playwright --version
## System requirements
- Node.js 18+
- Windows 10+, Windows Server 2016+ or Windows Subsystem for Linux (WSL).
- MacOS 12 Monterey, MacOS 13 Ventura, or MacOS 14 Sonoma.
- macOS 13 Ventura, or macOS 14 Sonoma.
- Debian 11, Debian 12, Ubuntu 20.04 or Ubuntu 22.04, Ubuntu 24.04, on x86-64 and arm64 architecture.

## What's next
Expand Down
12 changes: 10 additions & 2 deletions nodejs/docs/trace-viewer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ In the Actions tab you can see what locator was used for every action and how lo

### Screenshots

When tracing with the `screenshots` option turned on, each trace records a screencast and renders it as a film strip. You can hover over the film strip to see a magnified image of for each action and state which helps you easily find the action you want to inspect.
When tracing with the `screenshots` option turned on (default), each trace records a screencast and renders it as a film strip. You can hover over the film strip to see a magnified image of for each action and state which helps you easily find the action you want to inspect.

Double click on an action to see the time range for that action. You can use the slider in the timeline to increase the actions selected and these will be shown in the Actions tab and all console logs and network logs will be filtered to only show the logs for the actions selected.

Expand All @@ -56,7 +56,7 @@ Notice how it highlights both, the DOM Node as well as the exact click position.

### Source

As you hover over each action of your test the line of code for that action is highlighted in the source panel.
When you click on an action in the sidebar, the line of code for that action is highlighted in the source panel.

![showing source code tab in trace viewer](https://github.com/microsoft/playwright/assets/13063165/daa8845d-c250-4923-aa7a-5d040da9adc5)

Expand Down Expand Up @@ -84,12 +84,20 @@ See console logs from the browser as well as from your test. Different icons are

![showing log of tests in trace viewer](https://github.com/microsoft/playwright/assets/13063165/4107c08d-1eaf-421c-bdd4-9dd2aa641d4a)

Double click on an action from your test in the actions sidebar. This will filter the console to only show the logs that were made during that action. Click the *Show all* button to see all console logs again.

Use the timeline to filter actions, by clicking a start point and dragging to an ending point. The console tab will also be filtered to only show the logs that were made during the actions selected.

### Network

The Network tab shows you all the network requests that were made during your test. You can sort by different types of requests, status code, method, request, content type, duration and size. Click on a request to see more information about it such as the request headers, response headers, request body and response body.

![network requests tab in trace viewer](https://github.com/microsoft/playwright/assets/13063165/0a3d1671-8ccd-4f7a-a844-35f5eb37f236)

Double click on an action from your test in the actions sidebar. This will filter the network requests to only show the requests that were made during that action. Click the *Show all* button to see all network requests again.

Use the timeline to filter actions, by clicking a start point and dragging to an ending point. The network tab will also be filtered to only show the network requests that were made during the actions selected.

### Metadata

Next to the Actions tab you will find the Metadata tab which will show you more information on your test such as the Browser, viewport size, test duration and more.
Expand Down
2 changes: 1 addition & 1 deletion python/docs/api/class-elementhandle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,7 @@ Use locator-based [locator.set_input_files()](/api/class-locator.mdx#locator-set
:::


Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files.
Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they are resolved relative to the current working directory. For empty array, clears the selected files. For inputs with a `[webkitdirectory]` attribute, only a single directory path is supported.

This method expects [ElementHandle] to point to an [input element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). However, if the element is inside the `<label>` element that has an associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), targets the control instead.

Expand Down
2 changes: 1 addition & 1 deletion python/docs/api/class-locator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2751,7 +2751,7 @@ When all steps combined have not finished during the specified `timeout`, this m

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.14</font><x-search>locator.set_input_files</x-search>

Upload file or multiple files into `<input type=file>`.
Upload file or multiple files into `<input type=file>`. For inputs with a `[webkitdirectory]` attribute, only a single directory path is supported.

**Usage**

Expand Down
Loading

0 comments on commit 46f9da0

Please sign in to comment.