Documentation
¶
Index ¶
- Constants
- Variables
- func DialogButton(s string) (cancel, ok bool)
- func Latitude(s string) (float64, error)
- func Longitude(s string) (float64, error)
- func MaxRetries(s string) (int, error)
- func NearestHeaderKey(name string) string
- func NormalizeOrientation(s string) string
- func RepeatTimes(s string) (int, error)
- func TravelSpeed(s string) (float64, error)
- type ArgKV
- type Command
- type Condition
- type Config
- type DeviceRole
- type DialogCheck
- type DialogChoice
- type DuplicateKey
- type Error
- type Flow
- type KV
- type NetworkMock
- type Selector
Constants ¶
View Source
const DefaultDragDuration = 1000
View Source
const DefaultDragHold = 800
View Source
const DefaultTravelSpeed = 4.0
Variables ¶
View Source
var DialogTypes = []string{"alert", "confirm", "prompt", "beforeunload"}
View Source
var HeaderKeys = []string{
"appId", "url", "name", "tags", "env", "properties", "onFlowStart", "onFlowComplete",
"jsEngine", "androidWebViewHierarchy",
"devices",
}
Functions ¶
func DialogButton ¶ added in v0.5.3
func MaxRetries ¶ added in v0.5.3
func NearestHeaderKey ¶ added in v0.5.3
func NormalizeOrientation ¶
func RepeatTimes ¶ added in v0.5.3
func TravelSpeed ¶ added in v0.5.3
Types ¶
type Command ¶
type Command struct {
Name string
File string
Line int
Label string
Optional bool
LabelRaw bool
Selector *Selector
Point string
Repeat int
Delay int
RetryTapIfNoChange *bool
WaitUntilVisible bool
WaitToSettleTimeoutMs int
LongPress bool
Cond *Condition
Timeout string
Text string
RandomKind string
Length int
Count int
Direction string
Start string
End string
From *Selector
Duration int
To *Selector
Hold int
In *Selector
Speed string
VisibilityPct int
CenterElement bool
ScrollTimeoutSet bool
AppID string
ClearState bool
ClearKeychain bool
StopApp *bool
Permissions []KV
Arguments []ArgKV
AutoVerify bool
Browser bool
SubFile string
SubFlow *Flow
Commands []*Command
Env []KV
When *Condition
Script string
Times string
While *Condition
MaxRetries string
CropOn *Selector
Threshold string
Latitude, Longitude string
Points [][2]float64
TravelSpeed string
Files []string
Enabled bool
OutputVariable string
Mock *NetworkMock
Dialogs *DialogChoice
DialogCheck *DialogCheck
On string
Parallel map[string][]*Command
ParallelOrder []string
Signal string
}
func (*Command) ForbidsTapReplay ¶ added in v0.6.0
func (*Command) RetriesTapIfNoChange ¶ added in v0.6.0
type Config ¶
type Config struct {
AppID string
URL string
Name string
Tags []string
Env []KV
OnFlowStart []*Command
OnFlowComplete []*Command
Properties map[string]string
PropertyOrder []string
Ext map[string]any
ExtLines map[string]int
Devices []*DeviceRole
}
func (*Config) AndroidWebViewDevTools ¶ added in v0.5.2
type DeviceRole ¶
type DialogCheck ¶ added in v0.5.3
type DialogChoice ¶ added in v0.5.3
type DuplicateKey ¶ added in v0.5.3
type Flow ¶
type Flow struct {
Path string
Dir string
Config Config
Commands []*Command
DuplicateKeys []DuplicateKey
}
func (*Flow) FreshLaunch ¶ added in v0.5.1
type NetworkMock ¶ added in v0.5.3
type Selector ¶
type Selector struct {
Text string
ID string
Index string
CSS string
Width, Height, Tolerance *int
Enabled, Selected *bool
Checked, Focused *bool
Traits []string
Below, Above, LeftOf, RightOf *Selector
ContainsChild, ChildOf *Selector
ContainsDescendants []*Selector
Optional bool
}
func (*Selector) HasCriteria ¶
Click to show internal directories.
Click to hide internal directories.