SeleniumHQ / selenium-google-code-issue-archive

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

AndroidDriver file upload not working from WebDriver WebView. #5252

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 5252

What steps will reproduce the problem?
1. Use the android server apk to open the URL for a page that has a file input element.

self.browser = webdriver.Remote("http://localhost:8080/wd/hub", webdriver.DesiredCapabilities.ANDROID)
self.browser.get("http://www.cs.tut.fi/~jkorpela/forms/file.html")

2. Manually click on the file input element in the WebView on the device. In the case
above this is the "Choose file" button. 

What is the expected output? What do you see instead?

I'd expect a File chooser dialog to come up. That's what happens in the Android browser
when I click on a file input element. 

Selenium version: android-server-2.21.0.apk
OS: Android 4.1.1
Browser: Android WebView

It seems like there is some additional work to get file uploads to work in a WebView.
Here is a link to a post that discusses this. 

http://stackoverflow.com/questions/5907369/file-upload-in-webview

Reported by alex.glosband on 2013-02-27 17:14:35

lukeis commented 8 years ago

Reported by barancev on 2013-02-27 17:41:31

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:36

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:16:55