Hi,
I have this procedure which works perfectly well under linux and Firefox 31.4.0 and Selenium 2.45. It also works fine under Windows with Firefox 24. But it behaves really weird under Windows 7 and Firefox 31.
The following action need to be done:
1- go with mouse on the menu button (no click) -> a drop-down for selection opens
2- on this dropdown the mouse goes on the next item (no click) -> on the side of the first drop-down opens another dropdown
3) on the third drop down the mouse selects an item to click on
The selenium command, which works under linux and Firefox31:
Actions actions = new Actions(driver);
WebElement compendia = driver.findElement(By.xpath("//span[text()='Compendia']"));
WebElement menu1 = driver.findElement(By.xpath("//span[text()='Protein Production']"));
WebElement menu2 = driver.findElement(By.xpath("//a[text()='Cell Lines']"));
actions.moveToElement(compendia).perform();
Thread.sleep(1000); // currently a random number (but definitely more than enough time to open the new selection menu)
actions.moveToElement(menu1).perform();
Thread.sleep(1000);
actions.moveToElement(menu2).click().build().perform();
Now under windows7 FF31 the following happens:
It opens step 1 and step 2 normally, but then goes back to another selection in step 2 and opens its selection menu where then can not find the menu2 (step 3)
I have tried so many version with build/perform/click, with different pause time, as a single command etc. The locators are fine, but of course I also played with it a bit.
It never works under W7/FF31. But we can for the longest time now not run our tests with the new libraries Selenium 2.45 and FF31 under Windows.
In the FF profile I have turned on/off profile.setEnableNativeEvents(true); but no change.
Can someone help me? Or is this improved in the next update?
Jonas