From 3f29d52c84b87c49044c4728fda0e773fc402700 Mon Sep 17 00:00:00 2001 From: Halil Durak Date: Fri, 12 Sep 2025 15:14:22 +0300 Subject: [PATCH 1/2] add google test --- integration/google.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 integration/google.js diff --git a/integration/google.js b/integration/google.js new file mode 100644 index 0000000..0d4fdfc --- /dev/null +++ b/integration/google.js @@ -0,0 +1,15 @@ +import { connect } from "puppeteer-core"; +import { writeFileSync } from "node:fs"; + +const browser = await connect({ browserWSEndpoint: "ws://127.0.0.1:9222" }); + +const context = await browser.createBrowserContext(); +const page = await context.newPage(); + +await page.goto("https://google.com", { waitUntil: "networkidle0" }); + +await page.type("input.lst", "lightpanda"); +await Promise.all([ + page.waitForNavigation({ waitUntil: "networkidle0" }), + page.keyboard.press("Enter"), +]); From c33b41503965eac26093ea3fa03065d4933ccfc2 Mon Sep 17 00:00:00 2001 From: nikneym Date: Fri, 12 Sep 2025 15:16:47 +0300 Subject: [PATCH 2/2] remove unnecessary import --- integration/google.js | 1 - 1 file changed, 1 deletion(-) diff --git a/integration/google.js b/integration/google.js index 0d4fdfc..d513172 100644 --- a/integration/google.js +++ b/integration/google.js @@ -1,5 +1,4 @@ import { connect } from "puppeteer-core"; -import { writeFileSync } from "node:fs"; const browser = await connect({ browserWSEndpoint: "ws://127.0.0.1:9222" });