Questions tagged [geckodriver]
GeckoDriver is Mozilla's WebDriver implementation for the Firefox web browser, and works best with Firefox versions 48 and onwards.
1,354
questions
0
votes
0
answers
11
views
How to reset <<geckodriver --websocket-port~~>> after clearing geckodriver in selenium
I am crawling using Python firefox(geckoddriver) selenium.
In order to minimize memory, I put below after crawling.
driver.quit()
subprocess('TASKKILL /IM geckodriver')
But I found that
geckodriver --...
0
votes
0
answers
29
views
How to connect to an existing firefox instance using selenium(python)
Is there any way to open a Firefox browser and then connect to it using selenium? I know this is possible on chrome by launching it in the command line and using --remote-debugging-port argument like ...
0
votes
0
answers
9
views
Save localStorage for next run in Selenium Python Firefox
I'm using Selenium in Python with Firefox browser.
I want to save cookies and localStorage between each Selenium sessions. I first tried start Firefox using specified Profile. But it reports me:
...
0
votes
1
answer
25
views
Need a selenium java technique to click browser control Block location request button in Firefox
edit:<So I've only managed to get one person to try to help so far, if anyone has any suggestions on how this question, post, title, tags, etc can be improved, please leave a comment. I've been ...
0
votes
0
answers
28
views
InstaPy - Unable to Login Instagram
When i run my script getting this error
CRITICAL [2022-05-17 20:02:33] [my_user] Unable to login to Instagram! You will find more information in the logs above.
InstaPy not connecting anymore.
I ...
0
votes
1
answer
16
views
DeprecationWarning with selenium/geckodriver
What does the DeprecationWarning mean?
Also it seems like if i delete the "elem" functions it kind of works but when the chrome tab opens with the link it immediatelly closes again
from ...
0
votes
0
answers
8
views
pyvirtualdisplay - downloads are stuck as .part file
I have a python-selenium script running on a debian 11 server without any Desktop - thats why i use pyvirtualdisplay. The script has to login to a website and then go to a page on this site that, on ...
0
votes
1
answer
33
views
Why exactly do I get an IndexError?
I am trying to use this python code from here. I am using firefox geckodriver instead. I get an index error from line 43 which is log_in[0].click(). Here is the code for convenience:
# importing ...
0
votes
0
answers
6
views
Selenium webdriver node.js (gecko driver) won't work with Ubuntu server 20.04.4 LTS on a cloud server
I have a pretty simple node.js app that I can run perfectly fine on my Mac and My other ubuntu server server on 22.04 LTS, but it won't run on this oracle cloud server that I have. I've tried ...
0
votes
0
answers
28
views
Error getting Firefox console logs using Selenium for Java
In my Selenium tests using Firefox I always get an error when I try to get the browser console logs. Same code works fine for Chrome and Edge.
For the tests I am using:
Firefox 100.0
geckodriver 0.31
...
0
votes
0
answers
22
views
How to save firefox profiles to a folder using selenium and python
When i load a firefox profile into a selenium webdriver like this:
fp = webdriver.FirefoxProfile('c:/profile_folder_path')
driver = webdriver.Firefox(executable_path='geckodriver.exe', firefox_profile=...
0
votes
1
answer
19
views
Webdriver Exception:Process unexpectedly closed with status: 255
When I write to the console any firefox related command it throws an error.
Input:
$ firefox
Output:
Exec failed with error: Permisson denied.
And when I run the python code I get an error:
Webdriver ...
0
votes
0
answers
25
views
Unable to run geckodriver on Docker image with Mac M1 chip. selenium WebDriverException: Message: Process unexpectedly closed with status 1
I've successfully built a Docker image but can't seem to be able to run it. This is my Dockerfile:
FROM python:3.9
RUN apt-get update
#install system depend
RUN apt-get install -y software-...
0
votes
1
answer
29
views
How can I mute the browser/tab in selenium using the geckodriver
I'm trying to mute the browser/tab in selenium since headless mode doesnt mute sounds, I've searched but all I could find was chrome solutions and they didn't work, Also I don't want to use a profile
...
0
votes
0
answers
16
views
Selenium IDE- WebDriverError: Reached error page
I am trying to run a selenium test with selenium side runner on firefox browser through geckodriver:
selenium-side-runner -c "browserName= firefox moz:firefoxOptions.args=[-headless]" test....
1
vote
2
answers
55
views
Firefox (geckodriver): How do I inject JavaScript functions into a page so that they persist upon return from 'executeScript'?
I have a Selenium Java library that includes a JavaScript "glue" library that enables JavaScript functions to throw serialized Java exceptions. This enables much more natural handling of ...
0
votes
1
answer
52
views
Exception in thread "main" java.lang.IllegalStateException: The driver executable must exist error using Selenium Java
Error:
Exception in thread "main" java.lang.IllegalStateException: The driver executable must exist
Code trials:
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome....
0
votes
1
answer
22
views
Firefox unicode boxes in selenium screenshot instead of characters
I'm using Firefox and Geckodriver on Ubuntu 20.04 (both on WSL2 and on a separate VM with similar results)
sudo apt install firefox -y
wget https://github.com/mozilla/geckodriver/releases/download/v0....
0
votes
1
answer
56
views
SessionNotCreatedException: Message: Expected browser binary location, but unable to find binary in default location error with Selenium and Firefox
I don't know why but yeasterday and the day before it worked but today no.
I changed nothing and the PATH is always at the same place.
from selenium import webdriver
from selenium.webdriver.firefox....
0
votes
2
answers
46
views
Why is my Selenium window not working like my normal window?
I am building an analysis bot for an io game called diep.io. I am attempting to open diep.io in Ubuntu, using Python. Using Selenium to open Firefox, but I have the same problem with Chrome as well.
...
1
vote
1
answer
748
views
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=59587): Max retries exceeded with url using Selenium GeckoDriver Firefox
At dawn my code was working perfectly, but today when I woke up it is no longer working, and I didn't change any line of code, I also checked if Firefox updated, and no, it didn't, and I have no idea ...
1
vote
0
answers
22
views
C# Selenium WebDriver - How to use proxy with Authentication?
The program gives an error when I run it with authentication.
var options = new FirefoxOptions();
string proxyInfo = "user:password@host:port";
var proxy = new Proxy
...
-1
votes
2
answers
61
views
Scraping non-interactable table from dynamic webpage
I've seen a couple of posts with this same question but their scripts usually waits until one of the elements (buttons) is clickable. Here is the table I'm trying to scrape:
https://ropercenter....
0
votes
0
answers
35
views
How do I integrate cucumber-js with selenium webdriver
I'm kinda new to cucumber and selenium and I've been running into an issue with selenium webdriver where it doesn't connect or gets a "Error: ECONNREFUSED connect ECONNREFUSED "127.0.0.1:...
0
votes
1
answer
61
views
Selenium-Python: How to return webdriver from one function and pass into another function
I have two functions using selenium webdriver. One logs in, and another that performs authenticated actions on the website.
from selenium import webdriver
def login(driver):
driver.get('website....
1
vote
0
answers
55
views
Force WebDriver to use an Exisitng Firefox Profile in Geckdriver 0.30.0 without Creating Temporary Copy?
By default, Geckodriver 0.30.0 copies existing FF profile to temporary files directory before launching a new instance of WebDriver.
The code responsible for this is written in Rust and is present in ...
0
votes
1
answer
35
views
Website not opening with chrome driver but opening with geckodriver
I am trying to scrape the website. First of all, it is not working with Beautifulsoup but when I am trying to open it with selenium chrome driver it's not opening. It's opening with firefox but it's ...
0
votes
0
answers
25
views
What is gained by Selenium creating a temporary Firefox Profile in the latest version of Firefox?
I observed that when one initiates a new firefox Browsing Context using Selenium from an existing FirefoxProfile, the settings/configurations are copied from the actual profile directory into a ...
0
votes
1
answer
49
views
Firefox WebDriver takes forever to start with 28,000+ entries detected in cache?
I'm trying to launch a specific profile in Selenium v4 and Java using the following code:
System.setProperty("webdriver.gecko.driver", path_to_geckdriver);
File firefoxProfileFile = new File(...
1
vote
0
answers
72
views
Selenium WebDriver Suddenly Slows to a Crawl
I'm running a bunch of Selenium tests one after the next which initially runs at normal speed. However, at one point my console displays the following errors:
JavaScript warning: https://www....
0
votes
1
answer
22
views
org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms, exception using Selenium Java
I have the above error in Linux Firefox Selenium Eclipse, I have been trying to install Mozilla Firefox 47.0.1 so that I dont have to use geckodriver(), But I find no way to install this.
System....
0
votes
0
answers
30
views
What are the steps required to get geckodriver working with RSelenium on Ubuntu?
This is a follow up to an earlier question which provided an explanation as to why an older version of Firefox would work with RSelenium (v1.77) selenium/standalone-firefox:2.53.1 whereas a newer ...
1
vote
1
answer
99
views
Geckodriver error in Selenium script. Geckodriver is installed correctly, but I get 'geckodriver' executable needs to be in PATH
I can't understand why geckodriver doesn't work and why the path doesn't exist. I use Ubuntu and Firefox, I uninstalled and reinstalled geckodriver and Firefox-geckodriver. I checked the version and I ...
0
votes
0
answers
23
views
How can I select the Suburb/City dropdown on Amazon using Selenium and Python?
I'm trying to make a bot to order a product on Amazon using Python and Selenium. I have it working so that it enters text input details such as name and everything however the way Amazon does ...
0
votes
0
answers
12
views
How to block the file chooser in Firefox?
I'm developing an application that uses Selenium for automation of a certain process that involves file upload.
There is a button on that website that executes some ajax which loads in the file input ...
0
votes
2
answers
50
views
selenium with geckodriver does not respect download dir and download filename when executing window.print();
I have a set up where I print the page as pdf using selenium+gecko. But, whatever I do, it does not seem to respect the download.dir option I set nor the download filename.
Here are my settings:
...
1
vote
2
answers
132
views
selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 1 running Selenium Chrome Driver inside Python project
I am running the following code:
from selenium import webdriver
driver = webdriver.Firefox()
driver.get("https://web.whatsapp.com/")
I have installed firefox under /usr/bin/firefox and ...
1
vote
1
answer
239
views
DeprecationWarning: firefox_binary has been deprecated, please pass in a Service object using the argument firefox_binary in Selenium Python
With the following code, on a Mac I tried to start Tor browser with Python and Selenium:
from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
from ...
0
votes
0
answers
104
views
Python Selenium: use Firefox profile to prevent address bar in full screen mode
I followed this tutorial prevent firefox from showing the address bar in fullscreen mode to hide my address bar. This works fine when using Firefox with my created profile.
Now I want the geckodriver ...
2
votes
0
answers
256
views
Getting SecurityError: Permission denied to access property "pageXOffset" on cross-origin object in Firefox 97, 98 version, while taking screenshot
In Firefox version 97 and 98 when I am switching inside iframe and taking screenshot I am getting exception:
org.openqa.selenium.WebDriverException: SecurityError: Permission denied to access ...
0
votes
1
answer
46
views
Geckodriver / FirefoxDriver / Selenium - How to open (empty) start page or clear page?
I would like to clear a page after it has been loaded. Best way would be if the start page of the Firefox would be loaded, which is an empty page for me.
Background is, I'm getting some pages with the ...
0
votes
0
answers
25
views
How to make Selenium detect browser updates?
Here is my Python code:
def headless_geckodriver():
"""Initialize an instance of headless Geckodriver."""
from selenium.webdriver.firefox.options import Options
...
0
votes
0
answers
11
views
Install and use Geckodriver on Heroku correctly [duplicate]
I created a simply Flask app with Selenium deployed on Heroku. Esentially the schema is the following:
from flask import Flask, render_template
from flask import jsonify
from flask import request
from ...
1
vote
0
answers
42
views
How to clear "selenium.common.exceptions.ElementNotInteractableException" error?
I am a newbie to python so please excuse me. I have no background in programming, I am just trying things to smooth out something for me by automating.
I found other similar questions but my problem ...
0
votes
0
answers
40
views
Converting Chromedriver to FirefoxDriver with selenium in python3
I tried to make some automation saving pages into PDF file.
The problem is that Chromedriver has some bugs with changing print sizes. No matter how I adjust it, it just save the page with default size....
0
votes
1
answer
42
views
I can't open firefox using geckodriver.exe
I'm beginner of selenium.
I want to open firefox using geckodriver.exe.
Here is my code.
from selenium import webdriver
import os
path = os.getcwd()
firefox_driver_path = str(path)
browser = ...
0
votes
1
answer
260
views
assert_process_still_running() and WebDriverException: Message: Service geckodriver unexpectedly exited error using SeleniumPython in Raspberry Pi
I am somewhat frustrated and have already completely reinstalled my Raspberry Pi because of this issue. I can't seem to get geckodriver to work. I get the following error message.
pi@raspberrypi:~ $ ...
1
vote
1
answer
136
views
Cannot start firefox browser instance for tests using Visual Studio, C#, Nunit and Selenium
I am having troubles trying to run simple UI test in Visual Studio (16.11.10) using C# and NUnit. I am using Selenium.Firefox.WebDriver version 0.27.0., Selenium.WebDriver and Selenium.Support both 4....
0
votes
0
answers
16
views
How to get a network event (initiated by js script) with Selenium/Firefox/Geckodriver in Python?
I'm trying to automate the following with Selenium (Python)/Firefox/Geckodriver on Windows 10:
I want to go to a specific webpage that plays a video. The videoplayer on that site has an associated js ...
0
votes
0
answers
321
views
How can I use Selenium Webdriver for Firefox (Geckodrive)
I want to use Selenium Webdriver of Firefox in colab.research.google.com.
I tired to use some code but It did not work out and was showing an error in the second last line.
from selenium import ...