geckodriver

How to set up Python 3 Selenium/Geckodriver for Firefox on Windows 10?

丶灬走出姿态 提交于 2019-12-11 00:26:37
问题 EDIT: Solved offsite. Put the details in the comment below. (Hope that's okay SO etiquette?) Original post: Saw a lot of people have had problems like this, but in all my searches I saw a lot of conflicting and confusing information that I didn't understand - this is all a bit out of my newbie depth. I installed Selenium in PyCharm and was attempting to run this code from the book Automate The Boring Stuff with Python: from selenium import webdriver browser = webdriver.Firefox() browser.get(

Selenium says element is not visible when it is with latest Firefox (ElementNotInteractableException: Element is not visible)

徘徊边缘 提交于 2019-12-10 16:25:37
问题 On our test page we have a username field and a password field as follows: <input required="" placeholder="USERNAME" id="usernameIdentification" class="form-control no-upper-case autoExpand textValidation" autofocus="autofocus" autocapitalize="none" autocorrect="off" spellcheck="false" size="20" type="text"> <input id="password" name="password" placeholder="PASSWORD" class="form- control no-upper-case autoExpand textValidation" required="required" autofocus="" autocomplete="password"

INFO: HTTP Status: '404' -> incorrect JSON status mapping for 'unknown error' with GeckoDriver, Firefox and Selenium through Java

社会主义新天地 提交于 2019-12-10 16:14:47
问题 when I run selenium WebDriver driver = new FirefoxDriver () shows error, it imports all the libraries it requires but it still reproduces the error package prueba; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class Prueba { public static void main(String[] args) { WebDriver driver= new FirefoxDriver(); driver.get("https://www.google.com/"); } } when I run with Firefox driver () it shows the following error 1541445238209 Marionette DEBUG Remote

NS_ERROR_SOCKET_ADDRESS_IN_USE

左心房为你撑大大i 提交于 2019-12-10 15:35:10
问题 My code: from selenium import webdriver import selenium.webdriver.support.ui as ui import time from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By driver = webdriver.Firefox() driver.get("https://www.youtube.com") login_wait = WebDriverWait(driver, 10) textbox = login_wait.until(EC.visibility_of_element_located((By.ID, 'search'))) textbox.send_keys("a") time.sleep(10) driver.close(

Selenium 3.4.0 with Firefox 55

淺唱寂寞╮ 提交于 2019-12-10 13:40:23
问题 yesterday my Firefox browser updated to 55. Since then my code wont work any more. Im using Selenium 3.4 geckodriver 18.0 and Firefox 55. In chrome it works. i got the following message: > 1503585931231 geckodriver INFO geckodriver 0.18.0 > 1503585931265 geckodriver INFO Listening on 127.0.0.1:31895 > 1503585932805 geckodriver::marionette INFO Starting browser C:\Program > Files\Mozilla Firefox\firefox.exe with args ["-marionette"] > 1503585936703 Marionette INFO Enabled via --marionette

Script Suddenly Stops Crawling Without Error or Exception

痞子三分冷 提交于 2019-12-10 12:35:44
问题 I'm not sure why, but my script always stops crawling once it hits page 9. There are no errors, exceptions, or warnings, so I'm kind of at a loss. Can somebody help me out? P.S. Here is the full script in case anybody wants to test it for themselves! def initiate_crawl(): def refresh_page(url): ff = create_webdriver_instance() ff.get(url) ff.find_element(By.XPATH, '//*[@id="FilterItemView_sortOrder_dropdown"]/div/span[2]/span/span/span/span').click() ff.find_element(By.XPATH, '//a[contains

Is geckodriver required for Selenium 3.7 and Firefox ESR 52.4.1?

风流意气都作罢 提交于 2019-12-10 10:01:35
问题 Is it my understanding that when using Selenium.WebDriver v3.7 from NuGet I require a current version of geckodriver in order to interact with Firefox ESR v52.4.1. However, I have managed to get tests running and successfully passing without geckodriver being involved at all. I believe it is because I have enabled the legacy implementation option when instantiating the RemoteWebDriver , as illustrated below. FirefoxOptions options = new FirefoxOptions { UseLegacyImplementation = true, //

Unable to connect to Geckodriver

余生颓废 提交于 2019-12-09 17:02:50
问题 I'm trying to run the example scirpt of Selenium with Ruby on Rails. I've to run it with a proxy. Here's my code: require 'rubygems' require 'bundler/setup' # require your gems as usual require "selenium-webdriver" Selenium::WebDriver::Firefox.path = "/home/marc/Documents/firefox/firefox" profile = Selenium::WebDriver::Firefox::Profile.new proxy = Selenium::WebDriver::Proxy.new(:http => nil) profile.proxy = proxy driver = Selenium::WebDriver.for :firefox, :profile => profile driver.navigate

“Failed to decode response from marionette” message in Python/Firefox headless scraping script

空扰寡人 提交于 2019-12-09 14:21:37
问题 Good Day, I've done a number of searches on here and google and yet to find a solution that address this problem. The scenario is: I have a Python script (2.7) that loops through an number of URLs (e.g. think Amazon pages, scraping reviews). Each page has the same HTML layout, just scraping different information. I use Selenium with a headless browser as these pages have javascript that needs to execute to grab the information. I run this script on my local machine (OSX 10.10). Firefox is the

Selenium 3.2.0 crashes FireFox 52 during driver.quit() @ Win 7 Home Premium & GeckoDriver 0.14.0

落爺英雄遲暮 提交于 2019-12-09 05:49:28
Win 7 and FireFox is running in German language. Win 7 has all available updates installed. Same for 32 and 64 Bit GeckoDriver! (my Win 7 ist 64 Bit; my FireFox is 32 Bit). Is this just a problem on my PC ? driver.quit() is working on my InternetExplorer without a problem. package JS_JFrame1; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class SeleniumFireFoxMinimal1 { public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.gecko.driver", "e:\\geckodriver.exe"); WebDriver driver = new FirefoxDriver();