Working with Internet Explorer
AutoBloks utilizes Selenium WebDriver to interact with web browsers. To effectively drive Internet Explorer with Selenium, a computer needs to be configured a certain way. If you attempt to run a Process in AutoBloks with Internet Explorer, it will check your configuration and prompt you if any settings appear incorrect.
Accessing Internet Options
Several of the settings configured below require you to access Internet Options. Open Internet Explorer. Select the Tools icon and select Internet options from the menu.
This will open the Internet Options dialog.
Consistent Protected Mode
Open Internet Options (detailed above) and select the Security tab.
For each security zone (Internet, Local intranet, Trusted sites, and Restricted sites), you must have the same setting for Enable Protected Mode.
Select each Zone and make sure Enable Protected Mode is checked. Click OK or Apply to save any changes.
Disable Enhanced Protected Mode
Open Internet Options (detailed above) and select the Advanced tab.
Select the Advanced tab. Scroll through the list of options until you reach the Security section. Locate the option for Enable Enhanced Protected Mode and make sure the option is not checked. Click OK or Apply to save any changes.
Browser Zoom 100%
The browser zoom level must be set to 100% so that native mouse events can be set to the correct coordinates.
Open Internet Explorer. Select the Tools icon, select Zoom, and select 100% from the menu if it is not already selected.
For Internet Explorer 11 only, a registry setting needs to be added so that the software can maintain a connection with the Internet Explorer window.
The steps below differ based on whether you are using a 32-bit or 64-bit operating systems. Refer to Microsoft's support page to determine if your version of Windows is 32-bit or 64-bit. As of this writing, the support page does not list Windows 10 or any of the Windows Server variants as an operating system selection, but you can follow Windows 7 Method 2 which is also outlined below.
Most users will be able to follow these steps on any version of Windows:
- Click Start, type
systemin the Search box, and then click System Information from the matching list of programs. This will open the System Information dialog.
- When System Summary is selected in the navigation pane, the operating system is displayed as follows:
- For a 64-bit version operating system, x64-based PC appears for the System type under Item.
- For a 32-bit version operating system, x86-based PC appears for the System type under Item.
To open Registry Editor, first open the Run dialog by pressing the keyboard shortcut Windows + R. Alternatively, you may also open the Run dialog by clicking Start, typing
run in the Search box, and selecting the Run match. The Run dialog should be displayed.
regedit in the Open box then click OK.
Navigate to the FeatureControl Key
The left pane of the Registry Editor is where you select a registry key. Each key is displayed hierarchically like folders on your file system. You need to navigate to the
FeatureControl key for internet explorer. The location of this key differs between 32-bit and 64-bit operating systems. See the instructions above if you do not know which operating system you have.
- 32-bit Operating System
- 64-bit Operating System
The above screenshot shows a selection for a 64-bit operating system (1). Expand the FeatureControl key (2) and verify if FEATURE_BFCACHE (3) is listed as a sub-key. The FEATURE_BFCACHE key is not typically present and will need to be created if it does not already exist.
Creating the FEATURE_BFCACHE Key
Perform this step ONLY if the FEATURE_BFCACHE sub-key is not present.
To create the FEATURE_BFCACHE key, right-click on the FeatureControl key, select New, and then Key from the context menu. This will create a new sub-key and it will be in edit mode allowing you to type a name for the new key. Type
FEATURE_BFCACHE and press the Enter key to commit the name.
Verify/Create the IEXPLORE.EXE Value
Select the FEATURE_BFCACHE key and the list of values for that key will be displayed on the right.
- If you already have an entry for iexplore.exe with type of REG_DWORD and value of 0x00000000 (0) then no changes are necessary.
- If you already have an entry for iexplore.exe, but the value is not set to 0x00000000 (0) then you will need to change the value. Double-click the value in Registry Editor to open the Edit DWORD (32-bit) Value dialog. Type
0in the Value data field and click OK.
- If the entry for iexplore.exe does not exist, it will need to be created. Make sure FEATURE_BFCACHE is selected. From the Registry Editor menu, select Edit > New > DWORD (32-bit) Value. This will create a new value and it will be in edit mode allowing you to type a name. Type
iexplore.exeand press the Enter key to commit the name. The value should default to 0x00000000 (0).
You may now close the Registry Editor.
The official documention for working with Selenium's Internet Explorer Driver (
IEDriverServer.exe) is available on GitHub with a section dedicated to "Required Configuration". For convenience, the configuration requirements are repeated below:
- This step is not necessary since AutoBloks manages the path for you. The IEDriverServer exectuable must be downloaded and placed in your PATH.
- Documented above as 'Consistent Protected Mode'. On IE 7 or higher on Windows Vista or Windows 7, you must set the Protected Mode settings for each zone to be the same value. The value can be on or off, as long as it is the same for every zone. To set the Protected Mode settings, choose "Internet Options..." from the Tools menu, and click on the Security tab. For each zone, there will be a check box at the bottom of the tab labeled "Enable Protected Mode".
- Documented above as 'Disable Enhanced Protected Mode'. Additionally, "Enhanced Protected Mode" must be disabled for IE 10 and higher. This option is found in the Advanced tab of the Internet Options dialog.
- Documented above as 'Browser Zoom 100%'. The browser zoom level must be set to 100% so that the native mouse events can be set to the correct coordinates.
- For Windows 10, you also need to set "Change the size of text, apps, and other items" to 100% in display settings.
- Documented above as 'Registry Updates'. For IE 11 only, 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. 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. Please note that the
FEATURE_BFCACHEsubkey may or may not be present, and should be created if it is not present. Important: Inside this key, create a DWORD value named
iexplore.exewith the value of