Skip to content

Instantly share code, notes, and snippets.

View nathanchilton's full-sized avatar

Nathan Chilton nathanchilton

View GitHub Profile
@nathanchilton
nathanchilton / initialize-playwright.feature
Last active March 30, 2023 03:22
Using the Java version of Playwright from within Karate
Feature: Initialize Playwright
Scenario: Set up a starting point for a UI test using Playwright
* def playwright = Java.type("com.microsoft.playwright.Playwright").create()
* def Browser = Java.type("com.microsoft.playwright.Browser")
* def BrowserType = Java.type("com.microsoft.playwright.BrowserType")
* def BrowserContext = Java.type("com.microsoft.playwright.BrowserContext")
* def SelectOption = Java.type("com.microsoft.playwright.options.SelectOption")
* def Page = Java.type("com.microsoft.playwright.Page")