element

package
v2.0.0-...-b920a9c Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2015 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
	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 Repository

type Repository struct {
	Client Client
}

func (*Repository) Get

func (e *Repository) Get(selectors target.Selectors) ([]Element, error)

func (*Repository) GetAtLeastOne

func (e *Repository) GetAtLeastOne(selectors target.Selectors) ([]Element, error)

func (*Repository) GetExactlyOne

func (e *Repository) GetExactlyOne(selectors target.Selectors) (Element, error)

Jump to

Keyboard shortcuts

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