Parasol: Controlling chrome download directory

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Parasol: Controlling chrome download directory

Iwan Vosloo
Hi there,

How do I set the download directory for chrome with Parasol?

In Java, it seems you set it on a ChromeOptions [1] object, which in
turn is passes to your DesiredCapabilities.

 From a cursory scanning of the java source (without understanding too
much...) I have tried the following DesiredCapabilities without success:

desiredDriverBrowserCapabilities
   ^ BPDesiredCapabilities chrome
" setCapability: 'chromeOptions'  << also tried this"
        setCapability: 'goog:chromeOptions'
           to:
             (Dictionary new
                 at: 'prefs'
                 put:
                   (Dictionary new
                     at: 'download.default_directory'
                     put: '/tmp/testdownloads';
                     at: 'download.prompt_for_download'
                     put: false;
                     at: 'download.directory_upgrade'
                     put: true;
                     yourself);
           yourself);
     yourself


[1]
https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/chrome/ChromeOptions.html


--

Regards
Iwan
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside