playwright-go
playwright-go copied to clipboard
Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
I would like to use system wide preinstalled webviews as the browsers for the automation. eg. on Windows with `webview2`. on macOS with `webkit` and linux with `wkwebview` so I...
**Environments** - playwright-go Version: [email protected] - Browser: chromium - OS and version: Ubuntu 24.04.1 LTS **Bug description** The provided example leaves behind a defunct chromium process. **To Reproduce** This code...
GOROOT=C:\Go #gosetup GOPATH=C:\gopath #gosetup C:\Go\bin\go.exe build -o D:\BaiduSyncdisk\goworkplace\goweb\playwright_v1\go_build_split_game_go.exe -gcflags "all=-N -l" D:\BaiduSyncdisk\goworkplace\goweb\playwright_v1\split_game.go #gosetup C:\gopath\src\github.com\playwright-community\playwright-go\frame.go:10:2: cannot find package "github.com/deckarep/golang-set/v2" in any of: C:\Go\src\github.com\deckarep\golang-set\v2 (from $GOROOT) C:\gopath\src\github.com\deckarep\golang-set\v2 (from $GOPATH) C:\gopath\src\github.com\playwright-community\playwright-go\transport.go:11:2: cannot find...
``` func handleResponse(res playwright.Response) { statusCode := res.Status() url := res.URL() fmt.Printf("Response URL: %s\n", url) fmt.Printf("Status Code: %d\n", statusCode) var data jsonResponse body, err := res.Body() if err != nil...
Offline deployment cannot specify a local Google Chrome.How can i do? this is my code: browser, _ := pw.Chromium.Launch(playwright.BrowserTypeLaunchOptions{ Channel: playwright.String("chrome"), ExecutablePath: playwright.String("C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"), Headless: &head, }) It prompts me...
**Environments** - playwright-go Version: [v0.5200.0] - Browser: [e.g. chromium] - OS and version: [macOS] **Bug description** Cannot play HTML5 video. **To Reproduce** Please provide a mini reproduction rather than just...
**Is your feature request related to a problem? Please describe.** ```go package main import ( "github.com/playwright-community/playwright-go" "log" ) func main() { if err := playwright.Install(&playwright.RunOptions{Browsers: []string{"chromium"}}); err != nil {...
I don't know why we need a full response object to get request sizes, but this panics for me several times per page load as I attempt to log size...
**Description** Calling response.ServerAddr() causes a panic even though the response object is valid. This occurs when using playwright-go version v0.5001.0. ``` resp := page.Response() // response is valid addr :=...
**Environments** - playwright-go Version: Latest - Browser: Chromium - OS and version: Windows 11 **Bug description** **To Reproduce** Example: ```go package main import "github.com/playwright-community/playwright-go" func main() { // ignore unnecessary...