Playwright + Java · Lesson 15 of 38
Module 15: Installation & Setup
Your task
Implement configureLaunchOptions:
Write it in the editor, then press Check answer (Ctrl + Enter).
pom.xml)<dependency>
<groupId>com.microsoft.playwright</groupId>
<artifactId>playwright</artifactId>
<version>1.48.0</version>
</dependency>BrowserType.LaunchOptions options = new BrowserType.LaunchOptions()
.setHeadless(false)
.setSlowMo(100);
Browser browser = playwright.chromium().launch(options);In this lesson, we configure the Maven pom.xml file with the official Playwright dependency, install browser binaries, configure headless vs headed launch options, and execute our first test program. Let's get started!
Part of the Playwright + Java course (Playwright with Java). Practice this concept live in the Playwright Online Compiler or explore our free automation practice form.
Run 'mvn exec:java -e -Dexec.mainClass=com.microsoft.playwright.CLI -Dexec.args="install"' or let Playwright auto-install on the first run.
Ready? Solve the task in the editor
Use Check answer to mark it complete. Hints are there if you need them.
___