Documentation
¶
Index ¶
- type Element
- type ElementClient
- type ElementRepository
- type Selection
- func (s *Selection) Active() (bool, error)
- func (s *Selection) AppendButton(text string) *Selection
- func (s *Selection) AppendCSS(cssSelector string) *Selection
- func (s *Selection) AppendLabeled(text string) *Selection
- func (s *Selection) AppendLink(text string) *Selection
- func (s *Selection) AppendXPath(xPathSelector string) *Selection
- func (s *Selection) At(index int) *Selection
- func (s *Selection) Attribute(attribute string) (string, error)
- func (s *Selection) CSS(property string) (string, error)
- func (s *Selection) Check() error
- func (s *Selection) Click() error
- func (s *Selection) Count() (int, error)
- func (s *Selection) DoubleClick() error
- func (s *Selection) Enabled() (bool, error)
- func (s *Selection) EqualsElement(other *Selection) (bool, error)
- func (s *Selection) Fill(text string) error
- func (s *Selection) Select(text string) error
- func (s *Selection) Selected() (bool, error)
- func (s *Selection) Single() *Selection
- func (s *Selection) String() string
- func (s *Selection) Submit() error
- func (s *Selection) SwitchToFrame() error
- func (s *Selection) Text() (string, error)
- func (s *Selection) Uncheck() error
- func (s *Selection) Visible() (bool, error)
- type Selector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element interface { ElementClient GetText() (string, error) GetAttribute(attribute string) (string, error) GetCSS(property string) (string, error) IsSelected() (bool, error) IsDisplayed() (bool, error) IsEnabled() (bool, error) IsEqualTo(other *api.Element) (bool, error) Click() error Clear() error Value(text string) error Submit() error }
type ElementClient ¶
type ElementRepository ¶
type ElementRepository struct {
Client ElementClient
}
func (*ElementRepository) Get ¶
func (e *ElementRepository) Get(selectors []Selector) ([]Element, error)
func (*ElementRepository) GetAtLeastOne ¶
func (e *ElementRepository) GetAtLeastOne(selectors []Selector) ([]Element, error)
func (*ElementRepository) GetExactlyOne ¶
func (e *ElementRepository) GetExactlyOne(selectors []Selector) (Element, error)
type Selection ¶
type Selection struct { Session interface { GetActiveElement() (*api.Element, error) DoubleClick() error MoveTo(element *api.Element, point api.Offset) error Frame(frame *api.Element) error } Elements interface { Get(selectors []Selector) ([]Element, error) GetAtLeastOne(selectors []Selector) ([]Element, error) GetExactlyOne(selectors []Selector) (Element, error) } // contains filtered or unexported fields }
func NewSelection ¶
func (*Selection) AppendButton ¶
func (*Selection) AppendLabeled ¶
func (*Selection) AppendLink ¶
func (*Selection) AppendXPath ¶
func (*Selection) DoubleClick ¶
func (*Selection) SwitchToFrame ¶
Click to show internal directories.
Click to hide internal directories.