In Selenium (WebDriver), depending on OS, the Firefox Driver uses "native events" for user interaction simulation (keyboard, mouse, etc). It can also use "synthesized events", user interaction emulated via Javascript.
How do I disable native events, and enable synthesized events? (in Python)
In a Firefox profile, you can set a preference or property like this (both have same effect):
profile.native_events_enabled = False
or...
profile.set_preference('webdriver_enable_native_events', False)
Example:
from selenium import webdriver
profile = webdriver.FirefoxProfile()
profile.native_events_enabled = False
driver = webdriver.Firefox(profile)
# synthesized events are now enabled for this
# driver instance... native events are disabled.
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With