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:

1025 questions
6
votes
5 answers

java.lang.NoSuchMethodError while creating a FirefoxDriver in java

While trying to: WebDriver driver=new FirefoxDriver(); I get the following error: java.lang.NoSuchMethodError: org.openqa.selenium.Proxy.extractFrom(Lorg/openqa/selenium/Capabilities;)Lorg/openqa/selenium/Proxy; at…
Martin Muñoz
  • 61
  • 1
  • 1
  • 3
6
votes
1 answer

How to change Firefox web driver proxy settings at runtime?

I use Selenium 2.35.0 and configure proxy settings like: DesiredCapabilities cap = new DesiredCapabilities(); org.openqa.selenium.Proxy proxy = new…
Yury Bushev
  • 642
  • 9
  • 25
6
votes
1 answer

Why does the Selenium Firefox Driver consider my modal not displayed when the parent has overflow:hidden?

EDIT: I think there is an issue open on this already: http://code.google.com/p/selenium/issues/detail?id=5717 So basically I'm using the Firefox Driver and the div with id="page-content" is causing my selenium test to fail with the error listed in…
ton.yeung
  • 4,793
  • 6
  • 41
  • 72
5
votes
1 answer

How to clean up all Selenium Firefox Processes

I've created a web scraper with python (3.6) and a selenium, firefox web driver. I've set up a cronjob to run this scraper every few minutes, and it seems to all be working, except that over time (like a few days), the memory on my Ubuntu VPS (8GB…
aforbes
  • 143
  • 8
5
votes
1 answer

How to quit all the Firefox processes which gets initiated through GeckoDriver and Selenium using Python

I am using python 3.7 + selenium + geckodriver.exe + firefox 70.0.1x64,I know driver.quit() could close firefox window,but in some situation I can not quit firefox totally,I do not know why,this is my code: from selenium import webdriver import…
5
votes
2 answers

selenium.common.exceptions.InvalidSessionIdException using GeckoDriver Selenium Firefox in headless mode through Python

I am tryin to use python an selenium to automate some cases on firefox headless mode. I think, I did every settings that I need but still webdrvier is not initialized. My problem is getting the exception approximately 30-60 sec after executing my…
5
votes
1 answer

C# Selenium Firefox - Error Exception "Browsing context has been discarded"

I'm writing a program who help my customer to download invoice PDF from a website, everything works well the first time I use drv.Navigate().GoToUrl(URL);. After that the program sleep for a certain amount of time and when awake starts to search…
Mutu A.
  • 248
  • 3
  • 17
5
votes
2 answers

How to enable Adobe Flash in FireFox Selenium webdriver with FirefoxProfile

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…
5
votes
0 answers

Selenium Node driver.manage().window().setPosition(new Point(X,Y)); Not having any effect

So I am running a simple enough Selenium program through the GRID. I have Grid and Node all setup working perfectly. The issue I am having is with the below : driver.manage().window().setPosition(new Point(X,Y)); This appears to have zero…
5
votes
1 answer

Use random userAgent for Selenium (python)

Need use random userAgent. My code it is: #!/usr/bin/python # Import selenium from selenium import webdriver # init Profile options for navigation fp = webdriver.FirefoxProfile() # Set userAgent fp.set_preference("general.useragent.override",…
5
votes
1 answer

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

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…
Saurabh Gaur
  • 23,507
  • 10
  • 54
  • 73
5
votes
5 answers

How to fix Selenium WebDriverException: "The browser appears to have exited"

I got this exception when I want to use FireFox webdriver raise WebDriverException "The browser appears to have exited " WebDriverException: Message: The browser appears to have exited before we could connect. If you specified a log_file in the …
parik
  • 2,313
  • 12
  • 39
  • 67
5
votes
0 answers

Selenium WebDriver - Session was terminated due to CLIENT_GONE

I am using Selenium WebDriver to run a suite of tests in the grid mode. When I run all the test and if it is ALL PASS, I have no issues with the test suite. But if a test fail say in a suite of 200 tests, if test 121 failed, all the remaining test…
5
votes
2 answers

Selenium extremely slow on reading the DOM

Selenium interaction with DOM seems extremely slow while doing couple of things in every page instantiation. Throughout the site we have visible spinner that indicates any outstanding API calls resolved or not. In summary I have three methods that…
5
votes
1 answer

How to prevent logging for FirefoxDriver?

I have WebDriver 2.41 and Firefox 28 and when my test creates instance of FirefoxDriver I see the following strings in console: *** LOG addons.manager: Application has been upgraded *** LOG addons.xpi: startup *** LOG addons.xpi: Skipping…
user1590561
  • 583
  • 2
  • 6
  • 17