Questions tagged [selenium-firefoxdriver]

Selenium FirefoxDriver is a WebDriver implementation that controls the Firefox browser using a Firefox plugin.

Firefox driver is included in the selenium-server-stanalone.jar available in the downloads. The driver comes in the form of an xpi (firefox extension) which is added to the firefox profile when you start a new instance of FirefoxDriver.

Pros

  • Runs in a real browser and supports Javascript
  • Faster than the InternetExplorerDriver

Cons

  • Slower than the HtmlUnitDriver.

References:

893 questions
516
votes
33 answers

Selenium using Python - Geckodriver executable needs to be in PATH

I'm new to programming and started with Python about two months ago and am going over Sweigart's Automate the Boring Stuff with Python text. I'm using IDLE and already installed the Selenium module and the Firefox browser. Whenever I tried to run…
tadm123
  • 6,523
  • 4
  • 20
  • 35
107
votes
15 answers

Selenium 2.53 not working on Firefox 47

I am getting error while using Firefox with WebDriver. org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox version:47.0 Selenium:2.53.0 Windows 10 64 bit Is anyone getting a…
61
votes
6 answers

Selenium-Debugging: Element is not clickable at point (X,Y)

I try to scrape this site by Selenium. I want to click in "Next Page" buttom, for this I do: driver.find_element_by_class_name('pagination-r').click() it works for many pages but not for all, I got this error WebDriverException: Message: Element…
50
votes
3 answers

Difference between webdriver.firefox.marionette & webdriver.gecko.driver

I am now learning Selenium and have met a problem. I am aware that Selenium supported old Firefox version by default without a driver. And for recent versions of Firefox, we have to download the driver and define it using…
42
votes
8 answers

Firefox webdriver opens first run page all the time

How to disable this "first run" page once and for all for FF? When FF driver is created, it opens tab with - https://www.mozilla.org/en-US/firefox/42.0/firstrun/learnmore/ and additional tab with target page.
30
votes
11 answers

geckodriver.exe not in current directory or path variable, Selenium 2.53.1 + Firefox 48 + Selenium 3 Beta

Seen a lot of questions regarding Selenium 2.53.1 and Firefox 47.0.1, but none in regards to the Selenium 3 Beta release. I am attempting to use the new gecko/marionette Firefox webdrivers, but even though I have the driver location in; my…
SeanS
  • 398
  • 1
  • 5
  • 14
28
votes
3 answers

Which Firefox version is compatible with Selenium 2.53.0?

Which Firefox version is compatible with Selenium 2.53.0? I tried Firefox 45.0 and I am getting this exception: org.openqa.selenium.WebDriverException: Failed to connect to binary …
user16165
  • 297
  • 1
  • 3
  • 9
23
votes
7 answers

How to get webDriver to wait for page to load (C# Selenium project)

I've started a Selenium project in C#. Trying to wait for page to finish loading up and only afterwards proceed to next action. My code looks like this: loginPage.GoToLoginPage(); loginPage.LoginAs(TestCase.Username, TestCase.Password); …
16
votes
1 answer

What are the benefits of using Marionette FirefoxDriver instead of the old Selenium FirefoxDriver for a Selenium tester?

Last weeks there has been a lot of noise about this new FirefoxDriver called Marionette. To use Firefox with Selenium, we used to use the "old" Selenium FirefoxDriver. From Firefox 48.0 onwards it is going to be required to use this new…
15
votes
2 answers

Equivalent of jQuery.active in javascript Selenium Web Driver

I'm using Selenium webdriver to interact with some website. If the website is using jQuery we can get the pending AJAX request by using jQuery.active: JavascriptExecutor jsx = (JavascriptExecutor) driver; Int totAjaxRequest =…
14
votes
2 answers

How can I pass a fake media stream to firefox from command line?

I am developing a java/selenium based application and need to pass media i.e. audio and/or video files to the browser. I have been able to successfully do this in Chrome using the below code snippet: DesiredCapabilities capabilities =…
13
votes
2 answers

How can I make a Selenium script undetectable using GeckoDriver and Firefox through Python?

Is there a way to make your Selenium script undetectable in Python using geckodriver? I'm using Selenium for scraping. Are there any protections we need to use so websites can't detect Selenium?
user12285770
13
votes
2 answers

exclude switches in firefox webdriver options

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…
lucas
  • 1,345
  • 12
  • 22
13
votes
7 answers

Selenium 3.0 Firefx Driver fails with org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session

Selenium 3.0 Firefx Driver fails with org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. System.setProperty("webdriver.gecko.driver", "..../geckodriver.exe"); capabilities =…
KingArasan
  • 713
  • 1
  • 10
  • 19
11
votes
6 answers

How to make Firefox open all links opened via WebDriver in the same window?

I want to open all links in the same window instead in new window. I tried profile.setPreference("browser.link.open_newwindow", 1) but the result is: WARNING: traffic.loop 0 error: Preference browser.link.open_external may not be overridden: frozen…
1
2 3
59 60