-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Browsers are not working #1620
Comments
Looks similar to #1542 - I'm unfortunately not proficient with Maven, waiting for Yury to come back. You are mentioning a repository, which one is it? Maybe similar to mojohaus/exec-maven-plugin#421. |
Sorry, this repository https://github.com/Maxim1-1/Playwright |
I tried to reproduce but was not able to. I used:
Which Java and Maven are you using? I'm not a Java expert, but would guess that the Java version/brand (since I'm using Zulu) doesn't make a big difference there, maybe the Maven version. |
maven version 3.9.2. do all types of browsers work correctly? do you have an executable file firefox.exe or webkit.exe Along the way C:\Users {user}\AppData\Local\ms-playwright\firefox-1454\firefox\firefox.exe or along the way C:\Users {user}\AppData\Local\ms-playwright\firefox-1454\webkit\webkit.exe? Thanks. |
I switched to version 1.43 and everything worked at first, then I cleaned up the project again, switched to 1.45 and get the same error as before. At first glance, the downloaded files for firefox, chromium, and webkit browsers for different versions of playwright are no different. I can't figure out what's going on. I tried to run it again on version 1.43, then I got this error: [Error: EPERM: operation not permitted, open 'C:\Users{user}\AppData\Local\ms-playwright\firefox-1447\firefox\firefox.exe'] { Webkit works everywhere, just like chromium. |
I also deleted the Node js-cache folder (or something like that) and now, when starting the program, regardless of which browser and regardless of the version of playwright, the program tries to install browsers but fails due to an attempt to install firefox. Now it doesn't work for me at all( |
After a couple of hours of experimenting with finding the cause, a simple restart of the computer helps. If you have problems installing any browser, just restart your computer and restart the program, and playwright will download the desired browser. |
So everything is working now? Maybe helpful for others, how did you fix #1620 (comment)? Looking at |
As I understand it, you just need to restart the computer, and then re-launch the playwright, and the desired browser will be downloaded. |
Looks like some transient issue, I'll close it for now. If you have something you can reproduce, feel free to re-file with exact reproduction steps. Thanks! |
Good afternoon, yes of course. Thank you very much |
Version
1.45
Steps to reproduce
Expected behavior
the firefox browser window has opened
Actual behavior
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
The text was updated successfully, but these errors were encountered: