selenium-firefoxdriver

I can't select options in dropdown list in FireFox 48 using marionette driver and selenium 3

五迷三道 提交于 2019-12-09 03:31:43
问题 I tried the new geckodriver with marionette turned on for FF48 and selenium 3 but the test can't select the option in the drop down list for any element. My test works fine in FF45 and all other browsers. Only marionette driver does not select the option in the drop down list new Select(driver.findElement(By.Id("topic"))).selectByVisibleText(item); The code works fine until I started using gecko driver with marionette. Below is the code I am using to setup geckodriver with marionette. System

GetAttribute of WebElement in Selenium Firefox Driver Returns Empty

大兔子大兔子 提交于 2019-12-08 10:02:56
问题 So I have a test that was written, and the test runs and works using the Selenium ChromeDriver just fine. I was tasked with getting the tests working on the FirefoxDriver as well. Part of the test we input text into a login field, and then check the login field to make sure it was input. The way we check the field is like this public virtual string Text => WebElement.GetAttribute("value"); while (!Text.Equals(inputText) && count++ < 3) This works perfectly fine in Chrome . However it does not

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

RSelenium not working with Firefox

孤街浪徒 提交于 2019-12-06 13:34:18
I know my question is similar to this one , but he's trying to use Chrome while I'm trying to use Firefox (47.0.1). So basically, I'm trying to use RSelenium. Here is my code : > library(RSelenium) > checkForServer() > startServer() > mybrowser <- remoteDriver() > mybrowser$open() And with that last line, I get the following error. [1] "Connecting to remote server" Error: Summary: UnknownError Detail: An unknown server-side error occurred while processing the command. class: org.openqa.selenium.WebDriverException I tried removing-reinstalling the RSelenium package. I also tried what this

opening private mode in firefox through selenium

丶灬走出姿态 提交于 2019-12-06 07:18:07
Actually i want to open a incognito/private mode of firefox browser through selenium , but everytime i tried it was opening firefox in normal mode. After some googling I got this code,which i used to open private mode in firefox through selenium but it is not working. FirefoxProfile firefoxProfile = new FirefoxProfile(); firefoxProfile.setPreference("browser.privatebrowsing.autostart", true); WebDriver driver = new FirefoxDriver(firefoxProfile); driver.get("http://www.google.com"); can someone help how to do this? 来源: https://stackoverflow.com/questions/40420094/opening-private-mode-in-firefox

Selenium firefox - WebDriverException: Reached error page: about:certerror

人走茶凉 提交于 2019-12-06 03:27:05
Meta :- Firefox v51.0.1 (32-bit) Windows 10 Selenium 3.0.1 Geckodriver Win32 v0.13.0 Java v1.8.0_71 Steps to reproduce :- WebDriver driver = new FirefoxDriver(); driver.get("untrusted/self-signed URL") Stacktrace :- org.openqa.selenium.WebDriverException: Reached error page: about:certerror?e=nssBadCert&u=xxxxxxxx&c=UTF-8&f=regular&d=xxxxxx%20uses%20an%20invalid%20security%20certificate.%0A%0AThe%20certificate%20is%20not%20trusted%20because%20it%20is%20self-signed.%0AThe%20certificate%20is%20not%20valid%20for%20the%20name%20xxxxxx%0A%0AError%20code%3A%20%3Ca%20id%3D%22errorCode%22%20title%3D

how to setup selenium python environment for firefox?

倖福魔咒の 提交于 2019-12-06 01:57:45
问题 How to setup selenium python environment for Firefox? I am using Firefox 50, selenium 3, python 3.5, I tried with many things binary and copying the geckodriver in environment path etc. 回答1: As far as I understand, you want to develop in python, using selenium library and work with Firefox webdriver. install python (python3 already contains pip) install selenium ( pip install selenium OR some IDEs like PyCharm propose to install libraries, just import selenium) download Mozilla webdriver

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

Python Selenium - What are possible keys in FireFox webdriver profile preferences

為{幸葍}努か 提交于 2019-12-05 04:54:15
问题 I couldn't really find this information anywhere, I am looking for a list of possible keys that can be used in the profile.set_preference() API. Here is some context: from selenium import webdriver from pyvirtualdisplay import Display display = Display(visible=0, size=(1024, 768)) display.start() profile = webdriver.FirefoxProfile() Now, if I want to, say specify a client SSL, I need to configure that as a preference of FireFox profile. I am trying to find the list of all the preferences so I

exclude switches in firefox webdriver options

♀尐吖头ヾ 提交于 2019-12-04 21:48:24
问题 Using Selenium and python, I can do this with Chrome webdriver: options.add_experimental_option("excludeSwitches", ["enable-automation"]) driver = webdriver.Chrome(options = options) but I can't find a similar attribute for Firefox's webdriver options. Does one exist? 来源: https://stackoverflow.com/questions/57122151/exclude-switches-in-firefox-webdriver-options