Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Cannot perform native interaction in Firefox driver using Python #2429

Closed
lukeis opened this issue Mar 3, 2016 · 29 comments
Closed

Cannot perform native interaction in Firefox driver using Python #2429

lukeis opened this issue Mar 3, 2016 · 29 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 2429

What steps will reproduce the problem?
1. Use Selenium with Python and Firefox
2. Go to Amazon.com. Search for a term. After the search results come, try simulating
the mouse over action on the departments dropdown. The ID is kindOfSort_hotspot_btnImg.

This is my code -
deptdropdown = driver.find_element_by_id('kindOfSort_hotspot_btnImg')
action = webdriver.ActionChains(driver)
action.click_and_hold(deptdropdown)
action.perform()

This is the exception -
   raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: u'Cannot perform native
interaction: Could not load native events component.' ; Stacktrace: Method gener
ateErrorForNativeEvents threw an error in file:
extensions/fxdriver@goo
glecode.com/components/firefoxDriver.js

What is the expected output? What do you see instead?


Selenium version:
OS:
Browser:
Brower version:


Please provide any additional information below. A sample reduced test
case, or a public URL that demonstrates the problem will intrigue our merry
band of Open Source developers far more than nothing at all: they'll be far
more likely to look at your problem if you make it easy for them!

Reported by spawgi on 2011-09-09 08:20:45

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Which operating system, version of operating system, bittedness of operating system,
distribution and version of firefox are you using?

Reported by dawagner on 2011-09-09 17:37:49

  • Status changed: NeedsClarification

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Please see the screenshot attached.
Selenium 2.0 (WebDriver for Python)
OS - XP
Browser - Firefox 6.0

Reported by spawgi on 2011-09-10 08:40:07


- _Attachment: amazon_search_popover.png
![amazon_search_popover.png](https://storage.googleapis.com/google-code-attachments/selenium/issue-2429/comment-2/amazon_search_popover.png)_

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Please see the screenshot attached.
Selenium 2.0 (WebDriver for Python)
OS - XP
Browser - Firefox 6.0

Reported by spawgi on 2011-09-10 08:40:18


- _Attachment: amazon_search_popover.png
![amazon_search_popover.png](https://storage.googleapis.com/google-code-attachments/selenium/issue-2429/comment-3/amazon_search_popover.png)_

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by barancev on 2011-10-04 09:29:59

  • Labels added: Component-WebDriver, Lang-Python, Browser-Firefox

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Ubuntu 10.04
Firefox 3.6.18
Got the same error.

try selenium python 2.3 and 2.8.1.

Reported by xulz99 on 2011-10-10 08:26:28

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Mac OS x 10.7.2 64-bit
Firefox 7.0.1
Selenium 2.8 for python

Reported by robert.evans25 on 2011-11-10 16:57:45

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Mac OS X 10.7.2 64-bit
Firefox 8.0.1
Selenium 2.13.1 for Python 2.7.1 (stock Apple build)

Reported by benno.rice on 2011-11-25 00:04:06

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Data point: Driving the Selenium Server using the same Python script talking to the
same Firefox install on the same machine works, so it appears to be something related
to how the Python code is firing it up.

Reported by benno.rice on 2011-11-25 03:39:01

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

A few clarifications:
* We don't have native events for OS X. Mouse hovering on OS X is emulated using synthesized
events, which may behave slightly different (native events tend to be more accurate).
* David Burns recently improved the code for loading native events-related components
in Python.
* The original report was lacking a full stack trace. It was also against a public,
complex website, which constantly changes. It was lacking any source code to reproduce
the problem.

The error "Could not load native events component." usually happens when the shared
library that is needed for native interaction does not match the Firefox that's launched:
Either because the Selenium version used is too old to support this browser or the
browser is not the vanilla Firefox distributed by mozilla.org. In case of the 5th comment,
for example, the latter explanation is likely.

The original report is lacking enough information to determine that. Newer comments
may point to another problem. I've communicated that to the commenter over IRC, asking
for a reduced test case. Since it doesn't look like the same issue, I'm closing this
one as invalid.

Reported by eran.mes on 2011-11-25 10:32:24

  • Status changed: Invalid

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Please, do not close this issue. I'm experiencing the same problem. Just cannot move
the mouse. I'm using FF7, Selenium 2.14, Mac OS 10.6.8.
Getting the WebDriverException: Message: u'Cannot perform native interaction: Could
not load native events component

Reported by dtzinov on 2011-12-06 21:01:47

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Am also getting the same exception.Can you please look into this issue ASAP.

org.openqa.selenium.InvalidElementStateException: Cannot perform native interaction:
Could not load native events component.; duration or timeout: 10.03 seconds
Build info: version: '2.11.0', revision: '14431', time: '2011-10-28 16:28:32'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version:
'1.6.0_22'


This issue is getting reproduce able on 64bit. and working fine on 32 bit.

Thanks
Santhosh.

Reported by santhoshvamshi5 on 2011-12-12 07:08:32

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Native events are not supported on Mac. As for problems on 64-bit windows, from the
information you've provided it's evident you're using an old release of Selenium. For
us to be able to diagnose such a failure, we need to know:
* The exact Windows version.
* Exact Firefox version (if not downloaded from mozilla.org, a direct link to the version
in question).
* JVM version (and whether it's a 32-bit or 64-bit one).

Reported by eran.mes on 2011-12-12 14:25:34

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

please do NOT close this issue, we are experiencing the same problem.

Firefox Version: 9.0.1 (latest)
Selenium Version: selenium-java-2.15.0.jar (latest)
Windows 7 Professional 64bit

Java 64bit as well.
dump of java-version:
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)

Exception:
com.thoughtworks.selenium.SeleniumException: Cannot perform native interaction: Could
not load native events component.
Command duration or timeout: 47 milliseconds
Build info: version: '2.15.0', revision: '15105', time: '2011-12-08 09:57:28'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version:
'1.7.0_01'
Driver info: driver.version: RemoteWebDriver


Just installed jre6u30, same error:
com.thoughtworks.selenium.SeleniumException: Cannot perform native interaction: Could
not load native events component.
Command duration or timeout: 54 milliseconds
Build info: version: '2.15.0', revision: '15105', time: '2011-12-08 09:57:28'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version:
'1.6.0_30'
Driver info: driver.version: RemoteWebDriver


Exception is thrown when clickAt is used.
Internet Explorer is doing fine.
Please fix or provide a workaround!

Reported by benediktradtke on 2011-12-25 17:52:52

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

This problem also occurs for me -- it's a FF version problem.  Works with Selenium 2.15.0
and FF 8.0.1, does not work with 9.0.1

AlCa..., suggest you try reverting and see if pblm goes away

Reported by ht@inf.ed.ac.uk on 2011-12-28 13:43:01

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

FF9 support for native events will be added in the next release, 2.16, see revision
15348

Reported by dawagner on 2012-01-03 22:16:34

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I am still having this issue, even with 2.16.1!

Reported by drakefjustin on 2012-01-13 15:04:07

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I am also having the same problem. I am using 2.16.1, FF 9.0.1 on Windows 7. Would we
have fix for this soon?

Reported by manoj.pahuja88 on 2012-01-13 20:21:26

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Fixed. Works fine with Selenium 2.18.0 and Firefox 9.0.1. Thank you! 

Reported by fedotov.nn on 2012-01-31 13:40:41

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

it happend again my Firefox9 upgrade to Firefox10.


Reported by hilerchyn on 2012-02-06 08:13:00

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

+1 it happend again my Firefox9 upgrade to Firefox10.

Reported by selenium1byebye on 2012-02-06 11:52:12

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

same Problem came up with FF update to 10.0 (Java, selenium 2.18.0)

Reported by wienert on 2012-02-08 13:03:42

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

same Problem came up with FF update to 10.0 (Java, selenium 2.18.0)

see http://code.google.com/p/selenium/issues/detail?id=3313

Reported by wienert on 2012-02-08 13:13:18

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Fixed. Works fine with Selenium 2.20 and FF > 10

Reported by ilya.shubkin on 2012-04-06 11:25:39

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I'm having the same issue.

FF12.0
Selenium 2.21.2
Python 2.7.2
Windows 7 (64 bit)

Sample code:-
mouse = webdriver.ActionChains(driver)
primaryNav = driver.find_element_by_class_name("primaryNav")
mouse.move_to_element(primaryNav).perform()

With webdriver_enable_native_events set to true, I get the following error:-
WebDriverException: Message: u'Cannot perform native interaction: Could not load
 native events component.'
From the file components/driver_component.js.

Reported by greg.loscombe on 2012-04-29 18:03:49

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Even I am facing the same issue with 
FF12.0
Selenium 2
Python 2.7
Windows 7(64 bit)

sample code is almost same as the above comment and getting the same error message
when i attempt to run the code : WebDriverException: Message: u'Cannot perform native
interaction: Could not load
 native events component.'
From the file components/driver_component.js.

Please help as I am short of time and spent more time on this particular task, Thanking
you in advance 

Reported by sarathiprasanna03 on 2012-06-06 12:43:34

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

FF 10
selenium-2.24.0-py2.7
WinXP SP3 32bits

Works!!!
FF 6 doesn't works

Reported by AndrewKoltsov on 2012-07-12 08:25:35

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

FF6 is not supported anymore, see [1] for the support policy. At the moment we support
FF 3.6, 10 (ESR), 12 (previous), 13 (latest).

[1] http://seleniumhq.wordpress.com/2012/02/24/support-for-ancient-browsers/

Reported by barancev on 2012-07-12 09:33:58

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I'm getting the same issue:

Firefox 30
Selenium 2.32.1
Windows 7 64 bit 

Reported by dcihal on 2014-07-17 15:24:47

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:13:39

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 3, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant