element

package
v3.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2018 License: MIT Imports: 4 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL