Skip to content

[Bug]: Browsers are not working #1620

Closed

Description

Version

1.45

Steps to reproduce

  1. Clone the repository https://github.com/Maxim1-1/Playwright
  2. Replace line 13 with "Browser browser = playwright.firefox().launch(new Browser Type.Launch Options().set Headless(false));"
  3. Run the program

Expected behavior

the firefox browser window has opened

Actual behavior

at org.example.Main.main(Main.java:13)

Caused by: com.microsoft.playwright.impl.DriverException: Error {
message='Executable doesn't exist at C:\Users{max}\AppData\Local\ms-playwright\firefox-1454\firefox\firefox.exe
╔════════════════════════════════════════════════════════════════════════════════════════════╗
║ Looks like Playwright was just installed or updated. ║
║ Please run the following command to download new browsers: ║
║ ║
║ mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install" ║
║ ║
║ <3 Playwright Team ║
╚════════════════════════════════════════════════════════════════════════════════════════════╝
name='Error
stack='Error: Executable doesn't exist at C:\Users{max}\AppData\Local\ms-playwright\firefox-1454\firefox\firefox.exe
╔════════════════════════════════════════════════════════════════════════════════════════════╗
║ Looks like Playwright was just installed or updated. ║
║ Please run the following command to download new browsers: ║
║ ║
║ mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install" ║
║ ║
║ <3 Playwright Team ║
╚════════════════════════════════════════════════════════════════════════════════════════════╝

Additional context

my firefox and webkit browser won't start. I executed the "mvn exec" command several times:java -dexec.MainClass=com.microsoft.playwright.CLID exec.args="install"", also tried the command from the documentation "mvn exec:java -e -D exec.MainClass=com.microsoft.playwright.CLI -D exec.args="install webkit"" to which I received the error "error:unknown command 'install webkit'".
I went to the folder "C:\Users {user}\AppData\Local\ms-playwright\firefox-1454\firefox\firefox.exe " and I didn't find an executable file there firefox.exe . The situation is similar with webkit.

Please fix this moment or tell me what I'm doing wrong. Thank you very much.

Environment

windows 10, Java 21.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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