geckodriver

Is it Firefox or Geckodriver, which creates “rust_mozprofile” directory

拟墨画扇 提交于 2019-12-17 07:54:12
问题 Whenever we invoke Firefox, under '/tmp' directory rust_mozprofile directories are getting created. As Firefox internally calls Geckodriver we are not sure whether Firefox or Geckodriver is creating rust_mozprofile directory. I do want to know whether Geckodriver or Firefox because, my '/tmp' directory is having less memory. So the question is I really want to modify the path of creating directories for rust_mozprofile. I am using below technologies, Selenium - 3.3.0 Firefox - 52.2.0

Exception in thread “main” java.lang.IllegalStateException: The driver executable does not exist while running Selenium Test on Ubuntu

﹥>﹥吖頭↗ 提交于 2019-12-17 06:18:13
问题 I have tried this code in eclipse : import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class auto { public static void main(String[] args) { System.setProperty("webdriver.gecko.driver", "/root/Desktop/jarselenium/geckodriver.exe"); WebDriver driver = new FirefoxDriver(); driver.manage().window().maximize(); driver.get("https://www.easybooking.lk/login"); //driver.manage().timeouts().implicitlyWait(25, TimeUnit.SECONDS); } } On execution I got this

Selenium python Error: element could not be scrolled into view

心已入冬 提交于 2019-12-17 05:14:07
问题 I am working on automating the IdentiGO application for my company, and I'm getting the following error: Internal Server Error: /identigo Traceback (most recent call last): File "/Users/jane/Code/maynard_env/env/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner response = get_response(request) File "/Users/jane/Code/maynard_env/env/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response response = self.process_exception_by

How to fix “WebDriverException: Message: connection refused”?

本秂侑毒 提交于 2019-12-17 02:23:15
问题 I am using a very complex setup to test various non-public webpages. I use jenkins to run the python-selenium tests within a docker image. That way, I am completly independent of the jenkins environment and can create my own environment. In this environment I have the following software installed: Firefox: 57.0.1 geckodriver: 0.18.0 nosetests: 1.3.7 selenium: 3.8.0 The selenium tests create the WebDriver the following way: profile = webdriver.FirefoxProfile() profile.set_preference("browser

Gmail login using selenium webdriver in java

蓝咒 提交于 2019-12-17 02:00:16
问题 import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; public class NewGmail { public static void main(String[] args) { WebDriver driver = new FirefoxDriver(); driver.manage().window().maximize(); String url = "https://accounts.google.com/signin

ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine with GeckoDriver and Firefox

感情迁移 提交于 2019-12-14 02:07:22
问题 I'm using the below python script to login to Fedex tracking service from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys from time import sleep driver = webdriver.Firefox() driver.get("https://www.fedex.com/apps/fedextracking/?cntry_code=us&locale=us_en#") sleep(5) users = driver.find_element_by_xpath("//div[@class='fxg-field'][1]/input[@class='fxg-field__input-text']") users.send_keys('test') passwords = driver

Firefox driver can't start for Selenium 3.0.1 with FF49 and Python

拜拜、爱过 提交于 2019-12-13 08:10:13
问题 i have following Selenium Webdriver script with Python. But i got error: from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities caps = DesiredCapabilities.FIREFOX caps["marionette"] = True driver = webdriver.Firefox(capabilities=caps) driver.get("http://www.mahsumakbas.net") print driver.title driver.close() error is: Traceback (most recent call last): File "C:\Mahsum\DevelopmentWorkSpace\Eclipse\Java\selenium_proj\src\hello.py", line 6,

Python, Firefox and Selenium 3: selecting value from dropdown does not work with Firefox 45

情到浓时终转凉″ 提交于 2019-12-13 07:04:01
问题 I am trying to open a website and select a value from a dropdown. Unfortunately the below does not work and after extensive research I am about to give up: Python 3.6.0 Selenium 3.0.2 Firefox 45.7.0 (can't update due to company regulations) My code is: from selenium import webdriver from selenium.webdriver.firefox.webdriver import FirefoxProfile from selenium.webdriver.support.ui import Select #set profile for firefox profile = FirefoxProfile("C:\\Users\\Rash\\Documents\\PythonScripts\

Selenium Grid Parallel Execution ThreadLocal WebDriver SessionNotCreatedException: Unable to create new service: GeckoDriverService

两盒软妹~` 提交于 2019-12-13 04:45:41
问题 Running tests in parallel on a windows node and a mac node using selenium grid would pass all tests but fail to run and skip the first test FilterMoreResultsBySquareFeet for either the Mac Firefox browser or the Windows Firefox browser. It keeps throwing this error org.openqa.selenium.SessionNotCreatedException: Unable to create new service: GeckoDriverService I am using latest java, latest selenium driver, latest browser driver, and lastest browser version. I have all drivers in the same

Auto download is not working in firefox

好久不见. 提交于 2019-12-13 04:25:45
问题 Auto download is not working in firefox. Please help me with below code: FirefoxOptions options = new FirefoxOptions(); FirefoxProfile profile = new FirefoxProfile(); profile.setPreference("browser.download.folderList",2); //Use for the default download directory the last folder specified for a download profile.setPreference("browser.download.dir", "D:"); profile.setPreference("browser.download.useDownloadDir", true); profile.setPreference("browser.helperApps.neverAsk.saveToDisk","application