It's worth mentioning that the new ChromeDriver(cap) line is deprecated, but I can't seem to find documentation on how to use the method that replaced it that covers this use case. I keep getting a popup prompt asking me if downloading files is okay. The call to the download page is made using a simple driver.get(url) WebDriver driver = new ChromeDriver(cap) Options.addArguments("disable-popup-blocking") ĭesiredCapabilities cap = DesiredCapabilities.chrome() Ĭap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true) Ĭap.setCapability(ChromeOptions.CAPABILITY, options) tExperimentalOption("prefs", chromePrefs) String downloadFilepath = "//User//username//automation-testing//" ĬhromePrefs.put("fault_content_settings.popups", 0) ĬhromePrefs.put("fault_directory", downloadFilepath) ĬhromeOptions options = new ChromeOptions() I've made the following code: tProperty("", "/Users/username/chromedriver") I've read through a bunch of selenium topics on here and I've been going in circles on how the permissions / options should be set for the chromedriver.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |