halSelenium

package
v0.0.0-...-fb315dc Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: MIT Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SeleniumnError

type SeleniumnError struct {
	Internal bool
	Message  error
}

func (*SeleniumnError) Error

func (e *SeleniumnError) Error() string

type Service

type Service interface {
	NewClient(seleniumServer string) error
	HandleSeleniumError(ctx context.Context, chatId uint32, internal bool, err error)
	Driver() selenium.WebDriver

	ClickByClassName(cn string)
	ClickByXPath(xp string)
	ClickByCSSSelector(cs string)

	WaitFor(findBy, selector string)
}

func NewChromeService

func NewChromeService(service alert.Service) Service

func NewInstrumentService

func NewInstrumentService(counter metrics.Counter, errorCount metrics.Counter,
	latency metrics.Histogram, s Service) Service

Directories

Path Synopsis
Package mock_selenium is a generated GoMock package.
Package mock_selenium is a generated GoMock package.

Jump to

Keyboard shortcuts

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