fix: failed to input on android device

This commit is contained in:
xucong053
2022-09-30 12:00:44 +08:00
parent 73e974968b
commit bd1ef254fa
4 changed files with 18 additions and 41 deletions

View File

@@ -715,6 +715,7 @@ type ElementType struct {
Tab bool `json:"XCUIElementTypeTab"`
TouchBar bool `json:"XCUIElementTypeTouchBar"`
StatusItem bool `json:"XCUIElementTypeStatusItem"`
EditText bool `json:"android.widget.EditText"`
}
// ProtectedResource A system resource that requires user authorization to access.
@@ -927,6 +928,9 @@ type WebDriver interface {
// WithFrequency option can be used to set frequency of typing (letters per sec). The default value is 60
SendKeys(text string, options ...DataOption) error
// Input works like SendKeys
Input(text string, options ...DataOption) error
// KeyboardDismiss Tries to dismiss the on-screen keyboard
KeyboardDismiss(keyNames ...string) error