Documentation ¶
Index ¶
- type Browser
- func (b *Browser) Element() (elem *Element)
- func (b *Browser) Expect(target string, text string)
- func (b *Browser) ExpectTransitTo(rawurl string) *Browser
- func (b *Browser) GetWindowSize() (width, height int, err error)
- func (b *Browser) MustFindElement(target string) *Element
- func (b *Browser) MustFindElements(target string) []*Element
- func (b *Browser) Session() (session *webdriver.Session)
- func (b *Browser) SetPageLoadTimeout(timeout time.Duration)
- func (b *Browser) SetWindowSize(width, height int)
- func (b *Browser) TakeScreenshot(name string) *Browser
- func (b *Browser) TakeSource(name string) *Browser
- func (b *Browser) VisitTo(rawurl string) *Browser
- func (b *Browser) WaitFor(target string) *Browser
- func (b *Browser) WaitForText(target string, text string) *Browser
- func (b *Browser) WebElement() (elem webdriver.WebElement)
- type Driver
- type Element
- func (e *Element) Clear() *Element
- func (e *Element) Click() *Element
- func (e *Element) Input(text string) *Element
- func (e *Element) VerifyText(fn func(string, string) bool, expect string) *Element
- func (e *Element) WaitForDisabled() *Element
- func (e *Element) WaitForEnabled() *Element
- func (e *Element) WebElement() (elem webdriver.WebElement)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Browser ¶
func (*Browser) ExpectTransitTo ¶
func (*Browser) GetWindowSize ¶
func (*Browser) MustFindElement ¶
func (*Browser) MustFindElements ¶
func (*Browser) SetPageLoadTimeout ¶
func (*Browser) SetWindowSize ¶
func (*Browser) TakeScreenshot ¶
func (*Browser) TakeSource ¶
func (*Browser) WebElement ¶
func (b *Browser) WebElement() (elem webdriver.WebElement)
type Driver ¶
func (*Driver) OpenBrowser ¶
type Element ¶
func (*Element) VerifyText ¶
func (*Element) WaitForDisabled ¶ added in v0.2.1
func (*Element) WaitForEnabled ¶ added in v0.2.1
func (*Element) WebElement ¶
func (e *Element) WebElement() (elem webdriver.WebElement)
Click to show internal directories.
Click to hide internal directories.