Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetElement(selector api.Selector) (*api.Element, error)
	GetElements(selector api.Selector) ([]*api.Element, error)
}

type Element

type Element interface {
	Client
	GetID() string
	GetText() (string, error)
	GetName() (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
	GetLocation() (x, y int, err error)
}

type Repository

type Repository struct {
	Client    Client
	Selectors target.Selectors
}

func (*Repository) Get

func (e *Repository) Get() ([]Element, error)

func (*Repository) GetAtLeastOne

func (e *Repository) GetAtLeastOne() ([]Element, error)

func (*Repository) GetExactlyOne

func (e *Repository) GetExactlyOne() (Element, error)

Source Files