geckodriver

using http proxy with selenium Geckodriver

醉酒当歌 提交于 2020-01-21 12:26:07
问题 I tried a few things but non of them worked. Anyone have a working example of using a HTTP proxy with Geckodriver for Selenium 3? I am using Java bindings Here is what I tried DesiredCapabilities capabilities = DesiredCapabilities.firefox(); Proxy proxy = new Proxy(); proxy.setHttpProxy("proxyip:proxyport"); capabilities.setCapability("proxy", proxy); System.setProperty("webdriver.gecko.driver", "C:\\geckodriver-v0.16.1-win64\\geckodriver.exe"); WebDriver driver = new FirefoxDriver

Error while downloading geckodriver during webdriver-manager update from jenkins

和自甴很熟 提交于 2020-01-16 11:42:49
问题 I am trying to run webdriver update from jenkins. I am downloading geckoDriver and chromeDriver. Chrome driver is downloading and unzipping properly. But gecko driver download is not working. However this is working fine from local. Issue occurs only in jenkins Command used: node_modules/protractor/bin/webdriver-manager update --ignore_ssl --proxy=http://proxy --versions.gecko=v0.25.0 --versions.chrome=78.0.3904.105 Firefox version in server: 60.9.0 Error: [16:23:13] I/http_utils - ignoring

Error while downloading geckodriver during webdriver-manager update from jenkins

Deadly 提交于 2020-01-16 11:42:27
问题 I am trying to run webdriver update from jenkins. I am downloading geckoDriver and chromeDriver. Chrome driver is downloading and unzipping properly. But gecko driver download is not working. However this is working fine from local. Issue occurs only in jenkins Command used: node_modules/protractor/bin/webdriver-manager update --ignore_ssl --proxy=http://proxy --versions.gecko=v0.25.0 --versions.chrome=78.0.3904.105 Firefox version in server: 60.9.0 Error: [16:23:13] I/http_utils - ignoring

RSelenium rsDriver gives error can't kill an exited process

拈花ヽ惹草 提交于 2020-01-15 11:22:00
问题 I am struggling to make RSelenium work on a unix server. It has Mozilla Firefox 60.6.1, and running the two commands: binman::list_versions("geckodriver") $linux64 [1] "0.22.0" "0.23.0" "0.24.0" binman::list_versions("seleniumserver") $generic [1] "3.141.59" "4.0.0-alpha-1" "4.0.0-alpha-2" it seems that the geckodriver is available (is it ?). But when I try to launch a driver : > library(RSelenium) > rD <- rsDriver(browser = "firefox", + extraCapabilities = list( + "moz:firefoxOptions" = list

RSelenium rsDriver gives error can't kill an exited process

*爱你&永不变心* 提交于 2020-01-15 11:21:52
问题 I am struggling to make RSelenium work on a unix server. It has Mozilla Firefox 60.6.1, and running the two commands: binman::list_versions("geckodriver") $linux64 [1] "0.22.0" "0.23.0" "0.24.0" binman::list_versions("seleniumserver") $generic [1] "3.141.59" "4.0.0-alpha-1" "4.0.0-alpha-2" it seems that the geckodriver is available (is it ?). But when I try to launch a driver : > library(RSelenium) > rD <- rsDriver(browser = "firefox", + extraCapabilities = list( + "moz:firefoxOptions" = list

How to use new geckodriver endpoints?

坚强是说给别人听的谎言 提交于 2020-01-14 15:18:28
问题 The new geckodriver v0.17.0 has a new way to install addons as mentioned here: POST /session/{session id}/window/fullscreen to invoke the window manager-specific full screen operation POST /session/{session id}/moz/addon/install to install an extension [Gecko only] POST /session/{session id}/moz/addon/uninstall to uninstall an extension [Gecko only] How can I use these endpoints to install my addon to firefox for my selenium tests? 回答1: You have to know the ip and port in which geckodriver

Cannot attach to an existing Selenium session via geckodriver

徘徊边缘 提交于 2020-01-14 09:21:49
问题 After upgrading to geckodriver I'm unable to reuse my Selenium's sessions. Here's my setup: I have a start_browser.py script, which launches a Firefox instance and prints a port to connect to, like: firefox_capabilities = DesiredCapabilities.FIREFOX firefox_capabilities['marionette'] = True browser = webdriver.Firefox(capabilities=firefox_capabilities) print browser.service.port wait_forever() ... and another script, which tries to connect to the existing instance via Remote driver: caps =

Cannot attach to an existing Selenium session via geckodriver

自闭症网瘾萝莉.ら 提交于 2020-01-14 09:21:20
问题 After upgrading to geckodriver I'm unable to reuse my Selenium's sessions. Here's my setup: I have a start_browser.py script, which launches a Firefox instance and prints a port to connect to, like: firefox_capabilities = DesiredCapabilities.FIREFOX firefox_capabilities['marionette'] = True browser = webdriver.Firefox(capabilities=firefox_capabilities) print browser.service.port wait_forever() ... and another script, which tries to connect to the existing instance via Remote driver: caps =

Running geckodriver in an Alpine docker container

倖福魔咒の 提交于 2020-01-11 06:55:11
问题 I'm trying to run GeckoDriver v0.26.0 inside an Alpine 3.10 docker container, specifically python:3.6.6-alpine3.10 . After figuring some things out, I've hit a wall: / # geckodriver --version Error relocating /usr/bin/geckodriver: __register_atfork: symbol not found Error relocating /usr/bin/geckodriver: __res_init: symbol not found What am I missing? How I got here First spin up the docker container: docker run -it python:3.6.9-alpine3.10 /bin/sh Then try installing GeckoDriver / # wget

Set firefox profile protractor

橙三吉。 提交于 2020-01-11 04:13:06
问题 I try to use this code: var makeFirefoxProfile = function (preferenceMap) { var deferred = q.defer(); var firefoxProfile = new FirefoxProfile(); for (var key in preferenceMap) { firefoxProfile.setPreference(key, preferenceMap[key]); } firefoxProfile.encoded(function (encodedProfile) { var capabilities = { browserName: "firefox", firefox_profile: encodedProfile }; deferred.resolve(capabilities); }); return deferred.promise; }; getMultiCapabilities: function () { return q.all([