selenium-firefoxdriver

Which Firefox version is compatible with Selenium 3.6.0

只谈情不闲聊 提交于 2019-11-30 23:26:40
I would like to update the Selenium version 3.6.0 and I was wondering which is the best version of FF to use if Gecko driver is not used? Any help will be highly appreciated. Selenium with Gecko Driver Selenium Release Perspective : Selenium v3.6.0 (Java) Release explicitly didn't mention any dependency explicitly. The last dependency explicitly mentioned by Selenium was for v3.4.0 which is as follows : Geckodriver 0.16 is strongly recommended GeckoDriver Release Perspective : GeckoDriver v0.19.0 : Firefox 55.0 (and greater) & Selenium 3.5 (and greater) GeckoDriver v0.18.0 : Firefox 53.0 (and

Selenium moveByOffset doesn't do anything

梦想与她 提交于 2019-11-30 18:11:36
问题 I'm running latest selenium 2.41 with Firefox 28.0 on Linux Xubuntu 13.10 I'm trying to get FirefoxDriver to move the mouse over the page (in my test, I've used the wired webpage, that has a lot of hover-activated menus), but the moveByOffset is not doing anything noticeable to the mouse, at all: package org.openqa.mytest; import java.util.List; import java.io.File; import java.lang.*; import org.openqa.selenium.By; import org.openqa.selenium.OutputType; import org.openqa.selenium

Selenium 3.0 Firefx Driver fails with org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session

筅森魡賤 提交于 2019-11-30 05:15:01
Selenium 3.0 Firefx Driver fails with org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. System.setProperty("webdriver.gecko.driver", "..<Path>../geckodriver.exe"); capabilities = DesiredCapabilities.firefox(); capabilities.setCapability("marionette", true); driver = new FirefoxDriver(capabilities); Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@23aa363a, browserName=firefox, moz:firefoxOptions=org

pageLoadTimeout is not working in Selenium - Java

戏子无情 提交于 2019-11-29 15:48:06
I am testing a website in linux host.The page i am accessing loads infinitely so I am trying to set pageLoadTimeout for selenium. Firefox is triggered correctly but URL is not loading/navigating/added in url bar.just blank firefox window.I am not seeing any errors also. WebDriver driver = new FirefoxDriver(); driver.manage().timeouts().pageLoadTimeout(2, TimeUnit.SECONDS); driver.get("http://www.example.com"); However if I remove driver.manage().timeouts().pageLoadTimeout(2, TimeUnit.SECONDS); code is working fine Selenium version : 3.14.0; gecko driver : 18 - linux (tested with gecko 16,17

How to change Firefox web driver proxy settings at runtime?

泪湿孤枕 提交于 2019-11-29 07:46:45
I use Selenium 2.35.0 and configure proxy settings like: DesiredCapabilities cap = new DesiredCapabilities(); org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy(); proxy.setHttpProxy(proxyStr).setFtpProxy(proxyStr).setSslProxy(proxyStr); cap.setCapability(CapabilityType.PROXY, proxy); driver = new FirefoxDriver(firefox, profile, cap); When I need to change proxy settings I force to restart webdriver and speify other "proxyStr". How I can reach this changing without of webdriver restart? When you set a proxy for any given driver, it is set only at the time WebDriver session is

Export as PDF using Selenium Webdriver Screenshot

折月煮酒 提交于 2019-11-29 07:17:52
Does anyone know if it's possible to export HTML to PDF using the screenshot feature in Selenium Firefox WebDriver? I have a webpage which has print specific css which I need to download automatically. I understand that the screenshot feature takes a screenshot of the page as an image, but I was looking for a scalable PDF file which is good for print. makeMonday Screenshots in Selenium are saved as PNG. And PNG and PDF are different kind of formats. So Selenium cannot save your HTML page image directly as a PDF. But, you could try to insert the PNG screenshot that Selenium takes and add it to

Why does the Selenium Firefox Driver consider my modal not displayed when the parent has overflow:hidden?

谁都会走 提交于 2019-11-29 07:14:26
EDIT: I think there is an issue open on this already: http://code.google.com/p/selenium/issues/detail?id=5717 So basically I'm using the Firefox Driver and the div with id="page-content" is causing my selenium test to fail with the error listed in the referenced question: "Element is not currently visible and so may not be interacted with" but another is? I was able to trace the problem down to the fact that that ID has a css style of overflow: hidden Is this a bug, or am I doing something wrong? I'm using Selenium WebDriver version: 2.33.0.0, Firefox version: 22 The source for the test and

Selenium 3.0 Firefx Driver fails with org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session

不羁岁月 提交于 2019-11-29 02:46:07
问题 Selenium 3.0 Firefx Driver fails with org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. System.setProperty("webdriver.gecko.driver", "..<Path>../geckodriver.exe"); capabilities = DesiredCapabilities.firefox(); capabilities.setCapability("marionette", true); driver = new FirefoxDriver(capabilities); Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true,

How to get webDriver to wait for page to load (C# Selenium project)

邮差的信 提交于 2019-11-28 20:42:04
I've started a Selenium project in C#. Trying to wait for page to finish loading up and only afterwards proceed to next action. My code looks like this: loginPage.GoToLoginPage(); loginPage.LoginAs(TestCase.Username, TestCase.Password); loginPage.SelectRole(TestCase.Orgunit); loginPage.AcceptRole(); inside loginPage.SelectRole(TestCase.Orgunit): RoleHierachyLabel = CommonsBasePage.Driver.FindElement(By.XPath("//span[contains(text(), " + role + ")]")); RoleHierachyLabel.Click(); RoleLoginButton.Click(); I search for element RoleHierachyLabel. I've been trying to use multiple ways to wait for

How to solve java.lang.NoClassDefFoundError? Selenium

一曲冷凌霜 提交于 2019-11-28 13:06:41
问题 Why this code doesn't work? import org.junit.*; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class MainTest { private WebDriver wd; private String urll; @Before public void openGoogle() { wd = new FirefoxDriver(); urll = "https://google.com"; } @Test public void firstTest() { wd.get(urll); } @After public void closeBrow() { wd.quit(); } } Error stack trace : java.lang.NoClassDefFoundError: com/google/common/base/Function at MainTest.openGoogle