SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

AndroidDriver use sendKeys method can't support chinese #3865

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 3865

What steps will reproduce the problem?
1.AndroidDriver use sendKeys method can't support chinese
2.
3.

What is the expected output? What do you see instead?
    code:
    driver.findElement(By.name("username")).sendKeys("张三");

    finish this code,the textbox is nothing input,why?thank you!!!

Selenium version:2.21
OS:Android 4.03
Browser:
Browser version:

Please provide any additional information below. A sample reduced test
case, or a public URL that demonstrates the problem will intrigue our merry
band of Open Source developers far more than nothing at all: they'll be far
more likely to look at your problem if you make it easy for them!

Reported by cupidliu713 on 2012-05-08 04:23:04

lukeis commented 8 years ago

Reported by barancev on 2012-05-09 10:35:57

lukeis commented 8 years ago
I also encountered the same problem.
First,I open a page by calling function below:

driver.get("http://m.huawei.com")

then,call function below to input some chinese in the input box:

driver.find_element_by_id("Search_Input").send_keys(u"中文搜索"),

I can not see anything in the Input box of page.

the attachment is my testcase file.

the version of webdriver is android-server-2.21.
android's version is 4.0.3.

Reported by lsqcugjsj on 2012-10-20 08:25:05


lukeis commented 8 years ago
Selenium project no longer supports the AndroidDriver.

Please use Selendroid instead:
http://selendroid.io/webview.html

And log any issues against that project:
https://github.com/selendroid/selendroid/issues

Reported by luke.semerau on 2013-12-26 21:57:35

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:15:22