Giter Site home page Giter Site logo

Comments (7)

alexkuc avatar alexkuc commented on June 11, 2024 2

@mxschmitt What if remote supports headed mode, e.g. X11 forwarding? Would browser-related tasks work then?

from playwright-vscode.

mxschmitt avatar mxschmitt commented on June 11, 2024 1

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.

tfenster avatar tfenster commented on June 11, 2024 1

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.

ccll avatar ccll commented on June 11, 2024 1

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.

mxschmitt avatar mxschmitt commented on June 11, 2024

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.

tfenster avatar tfenster commented on June 11, 2024

@mxschmitt Great news, thanks. However, when I try to do this now with a container and the updated extension, I get
image
Do I need to do some setup / config on the Windows side for this to work?

from playwright-vscode.

bennettdams avatar bennettdams commented on June 11, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.