browser

package
v0.0.0-...-cca5604 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractTextValue

func ExtractTextValue(wd selenium.WebDriver, xpath string) (string, error)

func InitSelenium

func InitSelenium(chromeDriverPath string, chromeDriverPort int)

Types

type SeleniumFactory

type SeleniumFactory struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func GetSeleniumFactory

func GetSeleniumFactory() *SeleniumFactory

func (*SeleniumFactory) GetSelenium

func (f *SeleniumFactory) GetSelenium(key string) *SeleniumService

func (*SeleniumFactory) Stop

func (f *SeleniumFactory) Stop()

type SeleniumService

type SeleniumService struct {
	WebDriver selenium.WebDriver
	// contains filtered or unexported fields
}

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
⌂ 换网址