UnsupportedOperationError: sendKeysToActiveElement error while invoking sendKeys(Key.ENTER) with Protractor and Internet Explorer 11 UnsupportedOperationError: sendKeysToActiveElement error while invoking sendKeys(Key.ENTER) with Protractor and Internet Explorer 11 selenium selenium

UnsupportedOperationError: sendKeysToActiveElement error while invoking sendKeys(Key.ENTER) with Protractor and Internet Explorer 11


As you mentioned that the following line doesn't works:

text.sendKeys(Key.ENTER);

As an alternative you can use:

text.sendKeys(Key.RETURN);

You can find a detailed discussion in Typing Enter/Return key in Selenium

Incase the element is within a form you can also use another alternative as:

text.submit();

You can find a detailed discussion in Selenium: submit() works fine, but click() does not

Additionally, while you work with Internet Explorer v11 you need to configure your test framework with the Required Configuration. Apart from these specifically only for IE 11 you will need to set a registry entry on the target computer so that the driver can maintain a connection to the instance of Internet Explorer it creates as follows:

  • For 32-bit Windows installations, the key you must examine in the registry editor is:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. 
  • For 64-bit Windows installations, the key is:

    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. 

You can find a detailed discussion in Internet Explorer 11 getting stuck randomly while executing tests through IEDriverServer and Selenium