Skip to content
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

Unable to upload files to remote WebDrivers #82

Open
tylersnavely-wf opened this issue Jun 18, 2015 · 3 comments
Open

Unable to upload files to remote WebDrivers #82

tylersnavely-wf opened this issue Jun 18, 2015 · 3 comments

Comments

@tylersnavely-wf
Copy link

We are not able to upload files on file input elements on remote services like Sauce Labs.
This is normally done by sending keys to the element. The Dart client doesn't appear to upload the file to remote services first like the others do. Python Example

If the keys being sent to an element are found to be a path that points to a local file, the file is upload to the WebDriver with a POST request to /session/$sessionId/file, and the response to that request is what's actually sent to the element.

  • Dart version: 1.9.0-dev.8.0
  • OS: OS X 10.10.3
  • Dart webdriver version: 0.9.1
@raphaeladam-wf
Copy link

+1

@DrMarcII
Copy link
Contributor

DrMarcII commented Sep 1, 2015

I actually really hate how the Selenium clients overload sendKeys for this.

What I would prefer is that a WebElement.uploadFile(File file) method is added that uploads the file and sends the appropriate keys to the element. The code for such a method is not that complicated, except that Selenium is expecting the sent file to be a zip file, and last time I looked there wasn't a zip file library for Dart.

@tylersnavely-wf
Copy link
Author

last time I looked there wasn't a zip file library for Dart.

I've not used it, but it looks to have a ZIP encoder: https://github.com/brendan-duncan/archive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants