You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dotnet/docs/docker.mdx
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,24 @@ This makes `hostmachine` point to the host's localhost. Your tests should use `h
109
109
When running tests remotely, ensure the Playwright version in your tests matches the version running in the Docker container.
110
110
:::
111
111
112
+
### Connecting using noVNC and GitHub Codespaces
113
+
114
+
For Docker and GitHub Codespaces environments, you can view and generate tests using the `noVNC` viewer built into the Docker image. In order for the VNC webviewer to be accessible outside of the container, you can enable the `desktop-lite` feature and specify the `webPort` in your `.devcontainer/devcontainer.json` file:
115
+
116
+
```json
117
+
{
118
+
"image": "mcr.microsoft.com/playwright:v1.57.0",
119
+
"forwardPorts": [6080],
120
+
"features": {
121
+
"desktop-lite": {
122
+
"webPort": "6080"
123
+
}
124
+
}
125
+
}
126
+
```
127
+
128
+
Once this is enabled you can open the port specified in a new browser tab and you will have access to the `noVNC` web viewer. This will enable you to record tests, pick selectors, and use codegen directly on your container.
Copy file name to clipboardExpand all lines: java/docs/docker.mdx
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,24 @@ This makes `hostmachine` point to the host's localhost. Your tests should use `h
117
117
When running tests remotely, ensure the Playwright version in your tests matches the version running in the Docker container.
118
118
:::
119
119
120
+
### Connecting using noVNC and GitHub Codespaces
121
+
122
+
For Docker and GitHub Codespaces environments, you can view and generate tests using the `noVNC` viewer built into the Docker image. In order for the VNC webviewer to be accessible outside of the container, you can enable the `desktop-lite` feature and specify the `webPort` in your `.devcontainer/devcontainer.json` file:
123
+
124
+
```json
125
+
{
126
+
"image": "mcr.microsoft.com/playwright:v1.57.0",
127
+
"forwardPorts": [6080],
128
+
"features": {
129
+
"desktop-lite": {
130
+
"webPort": "6080"
131
+
}
132
+
}
133
+
}
134
+
```
135
+
136
+
Once this is enabled you can open the port specified in a new browser tab and you will have access to the `noVNC` web viewer. This will enable you to record tests, pick selectors, and use codegen directly on your container.
When using [page.goto()](/api/class-page.mdx#page-goto), [page.route()](/api/class-page.mdx#page-route), [page.waitForURL()](/api/class-page.mdx#page-wait-for-url), [page.waitForRequest()](/api/class-page.mdx#page-wait-for-request), or [page.waitForResponse()](/api/class-page.mdx#page-wait-for-response) it takes the base URL in consideration by using the [`URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor for building the corresponding URL. Unset by default. Examples:
All the agentic actions are converted to the Playwright calls and are cached. By default, they are cached globally with the `task` as a key. This option allows controlling the cache key explicitly.
Copy file name to clipboardExpand all lines: nodejs/docs/docker.mdx
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,24 @@ This makes `hostmachine` point to the host's localhost. Your tests should use `h
115
115
When running tests remotely, ensure the Playwright version in your tests matches the version running in the Docker container.
116
116
:::
117
117
118
+
### Connecting using noVNC and GitHub Codespaces
119
+
120
+
For Docker and GitHub Codespaces environments, you can view and generate tests using the `noVNC` viewer built into the Docker image. In order for the VNC webviewer to be accessible outside of the container, you can enable the `desktop-lite` feature and specify the `webPort` in your `.devcontainer/devcontainer.json` file:
121
+
122
+
```json
123
+
{
124
+
"image": "mcr.microsoft.com/playwright:v1.57.0",
125
+
"forwardPorts": [6080],
126
+
"features": {
127
+
"desktop-lite": {
128
+
"webPort": "6080"
129
+
}
130
+
}
131
+
}
132
+
```
133
+
134
+
Once this is enabled you can open the port specified in a new browser tab and you will have access to the `noVNC` web viewer. This will enable you to record tests, pick selectors, and use codegen directly on your container.
Copy file name to clipboardExpand all lines: nodejs/docs/test-ui-mode.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,7 @@ npx playwright test --ui-port=8080 --ui-host=0.0.0.0
127
127
```
128
128
129
129
:::note
130
-
Be aware that when specifying the `--ui-host=0.0.0.0` flag, UI Mode with your traces, the passwords and secrets is accessible from other machines inside your network. In the case of GitHub Codespaces, the ports are only accessible from your account by default.
130
+
Be aware that when specifying the `--ui-host=0.0.0.0` flag, UI Mode with your traces, the passwords and secrets are accessible from other machines inside your network. In the case of GitHub Codespaces, the ports are only accessible from your account by default.
0 commit comments