-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How could I using unicodeKeyboard to input sentences. #242
Comments
I'm not sure about your intentions, but I understand you want to enter Chinese text into an As an example, I'm using Calendar and creating a Reminder. you can enter unicode text and then the corresponding code will be generated. You need AndroidViewClient >= 15.2.1 for this to work correctly. The generated line in this case is self.vc.uiAutomatorHelper.findObject(
bySelector='[email protected]:id/title_edit_text,[email protected],text@$Remind me to…,[email protected]')
.setText("提醒我包括中文支持") |
Very thanks, it's do a solution to input Chinese text ! However, as I can't using uiAutomatorHelper (Culebra Tester always show "Instrumentation not installed" on the bottom, although I have already installed the Instrumentation), I'm now using viewserver, and detect the input element via findViewByIdOrRaise, then using type method to enter Chinese as below, but it doesn't work, have you any ideas? This method seems only support English. |
Are you 100% sure you have both APKs installed? If so, and still detecting "Instrummentation not installed", can you please provide logcat so we can determine the problem. ViewServer is very old an a lot of things won't be supported. In such cases
when unicode text is detected in an argument. My recommentdation: stick to
Hope you enjoy the ride. You'll be glad to hear then, that shortly, CulebraTester will "learn" how to test Android apps automatically, most like concertina mode but AI based. |
With appium, I can using unicodeKeyboard to type and send Chinese sentences, like below, but I'm not sure AndroidViewClient has similar function
desired_caps["unicodeKeyboard"] = True desired_caps["resetKeyboard"] = True driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps) driver.find_element_by_id("id/text_input").send_keys(question)
The text was updated successfully, but these errors were encountered: