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")