webdriver

package
v0.0.0-...-d78274a Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppiumRequest

type AppiumRequest struct {
	Method string
	Body   map[string]interface{}
	Path   string
}

AppiumRequest ...

type Driver

type Driver struct {
	Client              *client.Client
	DesiredCapabilities map[string]interface{}
	SessionID           string
}

Driver ...

func Create

func Create(url string, capabilities map[string]interface{}) (driver *Driver)

Create ...

func (*Driver) Close

func (d *Driver) Close()

Close ...

func (*Driver) FindElement

func (d *Driver) FindElement(elBy string, elName string) *Element

FindElement ...

func (*Driver) FindElements

func (d *Driver) FindElements(elBy string, elName string) (elements []Element)

FindElements ...

func (*Driver) GetPageSource

func (d *Driver) GetPageSource() string

GetPageSource ...

func (*Driver) GetSettings

func (d *Driver) GetSettings() string

GetSettings ...

func (*Driver) ImplicitWait

func (d *Driver) ImplicitWait(seconds int)

ImplicitWait ...

func (*Driver) Init

func (d *Driver) Init()

Init ...

func (*Driver) StartActivity

func (d *Driver) StartActivity(appPackage string, appActivity string)

StartActivity ...

func (*Driver) UpdateSettings

func (d *Driver) UpdateSettings(settings map[string]interface{})

UpdateSettings ...

type Element

type Element struct {
	Driver *Driver
	ID     string
}

Element ...

func (*Element) Click

func (el *Element) Click()

Click ...

func (*Element) GetAttribute

func (el *Element) GetAttribute(attributeName string) string

GetAttribute ...

func (*Element) GetText

func (el *Element) GetText() string

GetText ...

func (*Element) IsDisplayed

func (el *Element) IsDisplayed() bool

IsDisplayed ...

func (*Element) Location

func (el *Element) Location() string

Location ...

func (*Element) SendKeys

func (el *Element) SendKeys(keys string)

SendKeys ...

type TouchActionParams

type TouchActionParams struct {
	// contains filtered or unexported fields
}

TouchActionParams ...

Jump to

Keyboard shortcuts

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