geckodriver

Selenium WebDriver 3.4.0 + geckodriver 0.18.0 + Firefox ?? - which combination works?

两盒软妹~` 提交于 2019-11-26 07:44:50
问题 I\'m running Selenium 2.x with Firefox 47.0.2 on Windows Server 2008R2 using .Net. I\'m running x64 code. I\'m trying to upgrade to Selenium 3.40 + geckdriver 0.18.0 but I can\'t find a version of Firefox that runs 100%. I\'m using x64 en-US versions of Firefox unless otherwise noted. They were downloaded from here. Here\'s what I have found: Firefox 51.0.1 - too old - Geckodriver complains \"Unable to find a matching set of capabilities\" Firefox 52.0.2 - I get an IndexOutOfBoundException

org.openqa.selenium.ElementNotInteractableException: Element <a class=“bg-inverse ”> could not be scrolled into view when trying to click a button

瘦欲@ 提交于 2019-11-26 06:49:50
问题 I\'m working with gecko driver selenium java with FF 60.0. Previously my code was working properly, but all of sudden, now every time I run it, it gives me an error as could not be scrolled into view while I\'m trying to click a button. below is my code, I tried with Thread.sleep(5000) or implicit wait but nothing is working.I\'m stuck here. public void goToWorkerSummary() throws InterruptedException { WebElement btnWorkerSummary = driver.findElement(By.xpath(\"//a[@href=\'/admin/worker

How to fix python-selenium error “connection refused” when initializing a selenium webdriver?

痴心易碎 提交于 2019-11-26 06:48:30
问题 I am running very complex python-selenium tests on non-public webpages. In most cases these tests run fine, but sometimes one of these tests fail during the initialization of the webdriver itself. Hint: This error happens when trying to initialize a webdriver, i.e. when doing something like this: # Start of the tests mydriver = webdriver.Firefox(firefox_profile=profile, log_path=logfile) # ERROR HAPPENS HERE # Doing other stuff here .... # Doing tests here .... # Doing shutdown here mydriver

selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities with Firefox 46 through Selenium

谁说胖子不能爱 提交于 2019-11-26 06:07:25
问题 I must have some versions here that don\'t match up since I can\'t get Selenium with Python to fire up a Firefox web browser. I\'m using an older version of Firefox because other people in here have the same old version of Python and for them the old version of Firefox works best. Code: from selenium import webdriver from selenium import common from selenium.webdriver import ActionChains from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from

WebDriverException: &#39;geckodriver&#39; executable needs to be in PATH even though it is

偶尔善良 提交于 2019-11-26 04:56:58
问题 Trying to get firefox to run using selenium in spyder. My current code is from selenium import webdriver import os os.environ[\"PATH\"] += \":/usr/local/bin/geckodriver\" browser = webdriver.Firefox() and I still get this error: runfile(\'/Users/mherl/Dropbox/AnacondaProjects/MWS/MWSSpyder/test.py\', wdir=\'/Users/mherl/Dropbox/AnacondaProjects/MWS/MWSSpyder\') Traceback (most recent call last): File \"<ipython-input-1-3f3f96ccf515>\", line 1, in <module> runfile(\'/Users/mherl/Dropbox

Difference between webdriver.firefox.marionette & webdriver.gecko.driver

[亡魂溺海] 提交于 2019-11-26 03:51:54
问题 I am now learning Selenium and have met a problem. I am aware that Selenium supported old Firefox version by default without a driver. And for recent versions of Firefox, we have to download the driver and define it using System.setProperty . According to this link, for Firefox 45 and 46, start driver code could look like this: WebDriver driver = new FirefoxDriver(); My Firefox is version 45.5.1., but above code still won\'t work. So according to this link, I have added: System.setProperty(\

Reached error page: about:neterror when trying to navigate to other tabs if there is a form submit under that tab

北城余情 提交于 2019-11-26 03:45:40
问题 when I use Selenium to do automation testing, I hit an issue, here are all scenarios: There are several tabs on top of the page, now that I want to click those tabs and fill up all forms under those tabs, but if I submit formA which under tabA , then I can not navigate to other tabs automatically. If I didn\'t submit the form data, the issue will not be happened. Here is the log: 1513753361368 Marionette DEBUG Received DOM event \"beforeunload\" for \"https://192.168.1.20/link.cgi

Which Firefox browser versions supported for given Geckodriver version?

二次信任 提交于 2019-11-26 03:44:45
问题 I regularly update Firefox and Chrome browser, current version 54.0.1 32 bit So which version of Geckodriver to be used. I tried with both version Geckodriver-v0.18.0 and geckodriver-v0.16.1 For future reference where can I find the list the supported firefox browsers with respective geckodriver versions Note: No any code changes in launch browser Previous the code was working with geckodriver-v0.16.1 for older firefox versions Now getting exception after updating firefox 54.0.1 and

WebDriverException: Message: invalid argument: can&#39;t kill an exited process with GeckoDriver, Selenium and Python on RaspberryPi3

感情迁移 提交于 2019-11-26 01:54:53
问题 Server: Raspberry Pi 3 OS: Dietpi - version 159 Geckodriver version: 0.22 for arm Firefox version: 52.9.0 Python version: 3.5 Selenium version: 3.14.1 Gecko is executable, and is located in /usr/local/bin/ from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.firefox.options import Options import time options = Options() options

Using implicit wait in selenium

你。 提交于 2019-11-26 01:02:02
问题 I am a beginner. I understand what waits basically does but I am confused over how different tutorials over the internet place it and explain it. For example, in the below code it is placed before loading the URL. So, is it only to wait for the URL to be loaded or for finding the element or both? Is is true that if I use an implicit wait once in my try block, it will be applicable for every element search I am performing in my code? from selenium import webdriver driver = webdriver.Firefox()