How do you force InternetExplorerDriver to launch 32-bit IE?

2,333 views
Skip to first unread message

D Morse

unread,
Dec 7, 2011, 6:42:14 PM12/7/11
to Selenium Users
I see in the IEDriver documentation that the version launch is
determined by the bitness of the client code:

"The client side checks to see if the OS is x64. If this succeeds then
it checks that the process running the client side code is a 64-bit
process. If that succeeds then the client code will try load the 64-
bit version of Internet Explorer. If any of the checks for x64 fail
the code will try use 32-bit version of Internet Explorer"

I hit a bug where a "click" works in FireFox, but fails in 64-bit IE.
I can't test 32-bit IE because 64-bit IE always launches. My OS is
Windows 7 x64 and my Eclipse and JVM are x64.

How can I force the driver to launch the 32-bit version of IE?

Krishnan Mahadevan

unread,
Dec 8, 2011, 9:38:28 AM12/8/11
to seleniu...@googlegroups.com
I have seen an IE 32 bit version being spawned when I make use of 32bit JDK and instantiate the WebDriver instance from it.

I guess it all depends on whether your JDK is 32bit or 64bit.

Try switching over to 32bit JDK and you should see IE 32bit being spinned.


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.


SeleniumUser

unread,
Mar 21, 2012, 9:31:05 AM3/21/12
to seleniu...@googlegroups.com
I tried using -Dos.arch=Win32 based on the source code, but then I just had other issues.  Anyone else have any luck with this?

Enix Shen

unread,
Mar 26, 2012, 6:26:57 AM3/26/12
to seleniu...@googlegroups.com
could you share the issues you mentioned below.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/_ilmsm4jl60J.

Newbee

unread,
Jun 11, 2012, 2:56:31 PM6/11/12
to seleniu...@googlegroups.com
Any solution to this? 


On Monday, March 26, 2012 3:26:57 AM UTC-7, EnixShen wrote:
could you share the issues you mentioned below.

On Wed, Mar 21, 2012 at 9:31 PM, SeleniumUser <anders....@gmail.com> wrote:
I tried using -Dos.arch=Win32 based on the source code, but then I just had other issues.  Anyone else have any luck with this?


On Wednesday, December 7, 2011 5:42:14 PM UTC-6, D Morse wrote:
I see in the IEDriver documentation that the version launch is
determined by the bitness of the client code:

"The client side checks to see if the OS is x64. If this succeeds then
it checks that the process running the client side code is a 64-bit
process. If that succeeds then the client code will try load the 64-
bit version of Internet Explorer. If any of the checks for x64 fail
the code will try use 32-bit version of Internet Explorer"

I hit a bug where a "click" works in FireFox, but fails in 64-bit IE.
I can't test 32-bit IE because 64-bit IE always launches. My OS is
Windows 7 x64 and my Eclipse and JVM are x64.

How can I force the driver to launch the 32-bit version of IE?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/_ilmsm4jl60J.

To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.

Vitali Samusik

unread,
Apr 21, 2014, 12:28:58 PM4/21/14
to seleniu...@googlegroups.com
The answer actually is really simple

There are 2 selenium web drivers for IE

driverIE = new OpenQA.Selenium.IE.InternetExplorerDriver(ie32DriverPath);

And on your 64 bits system you'll have 32-bit IE running.
THat is of course if you have the 32 bit ie somewhere like C:\Program Files (x86)\Internet Explorer


понедельник, 11 июня 2012 г., 21:56:31 UTC+3 пользователь Newbee написал:
Any solution to this? 

On Monday, March 26, 2012 3:26:57 AM UTC-7, EnixShen wrote:
could you share the issues you mentioned below.

On Wed, Mar 21, 2012 at 9:31 PM, SeleniumUser <anders....@gmail.com> wrote:
I tried using -Dos.arch=Win32 based on the source code, but then I just had other issues.  Anyone else have any luck with this?


On Wednesday, December 7, 2011 5:42:14 PM UTC-6, D Morse wrote:
I see in the IEDriver documentation that the version launch is
determined by the bitness of the client code:

"The client side checks to see if the OS is x64. If this succeeds then
it checks that the process running the client side code is a 64-bit
process. If that succeeds then the client code will try load the 64-
bit version of Internet Explorer. If any of the checks for x64 fail
the code will try use 32-bit version of Internet Explorer"

I hit a bug where a "click" works in FireFox, but fails in 64-bit IE.
I can't test 32-bit IE because 64-bit IE always launches. My OS is
Windows 7 x64 and my Eclipse and JVM are x64.

How can I force the driver to launch the 32-bit version of IE?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/_ilmsm4jl60J.

To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.

Krishnan Mahadevan

unread,
Apr 22, 2014, 4:13:53 AM4/22/14
to Selenium Users
@Vitali,
Not sure what was the intent behind picking up a nearly 2 year old thread!

The ability to spawn either a 32bit or a 64 bit IE browser is purely governed by the bitness of the IEDriverServer executable. 
So if one is using IEDriverServer_x64_2.41.0 then a 64 bit IE browser would be spawned on the machine and if one is using IEDriverServer_Win32_2.41.0 then a 32 bit IE browser would be spawned.

The easy way of working with IEDriverServer is ensuring that it is found in the PATH variable.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.

To post to this group, send email to seleniu...@googlegroups.com.
Message has been deleted

sunny sachdeva

unread,
Dec 1, 2014, 5:07:39 AM12/1/14
to seleniu...@googlegroups.com
@ Krishnan
This does not works for me. Recently we included IE for our testing in selenium

Even if I give path of 32 bit IEDriver , the Internet Explorer (the browser) opened is of 64 bit.

How I confirmed this by
System.setProperty("webdriver.ie.driver","D:\\Research\\WorkSpace\\SeleniumOne\\Resources\\Drivers\\IEDriverServer.exe");
WebDriver driver = new InternetExplorerDriver();

And then go to taskmanager  and check the processes. It shows
1. IEDriverServer.exe*32   >> this is fine since we opened 32 bit
2. iexplorer.exe >>Not sure why 64 bit is getting opened it should be iexplorer.exe*32

Any help would be greatly appreciated

Thanks
S

Jim Evans

unread,
Dec 1, 2014, 8:24:27 AM12/1/14
to seleniu...@googlegroups.com
Sigh. As I've said over and over and over again, the distinction between 32-bit and 64-bit IE is largely gone with IE 10. Even when you manually launch the 32-bit iexplore.exe on 64-bit Windows, the browser shuts itself down and relaunches the 64-bit executable. Eric Lawrence has written in depth about this on his blog. The "mixed-bitness" behavior of IE 10 and 11 is the only known cause of slow sendKeys, and the technical details are well documented on my blog. I have never seen slow sendKeys using the 32-bit IEDriverServer.exe.

Afzal

unread,
Dec 1, 2014, 1:55:03 PM12/1/14
to seleniu...@googlegroups.com
Hi,

Please correct me, if i'm wrong ......

i use to run my script by using below format

public static void launchIE() throws Exception {
if(System.getProperty("os.arch").contains("64") || System.getProperty("sun.arch.data.model").contains("64")){
System.setProperty("webdriver.ie.driver", System.getProperty("user.dir")+File.separator+"IEDriverServer64.exe");
 
}else{
System.setProperty("webdriver.ie.driver", System.getProperty("user.dir")+File.separator+"IEDriverServer32.exe");
}

driver = new InternetExplorerDriver();
driver.get("site");

}
Regards,
Afzal

Jim Evans

unread,
Dec 1, 2014, 2:53:00 PM12/1/14
to seleniu...@googlegroups.com
Depends. What version of IE are you executing against?

For IE9 and below, that'll work fine, and will give you 64-bit IE on 64-bit Windows, and will give you 32-bit IE on 32-bit Windows. Note that this ignores for the moment that virtually no users actually use 64-bit IE for IE9 or below.

If you're using IE10 or IE11, and you're running on 64-bit Windows, you'll get a mixed-bitness IE, where the manager process is 64-bit, and the content process (where the web page is actually rendered) is 32-bit. Even if you manually launch the 32-bit iexplore.exe, IE (the browser, not the driver) shuts itself down and launches the 64-bit executable.
Reply all
Reply to author
Forward
0 new messages