Why is React's onChange event not fired on Selenium WebDriver's SendKeys in IE 11? Why is React's onChange event not fired on Selenium WebDriver's SendKeys in IE 11? selenium selenium

Why is React's onChange event not fired on Selenium WebDriver's SendKeys in IE 11?


When setting the nativeEvents capability to false (which is what you’re setting with the EnableNativeEvents property), you’re telling the IE driver to use JavaScript to simulate the events. Events simulated via JavaScriptcannot have the isTrusted property set to true. That property is designed to detect exactly the scenario you’re experiencing. The driver implementations for Firefox and Chrome are produced and maintained by the vendors for those browsers (Mozilla and Google, respectively), and as such, those drivers have access to internals of the browser in ways that the IE driver does not (and likely never will) have. If React is indeed keying off that property to fire the onChanged event, then the proper thing to do here is set EnableNativeEvents = true.