simulator

package
v0.0.0-...-1aeafd4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DriverService *selenium.Service

Functions

func InitPBCSimulator

func InitPBCSimulator()

func PBCSimulator

func PBCSimulator()

Types

type Simulator

type Simulator struct {
	// contains filtered or unexported fields
}

Simulator 模拟浏览器

func NewSimulator

func NewSimulator(browserName, driverPath string, port int) *Simulator

NewSimulator 创建模拟器

func (*Simulator) AddChromeCap

func (s *Simulator) AddChromeCap(cap chrome.Capabilities)

func (*Simulator) AddFirefoxCap

func (s *Simulator) AddFirefoxCap(cap firefox.Capabilities)

func (*Simulator) NewChromeService

func (s *Simulator) NewChromeService(opts ...selenium.ServiceOption) (*selenium.Service, error)

func (*Simulator) NewFirefoxService

func (s *Simulator) NewFirefoxService(opts []selenium.ServiceOption) (*selenium.Service, error)

func (*Simulator) NewWebDriver

func (s *Simulator) NewWebDriver() (selenium.WebDriver, error)

Jump to

Keyboard shortcuts

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