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
8
votes
3 answers

Export as PDF using Selenium Webdriver Screenshot

Does anyone know if it's possible to export HTML to PDF using the screenshot feature in Selenium Firefox WebDriver? I have a webpage which has print specific css which I need to download automatically. I understand that the screenshot feature takes…
8
votes
8 answers

WebDriver cannot be resolved to a type FirefoxDriver cannot be resolved to a type

I found a similar error as mine on stackoverflow and added selenium webdriver jar files to the project using the below method : right click on project--> goto build path--> configure build path--> click on "Add external jars"--> add selenium jar…
Juvelle Mendes
  • 121
  • 1
  • 1
  • 10
8
votes
3 answers

How do I use relative paths with the webdriver.Navigate().GotoUrl()?

driver.Navigate().GoToUrl("/") sets the location to "/" instead of "http://www.domain.com/" another example would be driver.Navigate().GoToUrl("/view1") sets the location to "/view1" instead of "http://www.domain.com/view1" Either example would…
ton.yeung
  • 4,793
  • 6
  • 41
  • 72
7
votes
1 answer

How to set selenium webdriver from headless mode to normal mode within the same session?

Is it possible after setting selenium webdriver to a headless mode set it back to a normal mode? from selenium import webdriver from selenium.webdriver.firefox.options import Options options = Options() options.headless = True driver =…
7
votes
2 answers

Selenium 2.53.1 does not work on FireFox 48

I am using selenium to test our websites. When I build the project, there is an Exception :- OpenQA.Selenium.WebDriverException: Failed to start up socket within 45000 milliseconds. Attempted to connect to the following addresses:…
Terry Zhang
  • 4,541
  • 8
  • 23
  • 29
7
votes
2 answers

Which Firefox version is compatible with Selenium 2.48.0

who can help me? Which Firefox version is compatible with Selenium 2.48.0
U_K
  • 83
  • 1
  • 1
  • 5
7
votes
1 answer

Selenium-Phantomjs download csv

I am trying trying to download (save to disk) a CSV file using PhantomJS, from a dialogue box. Using firefox profile, this would be fairly simple by setting the browser profile properties. Any suggestions how could excel file be downloaded in…
7
votes
2 answers

Firefox 13 broke selenium tests

Apparently I upgraded my Firefox this morning along with some other system updates and now my selenium tests are broken! They worked fine yesterday and all passed. Performing hovers seems to be an issue. This is the error I got: Traceback (most…
6
votes
3 answers

Selenium Python (3.141.0, Geckodriver 0.30.0) can't open Firefox Webdriver: "Your Firefox profile cannot be loaded It may be missing or inaccessible."

FIXED: While upgrading Ubuntu 21.04 to 21.10 firefox (previously installed with apt) got removed and installed with the snap-version. Reversing (uninstalling the snap version & reinstalling with apt) this fixed my issue. I should've investigated…
Jonathan Gerdes
  • 101
  • 1
  • 6
6
votes
1 answer

JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory error using GeckoDriver Firefox and Selenium

I am getting below error even though I had set the correct path for gecko driver. Main: import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.Assert; import org.testng.annotations.Test; public…
Asell
  • 303
  • 1
  • 3
  • 15
6
votes
1 answer

I need to reduce time to perform selenium action chain

I am currently using action chains in selenium using Python3 to perform clicks on an element. Performing the two action chains required currently takes ~0.6 seconds I need them to be executed in < 0.1 seconds. Until now I have been using pyautogui…
6
votes
2 answers

Configuring proxies on Python + Selenium + Firefox WebDriver

I can't connect using proxies via Selenium Firefox WebDriver. With this configuration, the connection is generated but NOT via the proxy but the local server. There are two questions on this matter and this documentation, but none seem to have…
Rimo
  • 555
  • 1
  • 8
  • 18
6
votes
2 answers

WebDriverException: Error: Permission denied to access property "navigator"

Here is the deal with the "magic" encountered: The code works fine on Ubuntu 16.04, Ubuntu 15.10 on a fall with errors: org.openqa.selenium.WebDriverException: Error: Permission denied to access property…
6
votes
6 answers

In System.setProperty("webdriver.gecko.driver", ""), what is meant by "Path to your WebDriver"?

I have this exception since I upgraded to 3.0 beta with Firefox. Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property
Shahzad Masood
  • 71
  • 1
  • 1
  • 2
6
votes
3 answers

how to avoid google search detect selenium webdriver as unusual behaviour?

I try to use selenium webdriver to do one search by image in google so my user didn't need to manually open the browser and paste image url there. but google say Our systems have detected unusual traffic from your computer network. This page…
Angga
  • 2,305
  • 1
  • 17
  • 21
1 2
3
68 69