Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium Webdriver and Firefox 18

My Selenium tests use onMouseOver features like

 List<WebElement> menuitems = getDriver().findElements(By.tagName("li"));
    Actions builder = new Actions(getDriver());
    WebElement menu = menuitems.get(2);
    getDriver().manage().timeouts().implicitlyWait(Constants.IMPLICITY_WAIT, TimeUnit.SECONDS);
    builder.moveToElement(menu).build().perform();

I'm using Firefox driver. Since Firefox updated itself to version 18, my tests stopped working. I know this has to do with native events support - but does not version 18 support native events, or am i able to enable them? If not, is there any replacing implementation to my code?

I'm using selenium java 2.28.0.

like image 974
mjgirl Avatar asked Jan 09 '13 08:01

mjgirl


People also ask

Which version of Firefox is compatible with Selenium?

Selenium users must update to version 3.11 or later to use geckodriver.

Can I use Selenium with Firefox?

Mozilla Firefox is one of the most widely used browsers in the world. It has enhanced features and is supported by a multitude of the latest testing tools and techniques. One such tool is Selenium.

How do I download an older version of Selenium WebDriver?

http://selenium-release.storage.googleapis.com/index.html... Select the version you want from the folder name. Save this answer.

What is the latest version of Selenium WebDriver?

Nuget latest release is 4.5. 0. Released on September 28, 2022.


2 Answers

For Firefox 18 support we need use selenium webdriver api 2.28.0,jar.

like image 153
user1987809 Avatar answered Sep 23 '22 13:09

user1987809


Selenium Java 2.27 mentions that native support for FF17 has been added. However, there has been no mention of support for FF18 in the change logs for 2.28. So its webdriver not supporting native events and not FF18 not supporting native events. You can try downgrading to FF 17 and probably turn off automatic updates for some time.

like image 44
niharika_neo Avatar answered Sep 24 '22 13:09

niharika_neo