geckodriver

I can't select options in dropdown list in FireFox 48 using marionette driver and selenium 3

五迷三道 提交于 2019-12-09 03:31:43
问题 I tried the new geckodriver with marionette turned on for FF48 and selenium 3 but the test can't select the option in the drop down list for any element. My test works fine in FF45 and all other browsers. Only marionette driver does not select the option in the drop down list new Select(driver.findElement(By.Id("topic"))).selectByVisibleText(item); The code works fine until I started using gecko driver with marionette. Below is the code I am using to setup geckodriver with marionette. System

Selenium crashing with selenium.common.exceptions.WebDriverException: Message: newSession

折月煮酒 提交于 2019-12-09 02:57:40
问题 OS: Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-1066-aws x86_64) Selenium Version: selenium==3.6.0 Browser: Mozilla Firefox 63.0 Geckodriver version : geckodriver-v0.19.0-linux64 Expected Behavior - Create a new firefox browser and do some steps - parsing the website. Actual Behavior - Crashing with a log :- self.driver = webdriver.Firefox() File "/home/ubuntu/env/local/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 154, in __init__ keep_alive=True) File "/home/ubuntu/env

Selenium and Geckodriver issue with creating a webdriver in Python

a 夏天 提交于 2019-12-08 20:14:13
问题 I have a piece of code in a python crawler that used to work. I installed it on a new system, and am trying to get the right dependencies now. When using geckodriver 0.13.0 and executing the following code: def login(self): print self.colors.OKBLUE + "Logging into my site as User: " + self.config.email + self.colors.ENDC username = self.driver.find_element_by_css_selector('.my_user_field') for c in self.config.email: print "Sending key: " + c username.send_keys(c + "") I get the following

Turn on logging for gecko driver in Selenium Node JS

﹥>﹥吖頭↗ 提交于 2019-12-08 02:47:47
问题 I am currently using Selenium with Node.Js and FireFox and would like to turn on the logging feature for the geckodriver . But am not sure how. Plus I would also like to know where the logs will be found. Here is currently how I instantiate the driver. var fOptions = new firefox.Options(); var profile = new firefox.Profile('./fProfile'); fOptions.setProfile(profile); driver[0] = new Builder().withCapabilities({'browserName': 'firefox'}).setFirefoxOptions(fOptions).build(); 来源: https:/

Selenium “Unable to find a matching set of capabilities” despite driver being in /usr/local/bin

[亡魂溺海] 提交于 2019-12-07 19:16:07
问题 I was trying to open the firefox browser using selenium webdriver. I already have my geckodriver in /usr/local/bin as I'm working on project of web scraping and crawling. Geckodriver version-21.0 Firefox version-64.0 (quantum) Selenium version- 3.141.0. Also tried geckodriver of versions i.e 17.0,19.0,23.0; to find the combination. What I have tried is in the following code. from selenium import webdriver from selenium.webdriver.support.select import Select from selenium.webdriver.common.by

Why Selenium always create temporary Firefox Profiles using Web Driver?

最后都变了- 提交于 2019-12-06 14:55:43
Why Selenium always create temporary Firefox Profiles using Web Driver though I told it to use a existing one ? According to this answer it is not possible to stop Selenium from creating temporary Firefox Profiles using Web Driver. But with chromedriver I can achieve this. So why it is different for Firefox. I checked the FirefoxProfile.cs of Selenium repo and found the following code snipet is used to copy profile--- public void WriteToDisk() { this.profileDir = GenerateProfileDirectoryName(); if (!string.IsNullOrEmpty(this.sourceProfileDir)) { FileUtilities.CopyDirectory(this

Turn on logging for gecko driver in Selenium Node JS

こ雲淡風輕ζ 提交于 2019-12-06 08:12:25
I am currently using Selenium with Node.Js and FireFox and would like to turn on the logging feature for the geckodriver . But am not sure how. Plus I would also like to know where the logs will be found. Here is currently how I instantiate the driver. var fOptions = new firefox.Options(); var profile = new firefox.Profile('./fProfile'); fOptions.setProfile(profile); driver[0] = new Builder().withCapabilities({'browserName': 'firefox'}).setFirefoxOptions(fOptions).build(); 来源: https://stackoverflow.com/questions/48782242/turn-on-logging-for-gecko-driver-in-selenium-node-js

setting proxy in selenium in python for Firefox Geckodriver

Deadly 提交于 2019-12-06 07:58:41
问题 My question is about setting proxy in selenium (3.4.3.) coding in python (2.7) for Firefox (Geckodriver v0.18.0-win64). The spec at http://www.seleniumhq.org/docs/04_webdriver_advanced.jsp provides only a java example. from selenium import webdriver PROXY = "94.56.171.137:8080" class Proxy(object): def __call__(self): self.base_url = "https://whatismyip.com" print self.base_url # proxy json object desired_capability = webdriver.DesiredCapabilities.FIREFOX['proxy']={ "httpProxy":PROXY,

Python 3 Selenium KeyError: 'value' Issue won't initialize Geckodriver for Firefox

旧街凉风 提交于 2019-12-06 07:57:01
问题 I'm having trouble running geckodriver with Python 3. I recently switched to Python 3 with an application that I've been working on, and have updated Firefox(53.0), Selenium(3.4.3), and geckodriver(0.17.1). I'm also using OSX and used pip to install all of my packages. from selenium import webdriver from selenium.webdriver.firefox.firefox_binary import FirefoxBinary # Set Firefox Settings # binary = FirefoxBinary('Users/username/Applications/Firefox.app/Contents/MacOS/firefox') # binary =

Selenium “Unable to find a matching set of capabilities” despite driver being in /usr/local/bin

自古美人都是妖i 提交于 2019-12-06 07:14:36
I was trying to open the firefox browser using selenium webdriver. I already have my geckodriver in /usr/local/bin as I'm working on project of web scraping and crawling. Geckodriver version-21.0 Firefox version-64.0 (quantum) Selenium version- 3.141.0. Also tried geckodriver of versions i.e 17.0,19.0,23.0; to find the combination. What I have tried is in the following code. from selenium import webdriver from selenium.webdriver.support.select import Select from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import