Org.openqa.selenium.InvalidElementStateException: Unable to perform native communication: Could not load native events component

I ran into this error when running versions 2.15.0 and Firefox9 on Windows 7 using Java bindings, after upgrading from FF9 to FF10. I tried to disable the native events offered online but no luck. After further searching the web for a solution, I updated the WebDriver to version 2.17.0. The issue has been fixed and I have not faced the same issue at some point. Again, I updated to the latest version of WebDriver, 2.19.0, and the problem was resolved. Now I ran into the same problem after upgrading FF10 to 11. I upgraded to 2.20 but the problem was resolved. I have disabled my own events as shown below, but I still get the error.

Using Java:

FirefoxProfile profile = new FirefoxProfile(); 
profile.setPreference("webdriver_enable_native_events", false); 
driver = new FirefoxDriver(profile); 

      

Stacktrace (when I try to move the mouse to hover over the element):

org.openqa.selenium.InvalidElementStateException: Cannot perform native interaction: Could not load native events component. 
Command duration or timeout: 30.07 seconds
Build info: version: '2.20.0', revision: '16008', time: '2012-02-28 15:00:40'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_31' 
Driver info: driver.version: RemoteWebDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 
at java.lang.reflect.Constructor.newInstance(Unknown Source) 
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java: 170) 
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.­java: 123) 
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java: 438) 
at org.openqa.selenium.remote.ExecuteMethod.execute(ExecuteMethod.java: 47) 
at org.openqa.selenium.remote.RemoteMouse.mouseMove(RemoteMouse.java: 89) 
at org.openqa.selenium.interactions.MoveMouseAction.perform(MoveMouseAction.ja­va: 37) 
at org.openqa.selenium.interactions.CompositeAction.perform(CompositeAction.ja­va: 32) 
at org.openqa.selenium.interactions.Actions.perform(Actions.java:349) 
at com.requirementsLive.qa.utility.NavigateHelper.navigate_HoverPageTabs(Navig­ateHelper.java: 49) 

      

My code in NavigateHelper:

WebElement hoverMenu = uiHelper.waitForElementPresent(By.id(tabLocator), 10); 
Actions hoverAction = new Actions(this.getDriver()); 
hoverAction.moveToElement(hoverMenu); 
hoverAction.perform(); ------> line that throws the error 

      

Am I missing something? Is there a permanent fix for this in webdriver or should we update to the latest webdriver (if any) every time there is an update for FF? (update is not working at the moment).

Thank.

+3


source to share


2 answers


Selenium 2.29.0 released with FF18 support (for native events). Here is the update link: http://selenium.googlecode.com/git/rb/CHANGES .



Maybe upgrading to FF18 and selenium-webdriver (2.29.0) can help you.

+1


source


I recommend using firefox 9 or 10 as WebDriver 2.20.0 or 2.19.0 is not fully compatible with the latest firefox yet.



+5


source







All Articles