Comments (7)
@mxschmitt What if remote supports headed mode, e.g. X11 forwarding? Would browser-related tasks work then?
from playwright-vscode.
Just to clarify, there are as of today multiple ways of using a VSCode extension:
- Container -> debug is not supported
- SSH -> debug is not supported
- WSL -> fully supported
- normal / host -> fully supported
In your scenario you are using containers, where debug is not supported. Why? Because when you debug, it will launch a headed browser, for that you need a GUI to see the browser and the playwright inspector, which you don't have in the container OR you can't control inside the container. Its kinda related to this one microsoft/playwright#16961 but debugging in headless, does not make much sense too,
from playwright-vscode.
Ah sorry, I mixed up WSL and containers (cause Linux containers are also using WSL as backend on Windows, but obviously still not the same)
from playwright-vscode.
In your scenario you are using containers, where debug is not supported. Why? Because when you debug, it will launch a headed browser, for that you need a GUI to see the browser and the playwright inspector, which you don't have in the container OR you can't control inside the container.
Is it possible to run headed browser with xvfb
for rendering, and let user connect to the remote GUI with VNC to view/debug/control the tests?
It looks like Selenium docker container is doing headed rendering like this.
https://github.com/SeleniumHQ/docker-selenium
If this is possible in Playwright, it would be a huge improvement for remote development workflow.
from playwright-vscode.
First of all, I really love Playwright, thanks a lot for this awesome extension!
Happy to hear!
Since debugging spawns a headful browser on the host OS, its not fully possible as of today due this contract.
The same happens with Remote / Container with a WSL2 container on Windows. Same question here, am I missing something or is this not supported?
WSL2 support should be fixed in version 0.2.6 which was released a few minutes ago.
(There was a separate issue that the HTML report was not opening, this was an issue in Playwright, which you can fix by using the dev version: npm install @playwright/test@next
.
from playwright-vscode.
@mxschmitt Great news, thanks. However, when I try to do this now with a container and the updated extension, I get
Do I need to do some setup / config on the Windows side for this to work?
from playwright-vscode.
@mxschmitt What do you think about adding these runtime environment statuses to the README? I think it could be really helpful.
- Container -> debug is not supported
- SSH -> debug is not supported
- WSL -> fully supported
- normal / host -> fully supported
from playwright-vscode.
Related Issues (20)
- "type":"module" breaks playwright-vscode extension (Minimum example from "Playwright:Getting Started" with Typescript) HOT 3
- Re-run failed tests HOT 2
- Highlight selector does not work under WSL
- After defining globalSetup the extension can no longer run tests individually HOT 1
- Install Playwright does not work anymore. HOT 1
- [Bug]: New Record new Test doesn't launch browser HOT 1
- npm ERR! Invalid name: "playwright@latest" when running "Install Playwright" from VSCode Command HOT 8
- ❗❗❗Please file issues at https://github.com/microsoft/playwright❗❗❗
- Cucumber integration HOT 1
- [Feature Request] Record option to save network requests as HAR HOT 1
- My
- My
- README
- No support for Custom reporters HOT 1
- .
- Profile vs Project HOT 1
- Playwright Test for VS Code, Record new function can not set browser and viewport-size HOT 2
- Is it compatible with Python? HOT 1
- Playwright exension - No Playwright tests found, even if tests run fine HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playwright-vscode.