How to use the gecko executable with Selenium

I'm using Firefox 47.0 with Selenium 2.53. Recently they have been a bug between Selenium and Firefox which make code not working. One of the solution is to use the Marionnette driver. I followed...

Selenium Webdriver - I'm trying to get all links in a Webpage

Here is the code that I used, import java.net.HttpURLConnection; import java.net.URL; import java.sql.Driver; import java.util.List; import org.openqa.selenium.By; import...

How To Fix "TypeError: 'NoneType' object is not callable"

When I run my script: from selenium import webdriver # from selenium.webdriver.firefox.firefox_binary import FirefoxBinary from selenium.webdriver.common.desired_capabilities import...

Selenium 3.0 Firefx Driver fails with org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session

Selenium 3.0 Firefx Driver fails with org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. System.setProperty("webdriver.gecko.driver",...

Second class of testing.xml doesn't execute

I have created 2 separate classes to test a webpage. But, unfortunately when I add them both to the testing.xml, only one of them execute and the other doesn't. The browsers open in parallel even...

"Can't access dead object" in geckodriver

I am using Selenium 3.4 with Java. With Chrome, everything works fine. But I need to use Firefox, and there something breaks. I am automating the testing of a Dojo UI, and need to wait while the...

Receiving error when working with selenium-webdriver. Unable to find mozilla geckodriver

I am following a tutorial on how to use RSpec with Ruby. We are learning how to work with webdriver, however I am receiving an error when I try to run my project. I was wondering can you see If I...

SessionNotCreatedException: Unable to create new service: GeckoDriverService

I'm using: Java 1.8 Selenium 3.5.0 Selenium Standalone Server 3.5.0 OS for selenium hub - RHEL 7 Geckodriver 18 Firefox 55 I have an error: org.openqa.selenium.SessionNotCreatedException:...

How to run Selenium tests (C#, .NET) with Firefox in headless mode on Jenkins running as Windows service

I'm trying to set up Jenkins (version 2.117) and run automated tests using Selenium on the .NET stack in Windows 10 with Jenkins running as a Windows Service. I'm attempting to use the Firefox web...

WebDriverException: Message: The browser appears to have exited before we could connect error with GeckoDriver Selenium and Python

There are about 100 posts about the same issue but none of them seem to work for me, hence asking again. I'm trying to launch a Firefox browser using Python and Selenium and I get the following...

Geckodriver has suddenly started to fail

Driver: geckodriver 0.19.1. OS Name: Microsoft Windows 10 Pro for Workstations Version: 10.0.17134 Build 17134. Firefox: 63.0 (64-bit). Running tests using TestNG version 6.14.0. This was working...

Batch file not running python script in task scheduler

I have a scraping python script and a batch file that when run from CMD works perfectly however when I try to run it from Task Scheduler nothing happens. I know there are a lot of questions...

selenium fire StaleElementReferenceException

i try to make a web crawler with selenium. My program fire a StaleElementReferenceException. I thought that were because i crawl a page recursive and when a page have no more links the function...

is there any way to change the webdriver's port?

I'd like to know if there's a way to pass the --port argument to the webdriver. I've already tried this: driver = webdriver.Firefox(options=options, service_args=['--marionette-port','<PORT>',...

How to properly use selenium with geckodriver and firefox with python on Ubuntu?

I am trying to use the geckodriver with firefox and selenium on my Ubuntu machine. This is the code I have so far: from selenium.webdriver.common.desired_capabilities import...

StdOut is spammed with 'C:\fakepath' warnings integer divides may be much slower, try using uints if possible using Selenium through C#

I am using Selenium Firefox Web Driver. It is working properly but when I worked command line with "dotnet run", some warning logs that I did not solve, arose on the command line. How can I solve...

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...

Selenium on Python with Geckdriver crashes when not in headless mode

I'm trying to use Selenium on a jupyter notebook with geckodriver. Although on headless mode it seems to work fine, I need to see the browser window since I'm learning... I've checked that both...

Rspec failing with Selenium::WebDriver::Error::InvalidSessionIdError

Edit: The Turnip piece is a red herring. Running rspec natively by itself remains an issue. Example invocation: bundle exec rspec spec/features/subscription_spec.rb:33 Errors: Failures: 1)...

Firefox(headless)+selenium cannot access internet from docker container

I have tested the internet connection by wget https://www.google.com and it worked from inside the docker. But, when I run a headless firefox with selenium python binding, selenium throughs the...

Is it possible to script python3 selenium to automatically disable CSP for geckodriver?

I need to disable CSP for that I can do that manually by opening Firefox() web driver, going to about:config, and disabling: security.CSP.enable. I am new to selenium, have coded all the stuff I...

Selenium: JavaScript warning: unreachable code after return statement

I could use some advice on a specific Selenium script error. Some context: I'm trying to verify an former colleague's old script is still workable. Unfortunately that colleague is no longer around...

Firefox doesn't open when calling Webdriver in Python from PHP script

I have a python script calling the selenium webdriver for Firefox. That works fine if I call the Python script from CMD but not when called from a simple PHP page. I have tried multiple things and...

Failed to Decode Response from Marionette in selenium using geckodriver and Freebsd

i have problem with reading data with selenium. In my pc working code fine, with microsoft edge. But then i get task set up it on freebsd. So i try to use geckodriver now its working with...

"Failed to fetch region" (new Error("NO_RESULT", "resource://gre/modules/Region.jsm", 376)) error using GeckoDriver and Firefox through Selenium

This code works on an English Windows username, but does not on a non-english username from seleniumwire import webdriver # Import from seleniumwire from selenium.webdriver.firefox.options import...

Error: Can't find profile directory. console.warn: SearchSettings: "get: No settings file exists, new profile?" using GeckoDriver Firefox and Selenium

[RemoteTestNG] detected TestNG version 7.3.0 1609754675168 geckodriver INFO Listening on 127.0.0.1:123456 1609754675873 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla...

How to connect Selenium to existing Firefox browser? (Python)

Does anyone knows how to connect existing Firefox browser with Selenium? I tried Chrome way - no luck. Launches Firefox in debugging mode: start firefox.exe --marionette -foreground -no-remote...

How to fix SessionNotCreatedException: Unable to create new remote session when trying to run Firefox?

I have a Selenium server 4 with Chrome and Firefox. Chrome works fine but as I try to run Firefox it throws me an error: org.openqa.selenium.SessionNotCreatedException: Unable to create new...

Selenium-js: Firefox: Error: TimedPromise timed out after 300000 ms

I am trying to run my selenium javascript on the site bet365.com. I am using Firefox (geckodriver), I tried both headless and normal but for understanding/debugging the problem the...

How to use proxies with Firefox geckodriver?

I am trying to set some proxies using the Firefox webdriver geckodriver, but it keeps throwing this error InvalidArgumentError: Since Firefox 90 'ftpProxy' is no longer supported. I've tried many...