python android selenium send_keys BACK_SPACE

时间:2018-01-09 17:02:59

标签: python selenium testing appium backspace

无法删除输入文本中的最后一个字母,???

appium.find_element_by_id("title").send_keys("totot")
appium.find_element_by_id("title").send_keys(Keys.BACK_SPACE)

1 个答案:

答案 0 :(得分:-1)

目标是更改键盘 替换:

appium.activate_ime_engine('io.appium.android.ime/.UnicodeIME')

by:

appium_driver.activate_ime_engine('com.jb.gokeyboard/.GoKeyboard')