selenium

package
v0.0.0-...-04c8932 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CHROME  = "chrome"
	FIREFOX = "firefox"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

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

func (*Element) Click

func (e *Element) Click() error

func (*Element) SendKeys

func (e *Element) SendKeys(keys string) error

type SeleniumService

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

func NewSeleniumService

func NewSeleniumService(browserName string, seleniumPath string, geckoDriverPath string, chromeDriverPath string, port int, capabilities string, debug bool, output bool) *SeleniumService

func (*SeleniumService) FindElementByCssSelector

func (s *SeleniumService) FindElementByCssSelector(selector string) (*Element, error)

func (*SeleniumService) IsRecaptcha

func (s *SeleniumService) IsRecaptcha() bool

func (*SeleniumService) OpenUrl

func (s *SeleniumService) OpenUrl(url string) error

func (*SeleniumService) Start

func (s *SeleniumService) Start() error

func (*SeleniumService) Stop

func (s *SeleniumService) Stop()

Jump to

Keyboard shortcuts

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