Description
openedon Jul 3, 2024
Version
1.45
Steps to reproduce
- Clone the repository https://github.com/Maxim1-1/Playwright
- Replace line 13 with "Browser browser = playwright.firefox().launch(new Browser Type.Launch Options().set Headless(false));"
- 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.