Created
September 24, 2018 22:30
-
-
Save boxbeatsy/0125d17f35c9a7478dc0bef391ea60d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
profile = Selenium::WebDriver::Firefox::Profile.new | |
profile['browser.download.folderList'] = 2 # custom location | |
profile['browser.download.dir'] = "/home/boxbeatsy/Downloads" | |
options = Selenium::WebDriver::Firefox::Options.new(args: ['-headless',"--display=#{headless_display_port}"], profile: profile, binary: firefox_path, page_load_strategy: 'none') | |
@driver = Selenium::WebDriver.for :firefox, options:options | |
@b = Watir::Browser.new(@driver) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment