Questions tagged [geckodriver]

GeckoDriver is Mozilla's WebDriver implementation for the Firefox web browser, and works best with Firefox versions 48 and onwards.

Proxy for using W3C WebDriver-compatible clients to interact with Gecko-based browsers.

This program provides the HTTP API described by the WebDriver protocol to communicate with Gecko browsers, such as Firefox. It translates calls into the Marionette automation protocol by acting as a proxy between the local- and remote ends.

See also:

1443 questions
12
votes
3 answers

Selenium crashing with selenium.common.exceptions.WebDriverException: Message: newSession

OS: Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-1066-aws x86_64) Selenium Version: selenium==3.6.0 Browser: Mozilla Firefox 63.0 Geckodriver version : geckodriver-v0.19.0-linux64 Expected Behavior - Create a new firefox browser and do some steps -…
skyfail
  • 404
  • 1
  • 6
  • 18
12
votes
2 answers

Script Suddenly Stops Crawling Without Error or Exception

I'm not sure why, but my script always stops crawling once it hits page 9. There are no errors, exceptions, or warnings, so I'm kind of at a loss. Can somebody help me out? P.S. Here is the full script in case anybody wants to test it for…
oldboy
  • 5,729
  • 6
  • 38
  • 86
12
votes
1 answer

How do I disable geckodriver's log on Selenium (Python 3)?

I have not been able to find the answer to this. This particular answer only tells we can relocate it. How do I relocate/disable GeckoDriver's log file in selenium, python 3? Is there no way to permanently disable it?
sky_lynx
  • 131
  • 1
  • 8
12
votes
4 answers

Is it Firefox or Geckodriver, which creates "rust_mozprofile" directory

Whenever we invoke Firefox, under '/tmp' directory rust_mozprofile directories are getting created. As Firefox internally calls Geckodriver we are not sure whether Firefox or Geckodriver is creating rust_mozprofile directory. I do want to know…
Yaswanth
  • 483
  • 1
  • 9
  • 25
12
votes
1 answer

Difference between geckodriver and marionette

I don't fully understand the difference between geckodriver and marionette. Can anyone clarify the difference between them? For example, when I use Selenium WebDriver to control a Firefox browser, I need a geckodriver binary to listen the…
Boni García
  • 4,618
  • 5
  • 28
  • 44
11
votes
4 answers

Selenium 3.6.0 & webdriver = new FirefoxDriver(capabilities) - deprecated?

Since upgrading to the latest version of Selenium the following code seems to be deprecated: Selenium 3.6.0 & webdriver = new FirefoxDriver(capabilities) - deprecated? Full code: System.setProperty("webdriver.gecko.driver",…
xGIx
  • 509
  • 3
  • 7
  • 26
11
votes
2 answers

Which Firefox browser versions supported for given Geckodriver version?

I regularly update Firefox and Chrome browser, current version 54.0.1 32 bit So which version of Geckodriver to be used. I tried with both version Geckodriver-v0.18.0 and geckodriver-v0.16.1 For future reference where can I find the list the…
11
votes
1 answer

geckodriver: how to specify "moz:firefoxOptions" on node.config for selenium grid

I am running tests on selenium grid using nunit C# with: selenium-standalone-server: v3.3.1 selenium webdriver: v3.3 geckodriver: 0.15 firefox: v52 Firefox is not installed on the default location and so I get following exception on running…
H.D.
  • 455
  • 5
  • 19
11
votes
3 answers

Python Set Firefox Preferences for Selenium--Download Location

I use Selenium Marrionette and GeckoDriver to pull web data. I use the following to set my Firefox profile preferences: fp = webdriver.FirefoxProfile() fp.set_preference("browser.download.folderList",…
d84_n1nj4
  • 1,712
  • 6
  • 23
  • 40
11
votes
3 answers

Unable to connect to Geckodriver

I'm trying to run the example scirpt of Selenium with Ruby on Rails. I've to run it with a proxy. Here's my code: require 'rubygems' require 'bundler/setup' # require your gems as usual require…
Twinfriends
  • 1,972
  • 1
  • 14
  • 34
10
votes
1 answer

TypeError: WebDriver.__init__() got an unexpected keyword argument 'firefox_options' error using firefox_options as arguments in Selenium Python

I'm trying to create a script which downloads a file from a website and for this I want to change the download filepath. When I try to do this with the Firefox options it gives me this error: TypeError: WebDriver.__init__() got an unexpected keyword…
10
votes
4 answers

Python Selenium 4 - Firefox FirefoxBinary() Deprecated

I have upgraded to Selenium 4 new_binary_path = FirefoxBinary('path_to_binary') selenium.webdriver.Firefox(executable_path=path, options=ops,…
Rhys
  • 4,926
  • 14
  • 41
  • 64
10
votes
4 answers

Browsing context has been discarded using GeckoDriver Firefox through Selenium

I didn't make any changes to my python selenium program and it worked fine 3 days ago. Now when i try to use it i get: Browsing context has been discarded Failed to decode response from marionette Any idea what could have caused this outside the…
10
votes
1 answer

DeprecationWarning: use setter for headless property instead of set_headless opts.set_headless(headless=True) using Geckodriver and Selenium in Python

I have a very basic Python script that runs perfectly on my local machine (Mint 19), and yet fails on a remote box (Ubuntu 16.04). Same files, both Python 3.7. I have geckodriver in /usr/local/bin and it checks out from path with gecko --version…
krypterro
  • 391
  • 1
  • 3
  • 14
10
votes
3 answers

installing geckodriver only using terminal

I am using a headless ubuntu, and want to install latest geckodriver. So I must install by entering a command line. my ubuntu is 14.04 trusty. But, I don't know the command to install geckodriver. https://github.com/mozilla/geckodriver/ and here are…
heyzude
  • 363
  • 1
  • 4
  • 20
1 2
3
96 97