You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.RuntimeException: Failed to create driver
at com.microsoft.playwright.impl.driver.Driver.createAndInstall(Driver.java:105)
at com.microsoft.playwright.impl.driver.Driver.ensureDriverInstalled(Driver.java:57)
at com.microsoft.playwright.impl.PlaywrightImpl.createImpl(PlaywrightImpl.java:45)
at com.microsoft.playwright.impl.PlaywrightImpl.create(PlaywrightImpl.java:35)
at com.microsoft.playwright.Playwright.create(Playwright.java:96)
at com.microsoft.playwright.Playwright.create(Playwright.java:100)
at com.langyangtech.iot.Main.main(Main.java:8)
Caused by: java.io.IOException: Cannot run program "C:\Users\QIAODI~1\AppData\Local\Temp\playwright-java-16425824829904964449\playwright.cmd": CreateProcess error=5, 拒绝访问。
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at com.microsoft.playwright.impl.driver.jar.DriverJar.installBrowsers(DriverJar.java:93)
at com.microsoft.playwright.impl.driver.jar.DriverJar.initialize(DriverJar.java:69)
at com.microsoft.playwright.impl.driver.Driver.initialize(Driver.java:64)
at com.microsoft.playwright.impl.driver.Driver.createAndInstall(Driver.java:101)
... 6 more
Caused by: java.io.IOException: CreateProcess error=5, 拒绝访问。
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:492)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:153)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 11 more
Question
The problem here may be that there is no C:\Users\QIAODI~1\AppData\Local\Temp\playwright-java-16425824829904964449\ permission to execute this directory, is there any way to change this path to a directory with permission to execute, such as in the root directory of the project code
The text was updated successfully, but these errors were encountered:
You can specify alternative temp directory via playwright.driver.tmpdir system property. Either call System.setProperty("playwright.driver.tmpdir", tmpdir); before creating playwright instance or you can pass it as a maven command line option mvn ... -D playwright.driver.tmpdir="...". Will that work for you?
System info
Source code
Actual
Question
The problem here may be that there is no C:\Users\QIAODI~1\AppData\Local\Temp\playwright-java-16425824829904964449\ permission to execute this directory, is there any way to change this path to a directory with permission to execute, such as in the root directory of the project code
The text was updated successfully, but these errors were encountered: