Documentation ¶
Index ¶
- type Device
- func (d *Device) CloseApp() error
- func (d *Device) InstallApp(appPath string) error
- func (d *Device) LaunchApp() error
- func (d *Device) ReplaceElementValue(element *agouti.Selection, newValue string) error
- func (d *Device) Reset() error
- func (d *Device) Swipe(start_x, start_y, end_x, end_y, duration int) error
- func (d *Device) TouchAction() *TouchAction
- type Option
- type TouchAction
- func (t *TouchAction) LongPressElement(selection *agouti.Selection, duration int) *TouchAction
- func (t *TouchAction) LongPressPosition(x, y, duration int) *TouchAction
- func (t *TouchAction) MoveToElement(selection *agouti.Selection) *TouchAction
- func (t *TouchAction) MoveToPosition(x, y int) *TouchAction
- func (t *TouchAction) Perform() error
- func (t *TouchAction) PressElement(selection *agouti.Selection) *TouchAction
- func (t *TouchAction) PressPosition(x, y int) *TouchAction
- func (t *TouchAction) Release() *TouchAction
- func (ma *TouchAction) String() string
- func (t *TouchAction) TapElement(selection *agouti.Selection, count int) *TouchAction
- func (t *TouchAction) TapPosition(x, y, count int) *TouchAction
- func (t *TouchAction) Wait(ms int) *TouchAction
- type WebDriver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
func (*Device) InstallApp ¶
func (*Device) ReplaceElementValue ¶
func (*Device) TouchAction ¶
func (d *Device) TouchAction() *TouchAction
type Option ¶
type Option func(*config)
func AgoutiOptions ¶
func Desired ¶
func Desired(capabilities agouti.Capabilities) Option
type TouchAction ¶
type TouchAction struct {
// contains filtered or unexported fields
}
func NewTouchAction ¶
func NewTouchAction(session mobileSession) *TouchAction
func (*TouchAction) LongPressElement ¶
func (t *TouchAction) LongPressElement(selection *agouti.Selection, duration int) *TouchAction
func (*TouchAction) LongPressPosition ¶
func (t *TouchAction) LongPressPosition(x, y, duration int) *TouchAction
func (*TouchAction) MoveToElement ¶
func (t *TouchAction) MoveToElement(selection *agouti.Selection) *TouchAction
func (*TouchAction) MoveToPosition ¶
func (t *TouchAction) MoveToPosition(x, y int) *TouchAction
func (*TouchAction) Perform ¶
func (t *TouchAction) Perform() error
func (*TouchAction) PressElement ¶
func (t *TouchAction) PressElement(selection *agouti.Selection) *TouchAction
func (*TouchAction) PressPosition ¶
func (t *TouchAction) PressPosition(x, y int) *TouchAction
func (*TouchAction) Release ¶
func (t *TouchAction) Release() *TouchAction
func (*TouchAction) String ¶
func (ma *TouchAction) String() string
func (*TouchAction) TapElement ¶
func (t *TouchAction) TapElement(selection *agouti.Selection, count int) *TouchAction
func (*TouchAction) TapPosition ¶
func (t *TouchAction) TapPosition(x, y, count int) *TouchAction
func (*TouchAction) Wait ¶
func (t *TouchAction) Wait(ms int) *TouchAction
Click to show internal directories.
Click to hide internal directories.