geckodriver

Connect to geckodriver with selenium js

依然范特西╮ 提交于 2019-12-13 04:25:24
问题 I'm not an expert of Selenium, so I may miss something here. One of the software in the corp starts a firefox with Geckodriver. I would like to connect / attach to this browser from my JavaScript code. I know the port where the Webserver starts and the sessions identifier. I try to connect from JS: const webdriver = require('selenium-webdriver') void async function() { let driver = await new webdriver.Builder().forBrowser('firefox').usingServer('http://localhost:55849/').build(); await driver

Actions in Webdrivers: an example of a working set of data

别来无恙 提交于 2019-12-13 03:46:24
问题 I am banging my head against the webdriver specs to get actions happening. NOTE: I am after the payload to send to the webdriver . I am not after a bunch of lines of code to make up a set of actions. I am interested in the payload to send to the action endpoints. I am reading the specs, but I am having problems understanding what exactly I have to pass, and how, to the web driver's endpoint to make anything happen. I am trying to get it to work with Firefox, as Chrome doesn't implement them

Actions in selenium firefox

99封情书 提交于 2019-12-13 03:39:26
问题 I have been trying to perform the actions operation in firefox quantum version 57+ with selenium version 3.5.0 and using geckodriver 0.19.1. But the thing is it is unable to perform the click operation using Actions. The code that I have written is : WebElement ele = driver.findElement(By.xpath("//div[contains(@title,'" + projName + "')]")); new Actions(driver).click(ele).perform(); But the thing is this line of code is not getting executed and the click operation is not performed. This code

How to handle multiple windows in Python selenium with Firefox driver

怎甘沉沦 提交于 2019-12-13 00:24:03
问题 I want to learn WINDOW handling in Python Selenium. My Task is: First open 'Google.com'. Second open 'Yahoo.com' in New Window . Third switch back to First Window and click on Gmail Link. Fourth switch to Second Window and click on Finance Link. Following Code works for me: browser.get("http://www.google.co.in") browser.execute_script("window.open('https://www.yahoo.com')") browser.switch_to_window(browser.window_handles[0]) print(browser.title) gmail=browser.find_element_by_class_name("gb_P"

Selenium 3.x double click not working

人盡茶涼 提交于 2019-12-12 05:48:35
问题 Firefox Version: 52.0.2 (32 bit) Platform: Windows 7 - 64 bit Selenium Webdriver Version: 3.4.0 (Java bindings) GeckoDriver: 0.16.0 Problem Statement: Selenium 3.x is unable to perform double click operation. Test Code: public class GeckoTest { public static void main(String[] args) throws IOException { System.setProperty("webdriver.gecko.driver","I:\\jetbrainsworkspace\\src\\test\\resources\\geckodriver.exe"); FirefoxBinary binary = new FirefoxBinary(new File("D:\\installations\\browsers\\ff

Firefox opening blank page when launching browser

倾然丶 夕夏残阳落幕 提交于 2019-12-12 03:49:35
问题 Firefox opening blank page when launching browser using Selenium Eclipse with Ruby. require "selenium-webdriver" driver = Selenium::WebDriver.for :firefox driver.navigate.to "http://google.com" Version selenium 3.0, Firefox 49.0.2, Geckodriver latest 来源: https://stackoverflow.com/questions/40141242/firefox-opening-blank-page-when-launching-browser

Invalid certificate error with Geckodriver on FF 51

て烟熏妆下的殇ゞ 提交于 2019-12-12 02:23:22
问题 I am using Selenium 3 on Firefox 51.0.1 with Geckodriver release v0.14.0. I am getting an error on the browser trying to open the URL, and it says the connection is not secure (certificate error), although I checked the certificate and it is valid. The error is this: Command failed: open target="" value="https://mydomain.mysite.com/default" -> Reached error page: about:certerror?e=nssBadCert&u=https%3A//mydomain.mysite.com/default&c=UTF-8&f=regular&d=mydomain.mysite.com%20uses%20an%20invalid

Firefox crashes on close/quit - Pytest Selenium with RemoteWebDriver

[亡魂溺海] 提交于 2019-12-12 00:38:52
问题 I searched and found very similar mentions in older questions from several months ago which seemed to suggest problem should have been fixed by now, but it is still occurring for me. Pytest on my Linux server - Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700' Firefox on my remote Win7 laptop - browserVersion 50.0.2 Geckodriver on my remote Win7 laptop - geckodriver-v0.11.1-win64 . System info: host: 'XXXXXXXXX', ip: 'XXX.XXX.XXX.XXX', os.name: 'Windows 7',

Selenium Firefox driver raise exception OSError: [Errno 8] Exec format error

北慕城南 提交于 2019-12-11 18:33:52
问题 def setUp(self): display = Xvfb() display.start() fp = webdriver.FirefoxProfile() fp.set_preference("browser.download.folderList",2) fp.set_preference("browser.download.manager.showWhenStarting",False) fp.set_preference("browser.helperApps.neverAsk.saveToDisk","text/csv") self.browser= webdriver.Firefox(firefox_profile=fp) On webdriver.firefox it raises an exception even I tried with geckodriver path self.browser=webdriver.Firefox(executable_path='/usr/bin/geckodriver',firefox_profile=fp) But

Running Nightwatch test in Firefox fails when using Windows Task Scheduler

谁都会走 提交于 2019-12-11 17:58:46
问题 I want to run Nightwatch Test with Firefox in the background using Windows Task Scheduler. I am able to run the test manually. However, I got an error when I run the task using Windows Task Scheduler. The selenium started successfully but there was a problem with the Firefox/Gecko Driver. The test is successful with IE and Chrome. I have read from this discussion: andreastt commented on 11 Sep 2017 geckodriver does not support running as Windows service. How do I fix this? Is there any