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
7
votes
4 answers

How to start Firefox with with specific profile Selenium Python geckodriver

Here is my code: profile = webdriver.FirefoxProfile('C:\\Users\\Administrator\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\kvycjolb.Prdel') driver = webdriver.Firefox(profile) Im not getting any error and firefox starts, but it just does not load…
user3281831
  • 839
  • 5
  • 14
  • 24
7
votes
4 answers

Firefox via GeckoDriver throws exception on .Quit() in Selenium 3.0.1

Context: Firefox 50.0.2 64bit, C#, Visual Studio 2015, Windows Server 2012 R2, Azure, ClearScript.V8.5.4.7, Selenium.Mozilla.Firefox.Webdriver.0.6.0.1, Selenium.WebDriver.GeckoDriver.Win64.0.11.1 I'm using ClearScript to wrap the Selenium objects…
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
7
votes
5 answers

Selenium 3 Firefox .click() not working

Since I upgraded to the newest Selenium version my Firefox driver is not working properly. Failing to find an answer from searching Google/Stack I hope someone here has an answer. I've build a page object model for logging in to a webpage, clicking…
MSJ
  • 154
  • 1
  • 3
  • 10
6
votes
1 answer

How to use Selenium with Firefox Proxy in Selenium 4.x

I need to pass through options as profiles are deprecated. I am trying to use FF to proxy to a secure browser. However, I ran into a problem, which is described below: My code: from selenium import webdriver from selenium.webdriver.common.by import…
Alisa Bom
  • 61
  • 1
  • 2
6
votes
1 answer

ARM64 Geckodriver for Linux

I require an ARM64 version of geckodriver for Linux. I am aware you can compile it yourself, however I have no idea how to do that. I have also found this post... if you look at the accepted answer, it is exactly what I need, but is not explained in…
BlueBell
  • 113
  • 8
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
0 answers

Setting geckodriver to path with heroku

Despite having geckodriver in the same folder that I'm pushing through using heroku, the compt still says that selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH. I've also initiated the driver…
6
votes
2 answers

Can't open more than max number of tabs with Selenium Webdriver?

I am trying to open a list of different URLs, opening one per tab, but when the number exceeds 20 ~ 21, stop opening tabs. I've tried to separate the list into groups of 20, and creating new instances of the webdriver, and that works fine, but I…
Luis Valdez
  • 107
  • 1
  • 6
6
votes
2 answers

Message: Tried to run command without establishing a connection

New to this, apologies for the novice question. Trying to run a script using Python, Selenium and the unittest module. Have the typical setUp(), test_1, test_2, tearDown() method structure. Since I've added in more than one test, I get the following…
NikoCon
  • 99
  • 1
  • 2
  • 10
6
votes
1 answer

How can I insert path (environmental variable) for geckodriver in google colab?

I want to run selenium in Google Colab through gecko driver, but it told me: executable needs to be in PATH I uploaded firefox and gecko driver in Google Colab and copied gecko driver's path. The code worked well on my PC. firefox and gecko driver…
sheida
  • 111
  • 3
  • 6
6
votes
2 answers

NotADirectoryError: [Errno 20] Not a directory: '/home/ghost/automation/pwd/geckodriver' with GeckoDrriver Firefox and Selenium using Python3

im using pycharm and my pythn version 3.6.7 pip 9.0.1 and selenium version selenium-3.141.0 urllib3-1.24.1 i install selenium using this commands pip3 install selenium then i code like this from selenium import webdriver driver =…
user8337986
6
votes
2 answers

Selenium Python selenium.common.exceptions.WebDriverException: Message: connection refused using geckodriver and firefox

I'm having issues running my automation test scripts. When I run my script, a browser will appear but it will not type the URL and waits for 10 seconds until it throws an exception. Is there any solutions I can use so then I can get my automation…
kav
  • 165
  • 4
  • 12
6
votes
5 answers

org.openqa.selenium.SessionNotCreatedException: Unable to find a matching set of capabilities while initiating Firefox v37 through Selenium v3.11.0

I am trying to run test a run a website in Firefox, but I am getting error "The path to the driver executable must be set by the webdriver.gecko.driver system property;" I have set the path correctly, still don't know where the problem is. Here is…
Rohn Kerry
  • 155
  • 1
  • 4
  • 15
6
votes
4 answers

selenium.common.exceptions.WebDriverException: Message: 'Geckodriver' executable may have wrong permissions using GeckoDriver Firefox Selenium Python

I get this error when I try to execute my first Selenium/python code. selenium.common.exceptions.WebDriverException: Message: 'Geckodriver' executable may have wrong permissions. My code : from selenium import webdriver from…
Asif
  • 61
  • 1
  • 1
  • 2
6
votes
7 answers

Python Selenium : How to hide geckodriver?

I am writing an program for a web automation in python. Is here a ways to hide the geckodriver? So that the console (see picture) won't show up when I start the program. console of geckodriver here is a fraction of my code: from selenium import…
user8495738
  • 147
  • 1
  • 3
  • 14