geckodriver

org.openqa.selenium.WebDriverException: [Exception… “Component not initialized” error using GeckoDriver and Tor browser with Selenium Java

喜你入骨 提交于 2020-08-10 23:11:10
问题 I tried to run Selenium with Tor Browser but get an error. When i start my code, the Tor Browser opens and calls the url https://www.trash-mail.com/adresse-erstellen/ correctly but instead of making the last command with "sendKeys" this error occurres: Exception in thread "main" org.openqa.selenium.WebDriverException: [Exception... "Component not initialized" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: chrome://marionette/content/modal.js :: get window :: line 143

“Component not initialized” nsresult: “0xc1f30001 (NS_ERROR_NOT_INITIALIZED)” error with Selenium GeckoDriver and Mozilla

一曲冷凌霜 提交于 2020-08-09 08:00:51
问题 I am trying to execute my code in Firefox, sometimes it works but majority of time i get exception as: [Exception... "Component not initialized" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: chrome://marionette/content/dom.js :: addEventListener :: line 67" data: no] Its happening from last week, previously it was working fine for me. 回答1: NS_ERROR_NOT_INITIALIZED resembles an attempt which was made to use a component or object which has not yet been initialized.

How to initiate a Tor Browser 9.5 which uses the default Firefox to 68.9.0esr using GeckoDriver and Selenium through Python

≡放荡痞女 提交于 2020-07-16 01:35:11
问题 I'm trying to initiate a tor browsing session through Tor Browser 9.5 which uses the default Firefox v68.9.0esr using GeckoDriver and Selenium through Python on a windows-10 system. But I'm facing an error as: Code Block: from selenium import webdriver from selenium.webdriver.firefox.firefox_profile import FirefoxProfile import os torexe = os.popen(r'C:\Users\username\Desktop\Tor Browser\Browser\TorBrowser\Tor\tor.exe') profile = FirefoxProfile(r'C:\Users\username\Desktop\Tor Browser\Browser

'geckodriver' executable needs to be in PATH

走远了吗. 提交于 2020-07-06 13:54:23
问题 Mac OS user here. I'm trying to run a command in my python IDLE: from selenium import webdriver browser = webdriver.Firefox() and I get the following error message: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 76, in start stdin=PIPE) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 709, in __init__ restore_signals, start_new_session)

NotADirectoryError: [WinError 267] The directory name is invalid error while invoking Firefox through Selenium Python

…衆ロ難τιáo~ 提交于 2020-06-10 04:05:07
问题 I'm trying to invoke a firefox browser using Selenium webdriver from below python code.. from selenium import webdriver # Initializing the WebDriver for Firefox browser driver = webdriver.Firefox("C:\\selenium\\mozilla\\geckodriver.exe") driver.set_page_load_timeout(30) driver.maximize_window() driver.get("https://www.google.com/") # Closing the reference driver.quit() but it is always throwing an error like below, however this is working for Chrome browser. Traceback (most recent call last):

NotADirectoryError: [WinError 267] The directory name is invalid error while invoking Firefox through Selenium Python

纵然是瞬间 提交于 2020-06-10 04:05:00
问题 I'm trying to invoke a firefox browser using Selenium webdriver from below python code.. from selenium import webdriver # Initializing the WebDriver for Firefox browser driver = webdriver.Firefox("C:\\selenium\\mozilla\\geckodriver.exe") driver.set_page_load_timeout(30) driver.maximize_window() driver.get("https://www.google.com/") # Closing the reference driver.quit() but it is always throwing an error like below, however this is working for Chrome browser. Traceback (most recent call last):

Cannot load extension using firefox driver selenium when using AddExtension [duplicate]

≡放荡痞女 提交于 2020-06-01 05:57:05
问题 This question already has answers here : How to install extension permanently in geckodriver (3 answers) How to load extension within chrome driver in selenium with python (3 answers) Closed 9 months ago . I created a new firefox profile via selenium geckodriver, and I am trying to add a new extension to this profile via the in built method AddExtension("xpi path"). I have no run-time errors, however when the browser opens, it's like no extensions were installed. In fact when I check the add

How to address the log INFO Using `new FirefoxOptions()` is preferred to `DesiredCapabilities.firefox()` in selenium project

人盡茶涼 提交于 2020-04-07 03:33:41
问题 I just started a selenium project, but things didn't got right, so after searching a bit I found this solution. It works but i can't understand what these red statements want me to do, or how to get rid of them. import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxBinary; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.firefox.FirefoxOptions; import org.openqa.selenium.remote.DesiredCapabilities; import java.io.*; public class SelTest1 {

How to address the log INFO Using `new FirefoxOptions()` is preferred to `DesiredCapabilities.firefox()` in selenium project

倾然丶 夕夏残阳落幕 提交于 2020-04-07 03:33:18
问题 I just started a selenium project, but things didn't got right, so after searching a bit I found this solution. It works but i can't understand what these red statements want me to do, or how to get rid of them. import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxBinary; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.firefox.FirefoxOptions; import org.openqa.selenium.remote.DesiredCapabilities; import java.io.*; public class SelTest1 {

NoSuchWindowError: Browsing context has been discarded with GeckoDriver Firefox and Protractor(Selenium)

試著忘記壹切 提交于 2020-04-05 05:16:01
问题 I'm trying to run a simple test script using protractor. Environment: Node Version: v9.8.0 Protractor Version: 5.4.1 Angular Version: 1.x Browser(s): Mozilla Firefox 60.1.0 Operating System and Version: HELiOS release 6.10 Here's my protractor config file. exports.config = { specs: ['todo-spec.js'], capabilities: { browserName: 'firefox', marionette : true } }; This is my test script (todo-spec.js) describe('application homepage', function() { it('should open homepage', function() { console