0

I am new to selenium and trying to execute my selenium web-driver script on IE 11 with window 10 combination sometime its run really slow and most of the time test fails with exceptions.

Exception:

System info: host: 'REF16U1ABJUN', ip: '172.17.2.130', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_231'

Upgraded Selenium to current levels Version 3.141.59. Upgraded IEDriverServer to latest IEDriverServer v3.150.1

Can somebody help me.

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
Mirfan
  • 1
  • 1
  • 2
  • 1
    Which version of IE 11 do you have? There might be more stable combinations of IE 11 and the IEDriverServer. – Greg Burghardt Jan 17 '20 at 18:09
  • you need to post the actual exception here... – pcalkins Jan 17 '20 at 18:44
  • System info: host: 'REF16U1ABJUN', ip: '172.17.2.130', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_231' – Mirfan Jan 17 '20 at 19:26
  • Capabilities {acceptInsecureCerts: false, browserName: internet explorer, browserVersion: 11, javascriptEnabled: true, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy() – Mirfan Jan 17 '20 at 19:27
  • se:ieOptions: {browserAttachTimeout: 0, elementScrollBehavior: 0, enablePersistentHover: true, ie.browserCommandLineSwitches: , ie.edgechromium: false, ie.edgepath: , ie.ensureCleanSession: – Mirfan Jan 17 '20 at 19:29
  • Thank you for responding back to me those are exception i am getting after running my script i did disable protected mode setting for all zones.and try to use different IE driver versions but nothing works for me could you please guide me if i am missing something,IE 11 version is 64 bit i did try both IE driver 32 or 64 Thank you – Mirfan Jan 17 '20 at 19:34
  • Maybe [this](https://stackoverflow.com/questions/55285722/what-is-the-correct-iedriverserver-version-to-use-with-ie-11-through-selenium) SO can help you. – Jeroen Heier Jan 17 '20 at 19:49
  • Please check your code, perhaps you are using the SendKeys method to enter values, if that is the case, you could try to use the `ExecuteScript()` method to execute the JavaScript script and use it to enter values into the input text element. More detail information, please check [this link](https://stackoverflow.com/questions/11430773/how-to-use-javascript-with-selenium-webdriver-java). – Zhi Lv Jan 18 '20 at 03:14

1 Answers1

0

I have faced the same issue that test cases were slow on IE.

A quick solution is to use Internet explorer driver of 32 bit instead 64 bit.

Still if you facing slowness of IE 11 after switched to IE driver 32 bit then keep these points in mind.

Recommendation for IE driver 32 bit

You can download IE driver from here

Update: Try this

Internet Options → Advanced → Security → ☑ Enable 64-bit processes for Enhanced Protected Mode

Muzzamil
  • 2,823
  • 2
  • 11
  • 23
  • Hi,thank you for responding back to me . I am using IE 11 version with 64 bit i did try to use IE driver version 32 bit still facing same issue do you have any more suggestions on this issue thank you – Mirfan Jan 17 '20 at 19:20
  • I have added points have details specific to IE10-11 to improve speed like disable protected mode. Zoom level should be 100% and change in reg entry for IE-11 specific please check these points hyperlink – Muzzamil Jan 17 '20 at 19:33
  • “Enhance protected mode” must be disabled. Is it done? – Muzzamil Jan 17 '20 at 20:04
  • @Mirfan I have updated the question. Please try it – Muzzamil Jan 17 '20 at 20:10
  • yes they are disable for all zones – Mirfan Jan 17 '20 at 20:25
  • Can you try updated part of post. – Muzzamil Jan 17 '20 at 20:27
  • hi i just disable enhanced protected mode setting with zones setting let see if it works for me – Mirfan Jan 17 '20 at 20:29
  • I am talking about ‘Enhance Protected mode’ which in advance tab not ‘Enable protected mode’ which is in security tab – Muzzamil Jan 17 '20 at 20:30