Documentation ¶
Index ¶
- func ChromeDriverDefaultPath() string
- func CloseServer(browserName ...string) error
- func Fetch(pageURL string) ([]byte, error)
- func InitServer(browserName ...string) (driver selenium.WebDriver, err error)
- func StartService(driverPath string, port int, opts ...selenium.ServiceOption) (service *selenium.Service, err error)
- type Page
- func (s *Page) FindElementByClass(locator string) selenium.WebElement
- func (s *Page) FindElementByCss(locator string) selenium.WebElement
- func (s *Page) FindElementById(locator string) selenium.WebElement
- func (s *Page) FindElementByLinkText(locator string) selenium.WebElement
- func (s *Page) FindElementByName(locator string) selenium.WebElement
- func (s *Page) FindElementByPartialLink(locator string) selenium.WebElement
- func (s *Page) FindElementByTag(locator string) selenium.WebElement
- func (s *Page) FindElementByXpath(locator string) selenium.WebElement
- func (s *Page) FindElementsByClass(locator string) []selenium.WebElement
- func (s *Page) FindElementsByCss(locator string) []selenium.WebElement
- func (s *Page) FindElementsById(locator string) []selenium.WebElement
- func (s *Page) FindElementsByLinkText(locator string) []selenium.WebElement
- func (s *Page) FindElementsByName(locator string) []selenium.WebElement
- func (s *Page) FindElementsByPartialLink(locator string) []selenium.WebElement
- func (s *Page) FindElementsByTag(locator string) []selenium.WebElement
- func (s *Page) FindElementsByXpath(locator string) []selenium.WebElement
- func (s *Page) MouseHoverToElement(locator string) selenium.WebElement
- type WebDriver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChromeDriverDefaultPath ¶
func ChromeDriverDefaultPath() string
func CloseServer ¶
func StartService ¶
Types ¶
type Page ¶
func (*Page) FindElementByClass ¶
func (s *Page) FindElementByClass(locator string) selenium.WebElement
func (*Page) FindElementByCss ¶
func (s *Page) FindElementByCss(locator string) selenium.WebElement
func (*Page) FindElementById ¶
func (s *Page) FindElementById(locator string) selenium.WebElement
func (*Page) FindElementByLinkText ¶
func (s *Page) FindElementByLinkText(locator string) selenium.WebElement
func (*Page) FindElementByName ¶
func (s *Page) FindElementByName(locator string) selenium.WebElement
func (*Page) FindElementByPartialLink ¶
func (s *Page) FindElementByPartialLink(locator string) selenium.WebElement
func (*Page) FindElementByTag ¶
func (s *Page) FindElementByTag(locator string) selenium.WebElement
func (*Page) FindElementByXpath ¶
func (s *Page) FindElementByXpath(locator string) selenium.WebElement
func (*Page) FindElementsByClass ¶
func (s *Page) FindElementsByClass(locator string) []selenium.WebElement
func (*Page) FindElementsByCss ¶
func (s *Page) FindElementsByCss(locator string) []selenium.WebElement
func (*Page) FindElementsById ¶
func (s *Page) FindElementsById(locator string) []selenium.WebElement
func (*Page) FindElementsByLinkText ¶
func (s *Page) FindElementsByLinkText(locator string) []selenium.WebElement
func (*Page) FindElementsByName ¶
func (s *Page) FindElementsByName(locator string) []selenium.WebElement
func (*Page) FindElementsByPartialLink ¶
func (s *Page) FindElementsByPartialLink(locator string) []selenium.WebElement
func (*Page) FindElementsByTag ¶
func (s *Page) FindElementsByTag(locator string) []selenium.WebElement
func (*Page) FindElementsByXpath ¶
func (s *Page) FindElementsByXpath(locator string) []selenium.WebElement
func (*Page) MouseHoverToElement ¶
func (s *Page) MouseHoverToElement(locator string) selenium.WebElement
Click to show internal directories.
Click to hide internal directories.