Skip to content

Commit e905877

Browse files
committed
.
1 parent 17d23f3 commit e905877

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

testProj/playrighty.test.scala

+5-20
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,13 @@ import com.sun.net.httpserver.SimpleFileServer
1616
import java.nio.file.Paths
1717
import com.microsoft.playwright.impl.driver.Driver
1818

19+
/*
20+
Run
21+
cs launch com.microsoft.playwright:playwright:1.41.1 -M "com.microsoft.playwright.CLI" -- install --with-deps
22+
before this test, to make sure that the driver bundles are downloaded.
23+
*/
1924
class PlaywrightTest extends munit.FunSuite:
2025

21-
// val env = new java.util.HashMap[String, String]();
22-
// env.put("PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD", "1");
23-
// val createOptions = new Playwright.CreateOptions();
24-
// createOptions.setEnv(env);
25-
26-
// val browserType = new BrowserType.LaunchOptions()
27-
// .setExecutablePath(Paths.get("Path/to/browser.exe"))
28-
// .setHeadless(false)
29-
// .setChromiumSandbox(true)
30-
31-
32-
// val browser = Playwright.create(createOptions).chromium().launch(
33-
34-
// context = browser.newContext(
35-
// new Browser.NewContextOptions()
36-
// .setViewportSize(1800, 1080)
37-
38-
// val driver = Driver.createAndInstall(new java.util.HashMap[String, String](), false)
39-
4026
val port = 8080
4127
var pw: Playwright = uninitialized
4228
var browser: Browser = uninitialized
@@ -45,7 +31,6 @@ class PlaywrightTest extends munit.FunSuite:
4531

4632
override def beforeAll(): Unit =
4733

48-
// System.setProperty("playwright.driver.impl", "jsenv.DriverJar")
4934
pw = Playwright.create()
5035
browser = pw.chromium().launch();
5136
page = browser.newPage();

0 commit comments

Comments
 (0)