Questions tagged [geckodriver]

0

votes
0

answer
3

Views

What is the best practice for using Firefox's geckodriver in a Selenium Automation Framework?

I've started trying out Selenium with Firefox and I've gotten it to work by downloading the gecko driver and referencing the file path in my code (I'm using C#): FirefoxDriverService service = FirefoxDriverService.CreateDefaultService(@'C:\mypath\'); IWebDriver driver = new FirefoxDriver(service);...
Wookovski
1

votes
2

answer
547

Views

org.openqa.selenium.WebDriverException: Error forwarding the new session cannot find : Capabilities {acceptInsecureCerts: true with Firefox

I have Windows 10 - 64, Firefox 61.0.2, Java installed. I'm executing my tests with selenium-grid and selenium-server-standalone-3.11.0.jar, and geckodriver 21.0, but when I run it, the test shows the following error: org.openqa.selenium.WebDriverException: Error forwarding the new session cannot fi...
Edith Alvarado
1

votes
2

answer
73

Views

Given xpath expression “//div[contains(@class='loader-overlay')]” is invalid with Selenium

After upgrading from version 2.53 to version 3.14 Selenium says Given xpath expression '//div[contains(@class='loader-overlay')]' is invalid This code System.setProperty('webdriver.gecko.driver', '/path/to/geckodriver/v0.23.0'); FirefoxOptions options = new FirefoxOptions(); //... driver = new Fir...
bpgergo
1

votes
0

answer
84

Views

Selenium reuse brower from 2 different application

I'm trying to open 2 different tabs in the same browser session from 2 different application. I'm using Firefox v57.0, Geckodriver v0.19.1, Selenium v3.8.0.0 The 2 apps are playing in the same time. I'm just trying to open a new tab from app 2 X seconds after App 1 open the first tab. App 1: Firefo...
John Daves
1

votes
0

answer
435

Views

Selenium WebDriver - Process unexpectedly closed

I have built a Docker image on top of Node to execute a bunch of Selenium tests. Here is my Dockerfile: #Dockerfile for individual node instance FROM node:latest #add the .js Selenium testcase files COPY ./tests /tests #add geckodriver (latest version) from local directory COPY geckodriver-v0.1...
wallnfl
1

votes
0

answer
410

Views

What code creates the selenium error “WebDriverException: Message: TypeError: rootNode is null”?

In this question I am not asking to help solve this problem (that would be too much asked). I am asking where I can find the code that actually generated that error message. The error massage occurs when running with a firefox webdriver with python-selenium. As far as I know the first part WebDrive...
Alex
1

votes
1

answer
229

Views

Protractor starts Firefox(with profile) but doesn't respond/run any of the code

Problem is the web app i'm testing is behind 2 basic auths and requires a proxy. I wanted to pass the two basic auths by adding AutoAuth addon in a FireFox profile and setting up that profile to load in my conf.js everytime I call a new instance of firefox. Problem is FF starts and does not execute...
Gencho Kerkeniakov
1

votes
0

answer
247

Views

Geckodriver unexpectedly exits when running multiple Firefox instances through Selenium

I am developing a system that runs 100+ headless Firefox instances through python Selenium. The number of live instances are launched gradually, 10-20 at a time, until the entire system is operational. This happens without problem for the first 50-60 instances. At any time above that new instances s...
arni
1

votes
0

answer
178

Views

Headless raspberry pi Selenium error

I'm trying running this code, it print pretick but it never reach to print tick. I'm getting this error after some time: selenium.common.exceptions.WebDriverException: Message: connection refused This is the code: from selenium.webdriver.firefox.options import Options from pyvirtualdisplay import D...
Erli
1

votes
0

answer
334

Views

Running Selenium + Geckodriver on Linux with no GUI

I am able to run my test in headless mode using Linux Mint. I then created a VPS with no GUI. The VPS is running Ubuntu 17.10, I installed Firefox on it by running apt install firefox but I get the following error when I run my Selenium test. Anyone has had success running Firefox headless mode on a...
Arya
1

votes
0

answer
55

Views

Selenium on Linux Not Allowing Negative set_window_position

I have python script that launches several windows, and tiles them using set_window_position and set_window_size. However, if I try to move the windows beyond the desktop (i.e. have a negative x or y using set_window_position) this gets translated into zero. Example - I initiate: driver.set_window_...
Darek S
1

votes
0

answer
308

Views

Where to find the compatible version for selenium-server, geckodriver and firefox?

I'm making some test with different version of Firefox. Is there a matrix of something like that where I can find which version of selenium-server and geckodriver work with a specific version of firefox browers. I'm interested in Firefox 52 and later. In general is there a place in documentation wit...
Youssouf Maiga
1

votes
1

answer
38

Views

ANT build is unable to recognize geckodriver executable “The driver executable does not exist”

I am not having any issues when running in Eclipse, but when I attempt to run an ANT build within Jenkins I get the following: java.lang.IllegalStateException: The driver executable does not exist: C:\Program Files (x86)\Jenkins\jobs\Update InforTAP Build\workspace\lib\geckodriver0-19.exe Image capt...
Mike Cook
1

votes
2

answer
842

Views

Use selenium on Ubuntu Server

I followed this tutorial to use selenium (headless firefox) on an ubuntu server. All the installations seem fine, but when I try to run from pyvirtualdisplay import Display from selenium import webdriver display = Display(visible=0, size=(800, 600)) display.start() browser = webdriver.Firefox() I g...
user9115052
1

votes
0

answer
280

Views

Capybara run with Firefox 52 - unable to connect to Mozilla geckodriver

When running Ruby UI tests with Capybara I am getting Error: Selenium::WebDriver::Error::WebDriverError: unable to connect to Mozilla geckodriver 127.0.0.1:4444 /home/hudson/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.4.0/lib/selenium/webdriver/common/service.rb:130:in `conne...
Jakub Smolar
1

votes
1

answer
140

Views

Geckodriver 0.18.0 random nonresponsiveness. Caused by several geckodrivers interfering with each other?

Short version I am running Selenium 3.11.0 + Geckodriver 0.18.0 + Firefox 59.0.2 on Ubuntu 14.04.5. When trying to open an URL, Selenium sometimes throws the following error [Errno 111] Connection refused https://www.example.com Geckodriver.log shows 1523165125053 geckodriver INFO geckodr...
Otto Kässi
1

votes
0

answer
108

Views

Python Selenium geckodriver print silently breaks printing

I have searched and tried different things for days and I came up empty handed. The code is fairly straight forward. from selenium import webdriver import os downloadfolder = os.path.join(os.path.expanduser('~/'),'mydownload') os.chdir(downloadfolder) profile = webdriver.FirefoxProfile(downloadfolde...
Colin Lee
1

votes
2

answer
904

Views

selenium.common.exceptions.WebDriverException: Message: connection refused while trying to open Firefox browser through GeckoDriver in Raspberry-pi3

Hi I have a raspberry pi 3 and decided to try get selenium running with python 3. I installed it using 'pip3 install selenium' and there were no errors. After I made a small test script with this code: from selenium import webdriver from selenium.webdriver.common.keys import Keys # create a new Fire...
Nick Evans
1

votes
0

answer
93

Views

Selenium, how to modify headers on geckodriver

I am using python 3.6.5 and I was wondering how I could modify my headers on geckodriver, I tried the Firefox extension but it claimed geckodriver was not supported. How can I achieve my goals?
Tron
1

votes
1

answer
372

Views

“error: cannot access Killable” while compiling the code with selenium java 3.11 libraries

The code compilation is failing with 'error: cannot access Killable' at the line class FirefoxWebDriver extends FirefoxDriver{ ...... We have upgraded to Selenium 3.11 from 3.3.1. We are trying to run tests on browser configured with selenium grid using Docker. I found that Killable class was remov...
Sivaram
1

votes
0

answer
54

Views

Selenium send keys causing click function to break

I'm working on building a booking bot for booking study rooms at school using Python, Selenium and Geckodriver. One step of booking a room is to search for the room you want, then click on that room. When you click on the room you get a drop down list where you see what times you can book for each d...
Biscuwit
1

votes
1

answer
664

Views

How to handle multiple windows in Python selenium with Firefox driver

I want to learn WINDOW handling in Python Selenium. My Task is: First open 'Google.com'. Second open 'Yahoo.com' in New Window. Third switch back to First Window and click on Gmail Link. Fourth switch to Second Window and click on Finance Link. Following Code works for me: browser.get('http://www.g...
user8810517
1

votes
1

answer
371

Views

Python Selenium : How to stop Auto Refreshing of Internal Elements of a Webpage in Selenium?

I want to automate mail checking on temp-mail.org But the problem is the page keeps on refreshing internal components of page and therefore Selenium can't target mail. My code: mail= browser.find_element_by_xpath('//tbody/tr/td[@title='__mail title__']') mail.click() But there is no response. Then...
user8810517
1

votes
0

answer
445

Views

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
1

votes
0

answer
453

Views

Process unexpectedly closed with status 1

I am running selenium tests with selenium 3.8.0 and geckodriver 0.19.1. During the run some tests pass fine, while for other tests I get the error: Process unexpectedly closed with status 1 My question: In which code file is this error thrown? I am not asking for a solution of my problem as I doubt...
Alex
1

votes
0

answer
183

Views

geckodriver Firefox c# FindElement and SendKeys too slow always

I have created six automation tests with Selenium in C# with Visual Studio 2017 to test a web site with Firefox. I have tried using several versions of Selenium. FireFox.WebDriver 0.20.0 0.20.1 0.21.0 Which all install geckodriver. I am using both Selenium.WebDriver and Selenium.Support version...
Massimo Pasina
1

votes
0

answer
66

Views

selenium geckodriver fails to save page source from huge pages

driver = webdriver.Firefox # geckodriver 0.20.1 html_page = driver.page_source When invoking driver.page_source on a webpage < 120MB in size all goes smooth. However, when the page grows somewhere beyond 120MB, I get this traceback: Traceback (most recent call last): File 'program.py', line 251, i...
danadu
1

votes
0

answer
256

Views

Session expires/times-out throwing a 'Session ID is null. Using WebDriver after calling quit()' exception

Session just fails in the middle of the test: StackTrace: 1532007067797 Marionette TRACE 0 -> [0,53,'WebDriver:ExecuteScript',{'args':[{'ELEMENT':'297d9b77-2267-4509-ba4c-d61f70b59df3','element-6066-11e4-a52e-4f735466ce ... a4c-d61f70b59df3'}],'newSandbox':false,'script':'arguments[0].scrollInt...
RamR
1

votes
1

answer
213

Views

Unable to find a matching set of capabilities with Firefox when marionette is turned to false through Selenium 3.12.0

I have set the path and firefox bin correctly, still don't know where the problem is. The piece of code to start firefox driver is added below: System.setProperty('webdriver.gecko.driver', '/opt/config/x_conf_dir/geckodriver'); System.setProperty('webdriver.firefox.bin', '/opt/config/x_conf_dir/fire...
karan ladla
1

votes
0

answer
24

Views

why geckdriver(in selenium,python) makes google think i am a robot but on normal firefox(with same ip) works just fine

I have a code which scrapes google searches for its URL and headings (for only ads) by first enabling a tor Ip and then begin scraping. Now, my issue is when on tor Ip the gecko driver redirects my search queries on Google to a 'click images to confirm you are not a robot' page but if I use google n...
Yugansh Sharma
1

votes
1

answer
71

Views

“thread panicked while processing panic. aborting” error while executing test through GeckoDriver Firefox and Selenium

I am new to coding and web scraping. However I already encountered error while just tried to open a url with browser by simply code. Source code import sys import urllib.request import importlib import time from bs4 import BeautifulSoup from selenium import webdriver importlib.reload(sys) url = 'htt...
Cayde
1

votes
1

answer
71

Views

Selenium Webdriver ConnectionAbortedError in case of 5sec sleeps in between commands

My Selenium-WebDriver + Python scripts work fine, but give a ConnectionAbortedError if there is too much time in between the webdriver commands. The following minimum working example gives an error: from selenium import webdriver from selenium.webdriver import Firefox import time browser = webdriver...
Bas
1

votes
1

answer
67

Views

Getting java.lang.NullPointerException in profile.setPreference(“browser.popups.showPopupBlocker”, false);

System.setProperty('webdriver.gecko.driver','C:\\geckodriver.exe'); ProfilesIni profile2 = new ProfilesIni(); FirefoxProfile profile3 = profile2.getProfile('AutoProfile'); profile3.setPreference('browser.popups.showPopupBlocker', false); profile3.setPreference('browser.download.dir', 'D:\\...
Rajat Prajapati
1

votes
0

answer
62

Views

Allow custom MIME type download - Selenium GeckoDriver preferences

I am trying to download Jupyter Notebook files (extension x-ipynb+json) in a Selenium test using Firefox. I'm using the browser.helperApps.neverAsk.saveToDisk preference to download other MIME types files without the popup: profile = webdriver.FirefoxProfile() profile.set_preference('browser.helperA...
Paul Juillard
1

votes
0

answer
144

Views

How do I install GeckoDriver if I am using Anaconda Navigator?

I use anaconda navigator, and I am wondering where I put the GeckoDriver.exe file once I have downloaded it. I am using this for selenium. At the moment I have installed GeckoDriver and put it in the Anaconda folder, but I am getting the below error. CODE: from selenium import webdriver ERROR: Impor...
SantiClaus
1

votes
0

answer
23

Views

Register Device with Splinter and Save Session

I'm using Splinter to scrub my bank accounts and run some automated financial calcs for me. I recently switched banks (Now at Huntington) and my new bank requires you to register a known device unless you want to get a text code every-time you login. I know cookies are loading correctly because if I...
user1785853
1

votes
1

answer
1.4k

Views

org.openqa.selenium.remote.ProtocolHandshake createSession INFORMATION: Attempting bi-dialect session with Selenium Grid

I set up a local selenium grid to test something. The build runs normal when connecting to another grid but when using the local grid the build just stops at this point: ------------------------------------------------------- T E S T S ------------------------------------------------------- Running...
Niko Lang
1

votes
2

answer
746

Views

Selenium a default profile for the Firefox

Cannot set a default profile for the Firefox in Selenium Webdriver 3, because there is no such constructor in the FirefoxDriver class. Code: import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.firefox.FirefoxProfile; import org.openqa.se...
Vladyslav Kuhivchak
1

votes
0

answer
182

Views

Python+Selenium [Errno 2]: No such file or directory: '/tmp/tmpUgpMnz/webdriver-py-profilecopy'

I am running a python script on a raspberry pi 3 with Selenium 3.14.1, Firefox-ESR 52.9.0, Python 2.7.13 and geckodriver 0.17.0. It visits a webpage clicks on a button then takes a screenshot of the page. Finally it looks for another element by its href and clicks it then stops. The Problem is it th...
Xeno Boss
1

votes
0

answer
165

Views

Python - Unable to scrape menu data from a Zomato page .

I want to make a scrapper which scrapes the order page of a restaurant on Zomato and extracts the food menu and writes it into a JSON file . Here's my code : import re import urllib from urllib import parse from bs4 import BeautifulSoup from urllib.parse import urlparse import urllib.request from se...
Saahil Ali

View additional questions