Documentation ¶
Index ¶
- func Must(err error, msg string, t *testing.T)
- func MustErr(err error, contains string, msg string, t *testing.T)
- type Browser
- func (b *Browser) Contains(text string) error
- func (b *Browser) FillById(id, content string) error
- func (b *Browser) FindElement(selector string) (selenium.WebElement, error)
- func (b *Browser) Go(url string) error
- func (b *Browser) Quit()
- func (b *Browser) SubmitForm(fields map[string]string) error
- func (b *Browser) VisitLink(text string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Browser ¶
type Browser struct {
// contains filtered or unexported fields
}
func (*Browser) Contains ¶
Contains checks if the given text is in the page source. If not, it returns an error.
func (*Browser) FindElement ¶
func (b *Browser) FindElement(selector string) (selenium.WebElement, error)
FindElement finds an element using the given css selector.
func (*Browser) SubmitForm ¶
SubmitForm fills the given form with the fields in the map and submits it. The keys in fields are the field ids.
Click to show internal directories.
Click to hide internal directories.