selenium

package
v1.1.20 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Jar     string   `yaml:"jar" doc:"Путь к JAR-файлу selenium-server-standalone."`
	Driver  string   `` /* 131-byte string literal not displayed */
	Browser string   `yaml:"browser,omitempty" enum:"chrome,chromium,firefox" default:"firefox" doc:"Браузер (browserName в Selenium)."`
	Binary  string   `yaml:"binary,omitempty" doc:"Путь к исполняемому файлу браузера."`
	Args    []string `yaml:"args,omitempty" doc:"Аргументы для запуска браузера." default:"[--headless]"`
}

type Service

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

func NewService

func NewService(params ServiceParams) (*Service, error)

func (*Service) Capabilities

func (f *Service) Capabilities() selenium.Capabilities

func (*Service) Stop

func (f *Service) Stop()

func (*Service) URLPrefix

func (f *Service) URLPrefix() string

type ServiceParams

type ServiceParams struct {
	Config Config `validate:"required"`
}

Jump to

Keyboard shortcuts

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