fix: failed to input on android device

This commit is contained in:
xucong053
2022-09-30 13:55:06 +08:00
parent 10a50cb531
commit d143e3d16e
4 changed files with 18 additions and 41 deletions
+4
View File
@@ -527,6 +527,10 @@ func (wd *wdaDriver) SendKeys(text string, options ...DataOption) (err error) {
return
}
func (wd *wdaDriver) Input(text string, options ...DataOption) (err error) {
return wd.SendKeys(text, options...)
}
func (wd *wdaDriver) KeyboardDismiss(keyNames ...string) (err error) {
// [[FBRoute POST:@"/wda/keyboard/dismiss"] respondWithTarget:self action:@selector(handleDismissKeyboardCommand:)]
if len(keyNames) == 0 {