playwrightKit

package
v3.1.112 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BrowserNameChromium = "chromium"

	BrowserNameFirefox = "firefox"

	BrowserNameWebkit = "webkit"
)

Variables

This section is empty.

Functions

func GetBrowserContextPages

func GetBrowserContextPages(ctx playwright.BrowserContext) (pages []playwright.Page)

GetBrowserContextPages

@param ctx 不能为nil @return 有可能len(pages) == 0

func GetBrowserPages

func GetBrowserPages(browser playwright.Browser) (pages []playwright.Page)

GetBrowserPages

@param browser 不能为nil @return 有可能len(pages) == 0

func LaunchBrowser

func LaunchBrowser(browserName string, driverDir string, installFlag bool,
	launchOptions *playwright.BrowserTypeLaunchOptions) (pw *playwright.Playwright, browser playwright.Browser, err error)

LaunchBrowser

@param browserName 浏览器名称 @param driverDir 用于存放浏览器和操作系统的依赖(初次执行会下载,会有点慢) @param launchOptions 可以为nil,将采用默认值(headless == true)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL