geckodriver

Actions Class not working with gecko driver

落花浮王杯 提交于 2019-11-29 01:38:29
I am facing a problem with Actions class driver. I have this piece of code Actions act= new Actions(d1); act.moveToElement(d1.findElement(By.xpath("path of the element")).build().perform(); Previously when i am using Selenium-Java 2.43.0 , this command is working fine. But i have upgraded to 3.0.0-beta2 , started access firefox driver through gecko driver. At the above specified command my test is failing . Am getting the below exception org.openqa.selenium.UnsupportedCommandException: POST /session/21dfc828-a382-4622-8c61-89bc48e29744/moveto did not match a known command (WARNING: The server

Difference between geckodriver and marionette [duplicate]

丶灬走出姿态 提交于 2019-11-29 00:47:18
问题 This question already has an answer here: Difference between webdriver.firefox.marionette & webdriver.gecko.driver 3 answers I don't fully understand the difference between geckodriver and marionette. Can anyone clarify the difference between them? For example, when I use Selenium WebDriver to control a Firefox browser, I need a geckodriver binary to listen the WebDriver protocol from Selenium. Is Marionette the Firefox extension that actually drives Firefox? 回答1: Selenium uses W3C Webdriver

org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server

被刻印的时光 ゝ 提交于 2019-11-28 14:18:19
My selenium code does not run. Keeps throwing me the following error: Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: host: 'SLAP129', ip: '192.168.4.218', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_74' Driver info: driver.version: FirefoxDriver at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:658) at

Automatically download pdf in firefox gecko driver using selenium java

ⅰ亾dé卋堺 提交于 2019-11-28 13:58:23
问题 Can anyone help to create a profile and set options using firefox ( gecko driver ) to automatically download files in selenium webdriver - java. I have already searched a lot of options googling around, and nothing much worked. So posting my query on stack overflow. Please help with some code snippet if possible. This is for selenium 3 and firefox version 52. Thanks in advance. 回答1: 1/ create a new firefox profile manualy in firefox.exe -p 2/ run firefox with this new profile and set up to

Selenium using too much RAM with Firefox

情到浓时终转凉″ 提交于 2019-11-28 13:00:34
I am using selenium with Firefox to automate some tasks on Instagram. It basically goes back and forth between user profiles and notifications page and does tasks based on what it finds. It has one infinite loop that makes sure that the task keeps on going. I have sleep() function every few steps but the memory usage keeps increasing. I have something like this in Python: while(True): expected_conditions() ...doTask() driver.back() expected_conditions() ...doAnotherTask() driver.forward() expected_conditions() I never close the driver because that will slow down the program by a lot as it has

Selenium opens browser but doesn't load page

一个人想着一个人 提交于 2019-11-28 12:20:32
this is an extension from a previous post I made Here which I could not get to work but I am now getting a new error after updating Selenium. I am using Python 3.5, Windows 8.1, Selenium 3.0.1 I know the code works because it works on my MAC, but when I bring it over to my work computer which is described above, the only thing that happens is the browser will open but it wont load anything, not even a homepage. From everything I could find on search I downloaded the geckodriver, renamed it to wires.exe and I added the directory to the system PATH. I am completely lost on what to do to get this

Firefox Error: “Your connection is not secure” while launching driver with Selenium 3.0.1 using Java

假如想象 提交于 2019-11-28 11:44:18
My Firefox version is 46.0.1 and Selenium version is 3.0.1. I am getting error: Your connection is not secure while executing following code: @Test public void test() { ProfilesIni profile = new ProfilesIni(); FirefoxProfile ffProfile = profile.getProfile("newCretedProfile"); ffProfile.setAcceptUntrustedCertificates(true); ffProfile.setAssumeUntrustedCertificateIssuer(false); System.setProperty("webdriver.gecko.driver", "D:\\SELENUIUM\\Drivers\\geckodriver.exe"); FirefoxDriver driver = new FirefoxDriver(ffProfile); driver.get("http://www.google.com"); driver.quit(); } I have created new

CreatePlatformSocket() returned an error: An invalid argument was supplied. (0x2726) when trying to access chromedriver through network path

空扰寡人 提交于 2019-11-28 11:18:28
问题 I understand that the OS update caused to this issue not only for the chromedriver but also for the geckodriver. Both chromedriver and geckodriver start without any problem when, the station that was updated, runs them locally (drive C:\ for instance). The issues arises when these two are found in a network path. I have checked the permissions for the specific user, that runs these drivers, and I also checked the UAC and the Firewall but they don't seem to be related to the issue. I prefer

How can Geckodriver/Firefox work without Marionette? (running python selenium 3 against FF 53)

倾然丶 夕夏残阳落幕 提交于 2019-11-28 09:15:05
问题 I'm seeing a bizarre "untrusted cert" error only on selenium-controlled firefox pop-ups. Very specific. To solve this problem, various google results suggested turning off marionette, like so: from selenium.webdriver.common.desired_capabilities import DesiredCapabilities firefox_capabilities = DesiredCapabilities.FIREFOX firefox_capabilities['marionette'] = False driver = webdriver.Firefox() And this works, but how?? How is geckodriver working at all with Marionette off? From this other Stack

Selenium Python selenium.common.exceptions.WebDriverException: Message: connection refused using geckodriver and firefox

萝らか妹 提交于 2019-11-28 09:07:33
问题 I'm having issues running my automation test scripts. When I run my script, a browser will appear but it will not type the URL and waits for 10 seconds until it throws an exception. Is there any solutions I can use so then I can get my automation test scripts to work? Geckodriver.log : 1523997052492 geckodriver INFO geckodriver 0.20.1 1523997052531 geckodriver INFO Listening on 127.0.0.1:37807 1523997052592 mozrunner::runner INFO Running command: "/usr/bin/firefox/firefox" "-marionette" "-