firefox-driver

Unable to create session error using GeckoDriver and Firefox through Selenium and Java org.openqa.selenium.WebDriverException

会有一股神秘感。 提交于 2020-03-04 23:06:22
问题 I'm able to run tests with Intellij but when I run the same tests via Jenkins I get the following error. org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:46285 Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'M-AMS-DEVELOPER', ip: '108.61.189.113', os.name: 'Windows Server 2012 R2', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_241' Driver info: driver.version:

Firefox Profile unable to automatically download file

心不动则不痛 提交于 2020-01-25 06:47:39
问题 I am trying to bypass the firefox download manager window when downloading a pdf file in a selenium test by using firefox profile settings: FirefoxProfile profile = new FirefoxProfile(); profile.setPreference("browser.download.folderList", 2); profile.setPreference("browser.download.dir", "path/to/downloads"); profile.setPreference("browser.download.useDownloadDir", true); profile.setPreference("browser.helperApps.neverAsk.openFile", "application/x-pdf, application/pdf, application/octet

How to enable Adobe Flash in FireFox Selenium webdriver with FirefoxProfile

倖福魔咒の 提交于 2019-12-07 05:09:32
问题 I need an automated way to enable Flash in the Firefox Selenium webdriver without user interaction. I have tried: FirefoxProfile profile = new FirefoxProfile(); //As 0 is to disable, I used 1. I don"t know what to use. profile.setPreference("plugin.state.flash", 1); WebDriver driver = new FirefoxDriver(profile); But this still requires me to click "Allow". This is shown all the time, even with the code above 回答1: This didn't work for me: profile.setPreference("dom.ipc.plugins.enabled

How to enable Adobe Flash in FireFox Selenium webdriver with FirefoxProfile

那年仲夏 提交于 2019-12-05 09:43:04
I need an automated way to enable Flash in the Firefox Selenium webdriver without user interaction. I have tried: FirefoxProfile profile = new FirefoxProfile(); //As 0 is to disable, I used 1. I don"t know what to use. profile.setPreference("plugin.state.flash", 1); WebDriver driver = new FirefoxDriver(profile); But this still requires me to click "Allow". This is shown all the time, even with the code above This didn't work for me: profile.setPreference("dom.ipc.plugins.enabled.libflashplayer.so","true"); Instead I used: profile.setPreference("plugin.state.flash", 2); I presume the "2" also