Skip to content

Small helper to be able to download files in selenium tests trough javascript avoiding to depend on the drivers missing download capabilities.

Notifications You must be signed in to change notification settings

faiteanu/SeleniumDownloadHelper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SeleniumDownloadHelper

It is still WIP but Chrome, Safari, Firefox, PhantomJS and Internet Explorer are working so far with this method. IE only tested on MS Windows and Safari only on OSX.

HTMLUnit is not working but the why is still open (expected.length=187514 actual.length=176549). Maybe a bug in RhinoJS which messes up the base64 conversion or some early return in the XHR call?

Usage

@see src/test/java/ch/racic/selenium/helper/download/SeleniumDownloadHelperTest.java

Maven Central

<dependency>
    <groupId>ch.racic.selenium.helper</groupId>
    <artifactId>SeleniumDownloadHelper</artifactId>
    <version>0.3.2</version>
</dependency>

About

Small helper to be able to download files in selenium tests trough javascript avoiding to depend on the drivers missing download capabilities.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 73.2%
  • JavaScript 25.9%
  • VBScript 0.9%