agouti: github.com/sclevine/agouti/internal/element Index | Files

package element

import "github.com/sclevine/agouti/internal/element"

Index

Package Files

repository.go

type Client Uses

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

type Element Uses

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 Uses

type Repository struct {
    Client    Client
    Selectors target.Selectors
}

func (*Repository) Get Uses

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

func (*Repository) GetAtLeastOne Uses

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

func (*Repository) GetExactlyOne Uses

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

Package element imports 4 packages (graph) and is imported by 9 packages. Updated 2016-07-31. Refresh now. Tools for package owners.