Is there a proved mouseOver workaround for FirefoxDriver in Selenium2?

后端 未结 3 815
夕颜
夕颜 2020-12-01 08:33

I\'m using Selenium Java 2.0b3. I have this code:

...
WebDriver driver = new InternetExplorerDriver();
Selenium seleniumDriver = new WebDriv         


        
3条回答
  •  忘掉有多难
    2020-12-01 08:56

    I would suggest trying the Advanced User Actions API that was added in the 2.0rc1 release yesterday, as it looks like you're using the Selenium 1 API still (going through WebDriverBackedSelenium), and I'm not sure how much Firefox 4 support that provides. I'm not using Java for my Selenium tests, but it looks to me like what you would want to do is something like this:

       Actions builder = new Actions(driver); // Or maybe seleniumDriver? Not sure which one to use
    
       Actions hoverOverRegistrar = builder.moveToElement(menuRegistrar);
    
       hoverOverRegistrar.perform();
    

提交回复
热议问题