Documentation
¶
Index ¶
- func IsNetworkChangedError(err error) bool
- type Browser
- type Element
- func (e *Element) Attribute(name string) (*string, error)
- func (e *Element) Click() error
- func (e *Element) Element(selector string) (*Element, error)
- func (e *Element) Elements(selector string) ([]*Element, error)
- func (e *Element) Has(selector string) (bool, *Element, error)
- func (e *Element) Input(value string) error
- func (e *Element) MustAttribute(name string) *string
- func (e *Element) MustClick() *Element
- func (e *Element) MustElement(selector string) *Element
- func (e *Element) MustInput(value string) *Element
- func (e *Element) MustSelect(label string) *Element
- func (e *Element) MustSelectAllText() *Element
- func (e *Element) MustText() string
- func (e *Element) Property(name string) (*PropertyValue, error)
- func (e *Element) Select(label string) error
- func (e *Element) SelectAllText() error
- func (e *Element) Text() (string, error)
- func (e *Element) TypeText(value string) error
- type Page
- func (p *Page) BodyText() (string, error)
- func (p *Page) CancelTimeout()
- func (p *Page) ClearCookies() error
- func (p *Page) ClickElement(selector string) error
- func (p *Page) ClickElementMatchingText(selector, textPattern string) error
- func (p *Page) ClickElementMatchingTextWithin(selector, textPattern string, timeout time.Duration) error
- func (p *Page) ClickElementWithin(selector string, timeout time.Duration) error
- func (p *Page) Close() error
- func (p *Page) Cookies(url string) ([]*network.Cookie, error)
- func (p *Page) DoAndWaitLoad(action func() error) error
- func (p *Page) Element(selector string) (*Element, error)
- func (p *Page) ElementMatchingText(selector string, textPattern string) (*Element, error)
- func (p *Page) Elements(selector string) ([]*Element, error)
- func (p *Page) Has(selector string) (bool, *Element, error)
- func (p *Page) Info() (*PageInfo, error)
- func (p *Page) MustElement(selector string) *Element
- func (p *Page) MustElementMatchingText(selector string, textPattern string) *Element
- func (p *Page) MustElements(selector string) []*Element
- func (p *Page) MustNavigate(url string) *Page
- func (p *Page) MustReload()
- func (p *Page) Navigate(url string) error
- func (p *Page) Reload() error
- func (p *Page) SetCheckboxChecked(selector string, checked bool) error
- func (p *Page) SetCookie(cookie *http.Cookie, baseURL string) error
- func (p *Page) SetInputValue(selector, value string) error
- func (p *Page) Timeout(timeout time.Duration) *Page
- func (p *Page) TypeInputValue(selector, value string) error
- func (p *Page) WaitElement(selector string) (*Element, error)
- func (p *Page) WaitElementMatchingText(selector, textPattern string) (*Element, error)
- func (p *Page) WaitElementMatchingTextWithin(selector, textPattern string, timeout time.Duration) (*Element, error)
- func (p *Page) WaitElementWithin(selector string, timeout time.Duration) (*Element, error)
- func (p *Page) WaitLoad() error
- func (p *Page) WaitOpen() func() (*Page, error)
- type PageInfo
- type PropertyValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNetworkChangedError ¶ added in v1.2.19
Types ¶
type Browser ¶
type Browser struct {
// contains filtered or unexported fields
}
func NewBrowser ¶ added in v1.2.15
func (*Browser) InitialPage ¶ added in v1.2.10
func (*Browser) NewIncognito ¶
type Element ¶
type Element struct {
// contains filtered or unexported fields
}
func (*Element) MustAttribute ¶
func (*Element) MustElement ¶
func (*Element) MustSelect ¶
func (*Element) MustSelectAllText ¶
func (*Element) SelectAllText ¶
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
func (*Page) CancelTimeout ¶
func (p *Page) CancelTimeout()
func (*Page) ClearCookies ¶
func (*Page) ClickElement ¶ added in v1.2.19
func (*Page) ClickElementMatchingText ¶ added in v1.2.19
func (*Page) ClickElementMatchingTextWithin ¶ added in v1.2.19
func (*Page) ClickElementWithin ¶ added in v1.2.19
func (*Page) DoAndWaitLoad ¶
func (*Page) ElementMatchingText ¶
func (*Page) MustElement ¶
func (*Page) MustElementMatchingText ¶
func (*Page) MustElements ¶
func (*Page) MustNavigate ¶
func (*Page) MustReload ¶
func (p *Page) MustReload()
func (*Page) SetCheckboxChecked ¶ added in v1.2.19
func (*Page) SetInputValue ¶ added in v1.2.19
func (*Page) TypeInputValue ¶ added in v1.2.19
func (*Page) WaitElement ¶ added in v1.2.19
func (*Page) WaitElementMatchingText ¶ added in v1.2.19
func (*Page) WaitElementMatchingTextWithin ¶ added in v1.2.19
func (*Page) WaitElementWithin ¶ added in v1.2.19
type PropertyValue ¶
type PropertyValue struct {
// contains filtered or unexported fields
}
func (*PropertyValue) Bool ¶
func (v *PropertyValue) Bool() bool
func (*PropertyValue) String ¶
func (v *PropertyValue) String() string
Click to show internal directories.
Click to hide internal directories.