1.

The Selenium script runs in Chrome but not in IE. What can be done?

Answer»

The following steps can be done to fix this issue:


  • Update the Selenium IE Driver

  • Verify that the IE driver and working environment are compatible.

  • Configure the IE driver with the setProperty method and import dependencies.

  • Set the same value for the ‘Enable Protected Mode’ option for all zones from the Security tab

  • Turn off the internet security settings in IE when running the script

  • Use CSS Selectors to minimize exceptions

  • Set a registry entry

  • Avoid declaring the driver instance as static for running scripts on browsers parallelly.

  • Use the latest Selenium jars

  • Enable Javascript on the IE browser.

  • Try using JavaScriptExecutor instead of a native click when clicking elements.




Discussion

No Comment Found