Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98768

(Small snippet) How can I change my code to make Firefox initial download options change using selenium webdriver

$
0
0

Image showing what I want to change, I want it to save the file upon opening in browser rather than opening in Firefox

This is a small snippet of my code, but it attempts to change the preference based Selenium's built in pref changer, I didn't do much more than basic set up a Firefox profile or anything because I saw pretty differing opinions online but basically I'm struggling to find a good answer for what I'm doing incorrectly or if I just need to do better setup or what-

help would be appreciated, thankscode snippet below

fp=webdriver.FirefoxProfile()fp.set_preference(key="application/pdf", value="save")


Viewing all articles
Browse latest Browse all 98768

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>