2020-10-27 14:02:04 -07:00
2020-10-27 14:02:04 -07:00
2020-10-27 14:02:04 -07:00
2020-09-25 11:15:33 -07:00
2020-09-25 11:15:33 -07:00
2020-09-25 11:15:33 -07:00
2020-09-25 11:15:33 -07:00
2020-10-12 08:29:41 -07:00
2020-09-25 11:15:33 -07:00

🎭 Playwright for Java

The project is in early developement phase, some of the APIs are not implemented yet, others may change.

Usage

Follow the instructions to build the project from source and install driver.

Simple example:

package com.microsoft.playwright.example;

import com.microsoft.playwright.*;

import java.io.File;

public class Main {
  public static void main(String[] args) {
    Playwright playwright = Playwright.create();
    Browser browser = playwright.chromium().launch();
    BrowserContext context = browser.newContext(
      new Browser.NewContextOptions().withViewport(800, 600));
    Page page = context.newPage();
    page.navigate("https://webkit.org");
    page.click("text=check feature status");
    page.screenshot(new Page.ScreenshotOptions().withPath(new File("s.png")));
    browser.close();
  }
}

Original Playwright documentation. We will convert it to Javadoc eventually.

Description
Java version of the Playwright testing and automation library
Readme Apache-2.0 9.2 MiB
Languages
Java 98.2%
HTML 1.3%
Shell 0.4%
CSS 0.1%