Skip to content

Playwright Java -nodejsx was unexpected at this time ? #20021

@mEklavya

Description

@mEklavya

Context:

  • Playwright Version: 1.26.0 and 1.28.0
  • Operating System: Windows
  • Node.js version: 16.15.1
  • Browser: [e.g. All, Chromium, Firefox, WebKit]
  • Extra: Playwright java and utilizing system node js path, refer env properties

Code Snippet
public static void main(String[] args) {
try (Playwright playwright = Playwright.create()) {
Browser browser = playwright.chromium()
.launch(new BrowserType.LaunchOptions().setHeadless(false).setSlowMo(50));
Page page1 = browser.newPage();
page1.setDefaultTimeout(90000);
page1.navigate("http://playwright.dev");
System.out.println(page1.title());

	}
}

While utilizing the system nodeJS path, not able to proceed and getting below error
Files\nodejsx was unexpected at this time.
Exception in thread "main" com.microsoft.playwright.PlaywrightException: Failed to read message from driver, pipe closed.

Add any other details about the problem here.

Error Screenshot
image

Env properties
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions