一 Appium VIVO X9 使用 Appium 進行自動化編輯文本框時候彈出輸入法選擇窗口,選擇后仍然無法輸入文本,導致定位元素失敗
1解決法:
在執行腳本前,對文本框進行一次“剪切”操作。運行腳本時,會自動粘貼,並進行send_key賦值,不知什么原理,但是能解決由此導致定位元素失敗的問題。
2解決法:
Vivo手機設置-輸入法設置,開啟Appium IME和Unicode IME,默認輸入法可以選擇Unicode IME。
二 報E selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command 'C:\\Users\\fengye\\AppData\\Local\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s f39fc49d shell ime enable io.appium.settings/.UnicodeIME' exited with code 4294967177'; Stderr: ''; Code: '4294967177'
解決:vivo手機開發者選項中開啟USB模擬點擊。