Documentation
¶
Overview ¶
Package inspect serves droidline inspect: a local page that shows a phone's screen and element tree, suggests selectors with code, and records taps and typing as a script. It is optional and runs only while the command runs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Selector ¶
type Selector struct {
By any `json:"by"` // a selector name, or a query object
Value string `json:"value,omitempty"`
Nth int `json:"nth"`
Count int `json:"count"`
}
Selector is one way to find an element, with how many elements it matches and which of them is the one wanted.
type Step ¶
type Step struct {
Cmd string `json:"cmd"` // launch, touch, long_touch, input, get_text
Sel *Selector `json:"sel,omitempty"`
Text string `json:"text,omitempty"`
Package string `json:"package,omitempty"`
Password bool `json:"password,omitempty"`
// contains filtered or unexported fields
}
Step is one line of a recorded or inspected script.