Cross-browser testing: All major browsers on ONE machine

Internet ExplorerBrowserCross BrowserVirtualization

Internet Explorer Problem Overview


Aim of this guide:

  • Running multiple unmodified native versions of Internet Explorer,
    Safari, Opera, Chrome and Firefox on a single machine, side-by-side.

Covered in part 1:

  • Table of contents
  • Which browsers have to be tested?
  • How to create a Windows XP VM which boots quickly, and never expires?
  • Where can the necessary software (VM image, browsers, ... ) be downloaded?

Also covered in part 2:

  • Installation and configuration guide for IE, Firefox, Opera, Chrome and Safari.
  • Developer tools and shortcuts.
  • Time and disk space costs.

Many sections are independent. Eg, instructions on running multiple versions of a browser are generally applicable.

Internet Explorer Solutions


Solution 1 - Internet Explorer

> ###Contents > 1. Which browsers have to be tested?

  • Rules of thumb: Which browsers should be included?
  1. Preparation
  • Windows XP
  • Windows 7+ (for IE9+)
  • Browser downloads
    • Internet Explorer
    • Firefox
    • Opera
    • Chrome
    • Safari
    • Adobe Flash Player
  • Download summary
  1. Sandboxie

    Part 2: Installation and configuration
  2. Internet Explorer
  3. Firefox
  4. Opera
  5. Chrome
  6. Safari
  7. Developer tools (and shortcuts)
  8. Measured set-up time and disk space
  • Time needed per browser (install & config)
  1. Optimal usage
  • Homepage at http://10.0.2.2:8888/

> #1. Which browsers have to be tested?

Statistics are quickly outdated. For this reason, I refer to Usage share of web browsers on Wikipedia, and the following sites for the latest browser version information. Each site is suffixed by a brief usage guide.

  • Can I use - Browser usage table, based on data from StatCounter and other sources.
  • StatCounter - Statistic: Browser version | Time period: Last month [screenshot][4].
  • [W3Counter][5] - View archived reports: January 2012 (Choose the last month). [screenshot][6].
  • [Wikimedia][7] - Go to the bottom to open the latest report, SquidReportClients.
  • [Clicky][8] - This site offers statistics for individual versions [screenshot][9].

##Rules of thumb: Which browsers should be included?

  • [Firefox][10]: Latest [ESR release][11] + latest stable major version. [Release notes][12] | [For developers][13] | [Rapid release schedule][14]
  • [Opera][15]: 12.x + Latest stable version. [Version history][16]
    Since Opera 15, Opera uses the same engine as Chrome. Quite a lot of users are still using Opera 12 though (when Opera 15 was released, the UX significantly changed).
  • [Safari][17]: 5.1.7 (Windows) + Latest version. [Release notes][18]
    Unfortunately, Apple dropped support for Windows, so you need to get a Mac or run OS X in a VM to test pages in Safari.
  • [Chrome][19]: Latest stable version. [Release notes][20]
  • [Internet Explorer][21]: IE8+. [Feature history][22]
    This actually depends on your clients. This guide teaches how to get IE6 and 7 as well, but these browsers are already dead, or close to dead. IE8 is the last supported version of Internet Explorer on Windows XP, which is still used a lot.

Remark

These days, most web browsers use some form of rapid releases with automated updates. When this guide was written, the releases were not as frequent, and thus it was useful to set up a set of browsers without having to look back.
Unless you intentionally want to test applications in old browsers, just get the latest version of the browser and let the auto-updater take care of managing the version.

If you don't need too much flexibility, and quickly want to test a page, I recommend to take a look at [BrowserStack.com][23]. After signing up, you can get a 30-minute free trial that grants you access to a lot of desktop and mobile browsers, directly within your browser.


> #2. Preparation

Before setting up the machine, download all necessary files (see "Download summary" at the end of this section). All files are going to be shared with the virtual machine through a shared folder[What? How?][24].

  • Virtualization software ([VirtualBox][25] is recommended, it is free even for commercial use. The instructions below are written with [VirtualBox][26] in mind.)
  • Windows XP
  • Download the IE6 XP image for VirtualBox from the [modern.IE][27] website. Extract the .ova file inside and run it to import it into VirtualBox. (Images are also available for other virtualization products such as VMware, Parallels, Virtual PC and Hyper-V)
    • [IE6 XP image for VirtualBox on Windows][28] about 764MB
    • [IE6 XP image for VirtualBox on Mac][29] about 717MB
    • [IE6 XP image for VirtualBox on Linux][30] about 771MB
  • Preparing the image for use:
    • VirtualBox settings: Enable the network adapter, but do not connect the VM to a real network.
    • VirtualBox settings: Create a read-only shared folder. This folder is going to be used to transfer data between the Host OS and the guest OS.
    • Run net use x: \\vboxsvr\WinShared (assuming that the shared folder is called WinShared. This will bind the network directory to the x: drive).
    • Optional: Install [AntiWPA][31] to disable the activation check if you will use the image for more than 30 days.
    • Optional: Disable the paging file (Computer > Properties > Advanced > Performance > Advanced > Virtual Memory > Change > No paging > Set [confirm]).
    • Optional: Disable [unnecessary services][32] via Start > Run > services.msc
      Order the rows by column Startup Type, and switch all "Automatic" services to "manual", according to the image. Whenever you want to install a MSI package, run net start msiServer ("Windows Installer"):
      ![Windows XP - services.msc][33]
    • Optional: [Disable Desktop clean-up wizard][34]: Desktop > Properties > Desktop > Customize Desktop > Disable "Desktop Cleanup wizard every 60 days"
    • Optional: Install and configure Sandboxie (used for running IE7 and IE8 in the same IE6 virtual machine)
    • Optional: Install [CCleaner][35], run it to configure it and clean junk.
    • Optional: Install [7-Zip][36] (used for multiple Chrome's)
    • Shutdown the system via the guest OS (WinXP).
    • VirtualBox settings: Connect the VM to a real network.
      (Only Internet Explorer requires Internet during installation)
    • Optional: Create a snapshot of your VM, so that you can restore when you mess up in the next step.
  • Windows 7+ (for IE9+)
  • Download pre-built virtual machine images from the [modern.IE][37] website.
    These images are time-bombed, they expire 30 days after first use. When the images are expired, they shut down after an hour of use. If you do not wish to re-create the images every time, change the hardware clock of your VM before activating the image.
    In VirtualBox, for example, you can use VBoxManage modifyvm NAME_OF_VM --biossystemtimeoffset +3600000000 to set the time to 1000 hours in the future (use minus if you want to set it to some point in the past).
  • Browsers downloads
  • Internet Explorer:
    • Recommended method if you want IE 6-8 on a single machine:
      • Requires [Sandboxie][38] (I recommend [paying][39] for the full version, or [look on YouTube][40]).
      • IE6 - Pre-installed in XP VM
      • [IE7][41] and [IE8][42] full offline installer
      • [Internet Explorer Developer toolbar][43] ([release information][44]) (for IE6+7)
    • IE9+ - Use a pre-built images from [modern.IE][45]).
  • Firefox:
    • [Profile Manager][46] To easily manage multiple profiles
    • Download the latest version from [Mozilla.org][47].
    • Download old versions from [ftp.mozilla.org][48] (if you're only interested in recent old versions, see [releases.mozilla.org][49]).
    • or, use [Utilu Mozilla Firefox Collection][50].
  • Opera:
    • Download any Opera version from [Opera.com][51].
  • Chrome:
    • Download [7-zip][52] to extract Chrome installers.
    • Download a specific version at [FileHippo.com][53]. Make sure that you select "FileHippo" mirror to get the archived version. Otherwise you will be redirected to the latest version from Google's servers.
  • Safari:
    • Download the latest version from [Apple.com][54].
    • Download other versions from [Oldapps.com][55].
  • [Adobe Flash Player][56]
    • Download [version 10.3][57]3 MB if flash has to work in IE6. Otherwise, download [the latest version][58].
    • Download the latest plugin [for other browsers][59].

###Download summary For convenience, it's wise to have all installation files in the shared folder. Here's a brief (complete) list of all necessary files (ordered per step):

  • [IE6 XP image for VirtualBox on Windows][60] about 764MB
  • [IE6 XP image for VirtualBox on Mac][61] about 717MB
  • [IE6 XP image for VirtualBox on Linux][62] about 771MB
  • [AntiWPA][63] 24 KB; [false positives][64]; md5: e5a14c47e9c26e78fccb22ee71fedd51, [CCleaner][65] 3.5 MB, [Sandboxie][66] 2.3 MB
  • Browsers ([Firefox][67] + [Profile manager][68], [Opera][69], [Chrome][70], [Safari][71])
    IE7 XP and IE8 XP installers can be downloaded here: [IE7][72], [IE8][73]
  • [7-zip][74] 1.1 MB to extract Chrome's installers.
  • [ActiveX 10.3][75] for IE6+, [latest plugin version][76] for other browsers.
  • [IE Developer toolbar][77] for IE6 and 7 626 KB

> #3. Sandboxie

[Sandboxie][78] is a lightweight tool which runs applications in a sandbox. It can also be used to install multiple versions of IE/Safari on a single Windows machine.

  • Download: http://sandboxie.com/index.php?DownloadSandboxie
  • Patch: The extended version is required to enable multiple sandboxes at a time. [Pay][79] them or [visit YouTube][80].
    Running multiple IE/Safari versions simultaneously requires the extended version. If you don't mind testing one IE/Safari version at a time, the standard version is sufficient.

    Post-install:
  • Disable tips: "Configure > Tips > Hide All Tips"
  • By default, a yellow border appears around sandboxed applications. If you don't like this, go to Configure base: "Sandbox > DefaultBox > Sandbox Settings > Appearance".

    For each new IE/Safari version, you have to follow the following steps:
  • Create: "Sandbox > Create New Sandbox" - Enter a name, eg "IE8" and confirm.
  • Install: "IE8 > Run Sandboxed > Run Any Program"
    Select the desired installer, and press OK.
  • Shortcut: Upon finishing installation, use "IE8 > Explore contents", locate the binary and create a Desktop shortcut to the application.

All sandboxed file/registry changes are saved in C:\Sandbox. Applications in this directory start in a sandbox by default. Other programs can easily be started in a sandbox via the contextmenu: "Run Sandboxed" or "Send To > Sandboxie > IE8".

Cleaning up using CCleaner: Run CCleaner in the main environment, then in the individual sandboxes.

Navigate to: Part 2

[4]: http://i.stack.imgur.com/HS59c.png "Screenshot: Setting options in StatCounter" [5]: http://www.w3counter.com/globalstats.php?year=2012&month=4 [6]: http://i.stack.imgur.com/aHSUI.png "Screenshot: Choosing the report in W3Counter" [7]: http://stats.wikimedia.org/archive/squid_reports/ [8]: http://www.getclicky.com/marketshare/global/web-browsers/versions/ [9]: http://i.stack.imgur.com/ByiQq.png "Screenshot: Show browsers' individual statistics" [10]: http://www.getclicky.com/marketshare/global/web-browsers/firefox/ [11]: https://www.mozilla.org/en-US/firefox/organizations/faq/ [12]: https://www.mozilla.org/en-US/firefox/releases/ [13]: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases [14]: https://wiki.mozilla.org/RapidRelease/Calendar [15]: http://www.getclicky.com/marketshare/global/web-browsers/opera/ [16]: http://www.opera.com/docs/history/ [17]: http://www.getclicky.com/marketshare/global/web-browsers/safari/ [18]: https://apple.stackexchange.com/questions/2576/is-there-anywhere-i-can-get-a-complete-list-of-historical-safari-release-notes [19]: http://www.getclicky.com/marketshare/global/web-browsers/google-chrome/ [20]: http://googlechromereleases.blogspot.com/ [21]: http://www.getclicky.com/marketshare/global/web-browsers/internet-explorer/ [22]: http://en.wikipedia.org/wiki/Features_of_Internet_Explorer#History [23]: http://www.browserstack.com/ [24]: http://www.techsmartlife.com/2012/01/09/share-and-write-files-between-host-and-guest-os-on-virtualbox/ [25]: https://www.virtualbox.org/ [26]: https://www.virtualbox.org/ [27]: http://www.modern.ie/en-us/virtualization-tools#downloads [28]: https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/Windows/IE6_XP_Signed/IE6.WinXP.For.WindowsVirtualBox.exe [29]: https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE6_WinXP.ova.zip [30]: https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/Linux/IE6_XP/IE6.WinXP.For.LinuxVirtualBox.sfx [31]: http://www.google.com/search?q=Antiwpa-V3.4.6_for_X64_and_X86.zip+download [32]: http://www.blackviper.com/2008/05/19/black-vipers-windows-xp-x86-32-bit-service-pack-3-service-configurations/ [33]: http://i.stack.imgur.com/lRTQq.png "services.msc; only the necessary services are shown" [34]: http://support.microsoft.com/kb/320154 [35]: http://www.piriform.com/ccleaner [36]: http://www.7-zip.org/ [37]: http://www.modern.ie/en-us/virtualization-tools#downloads [38]: http://sandboxie.com/index.php?DownloadSandboxie [39]: http://www.sandboxie.com/index.php?RegisterSandboxie [40]: http://www.youtube.com/results?search_query=sandboxie%2032-bit%20multiple%20sandboxes [41]: http://download.microsoft.com/download/3/8/8/38889dc1-848c-4bf2-8335-86c573ad86d9/IE7-WindowsXP-x86-enu.exe [42]: http://download.microsoft.com/download/C/C/0/CC0BD555-33DD-411E-936B-73AC6F95AE11/IE8-WindowsXP-x86-ENU.exe [43]: http://download.microsoft.com/download/1/6/4/164E1C78-A660-4C25-86E9-3C95EB0C537C/IEDevToolBarSetup.msi [44]: http://www.microsoft.com/download/en/details.aspx?id=18359 [45]: http://www.modern.ie/en-us/virtualization-tools#downloads [46]: https://developer.mozilla.org/en/Profile_Manager [47]: https://www.mozilla.org/en-US/firefox/ [48]: https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/ [49]: http://releases.mozilla.org/pub/mozilla.org/firefox/releases/ [50]: http://utilu.com/UtiluMFC/ [51]: http://www.opera.com/browser/download/?custom=yes [52]: http://www.7-zip.org/ [53]: http://www.filehippo.com/download_google_chrome/history/ [54]: http://www.apple.com/safari/download/ [55]: http://www.oldapps.com/apple_safari.php [56]: http://get.adobe.com/flashplayer/otherversions/ [57]: http://blogs.adobe.com/asset/2012/03/an-update-for-the-flash-player-updater.html#comments [58]: https://get.adobe.com/flashplayer/otherversions/ [59]: https://get.adobe.com/flashplayer/otherversions/ [60]: https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/Windows/IE6_XP_Signed/IE6.WinXP.For.WindowsVirtualBox.exe [61]: https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE6_WinXP.ova.zip [62]: https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/Linux/IE6_XP/IE6.WinXP.For.LinuxVirtualBox.sfx [63]: http://www.google.com/search?q=Antiwpa-V3.4.6_for_X64_and_X86.zip%20download [64]: https://www.virustotal.com/file/d8275a1c165842181215a8d05f91654a61b23584c6e0174fc613d3100b090da3/analysis/ [65]: http://www.piriform.com/ccleaner/download/standard [66]: http://sandboxie.com/index.php?DownloadSandboxie [67]: http://releases.mozilla.org/pub/mozilla.org/firefox/releases/ [68]: ftp://ftp.mozilla.org/pub/mozilla.org/utilities/profilemanager/1.0/ [69]: http://www.opera.com/browser/download/?custom=yes [70]: http://www.filehippo.com/download_google_chrome/history/ [71]: http://www.oldapps.com/apple_safari.php [72]: http://download.microsoft.com/download/3/8/8/38889dc1-848c-4bf2-8335-86c573ad86d9/IE7-WindowsXP-x86-enu.exe [73]: http://download.microsoft.com/download/C/C/0/CC0BD555-33DD-411E-936B-73AC6F95AE11/IE8-WindowsXP-x86-ENU.exe [74]: http://www.7-zip.org/ [75]: https://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html#Flash%20Player%20archives [76]: https://get.adobe.com/flashplayer/otherversions/ [77]: http://download.microsoft.com/download/1/6/4/164E1C78-A660-4C25-86E9-3C95EB0C537C/IEDevToolBarSetup.msi [78]: http://sandboxie.com/ [79]: http://www.sandboxie.com/index.php?RegisterSandboxie [80]: http://www.youtube.com/results?search_query=sandboxie%2032-bit%20multiple%20sandboxes

Solution 2 - Internet Explorer

> Contents of part 2 (navigate to: part 1) >  4.  Internet Explorer
 5.  Firefox
 6.  Opera
 7.  Chrome
 8.  Safari
 9.  Developer tools (and shortcuts)
 10.  Measured set-up time and disk space
    •  Time needed per browser (install & config)
 11.  Optimal usage
    •  Homepage at http://10.0.2.2:8888/


> #Installation & configuration

Browser configuration tips:

  • Home page
  • Disable check for: "Default browser" and "updates".
  • Activate Developer tools

> #4. Internet Explorer

Windows 7 does not allow running older instances of IE but see note below. That is why a Win XP VM is needed.

IE cannot be downgraded, so start with the lowest version, then upgrade IE in a separate Sandboxie. Set the preferences in the lowest browser version before upgrading, so that you only have to set the main preferences once.

  • IE6 - Installed by default in WinXP
  • IE7/IE8 - Install in Sandboxie (WinXP)
  • IE9+ - Get a pre-built Windows virtual machine images from the modern.IE website.
    These images expire 30 days after first use. When the images are expired, they shut down after an hour of use. If you do not wish to re-create the images every time, change the hardware clock of your VM before activating the image.
    E.g. If you use VirtualBox, launch the terminal and issue the following command (replace the capitalized names with something sensible):
    VBoxManage modifyvm NAME_OF_VM --biossystemtimeoffset <OFFSET IN MS, prefixed by plus or minus>

Fully offline installers for IE6 (and even IE5.5) are available at this site.

For IE6 and IE7, the Internet Explorer Developer Toolbar should be installed. IE8+ has built-in F12 Developer tools.

Configuration

  • Start IE6 settings: Home page, Security, Cookies, default browser.
  • IE7: Get rid of the First run page, via (IE7 Sandboxie) registry. See this post on Microsoft's TechNet forum.
  • IE8: Get rid of the "Set Up Windows Internet Explorer 8" dialog. This can be done by starting IE8, then clicking "Later", or modifying the registry.

It is actually possible to run IE6 - 8 in Windows 7 through application virtualization. VMWare ThinApp works great, but it takes considerably more time to set up, because you need to capture the installation of Internet Explorer. Also, the software package is very expensive (keygens are freely available, but unethical).


> #5. Firefox

Option 1 (lazy):
Utilu Mozilla Firefox Collection. This tool contains installers for all Firefox versions (200+ MB). Firebug, the Web Developer toolbar and Flash are also included.

Option 2:
Multiple Firefox versions can easily be installed and executed at the same time.

  1. Download Mozilla's official Profile Manager.
  2. Download the relevant Firefox versions from http://releases.mozilla.org/pub/mozilla.org/firefox/releases/. Older versions can be found at ftp.mozilla.org.
  3. Install each Firefox version. It is convenient to choose one main directory ("Firefox"), and use the version numbers as names for the subdirectories ("3.6").
  4. Extensions: Start the oldest Firefox version, and get your favourite extensions:
  • Firebug - A must-have for old Firefox versions. Not really needed for the latest Firefox versions, that have a nice set of built-in dev tools.
  • HttpFox - A simple and effective tool to measure HTTP requests.
  • Web Developer - An extremely useful toolbar for web development. Saves much time.
  • Console2 - Enhances the built-in Console (Ctrl Shift> J).
  1. Preferences: Tools > Options (Windows), Edit > Preferences (Linux)
  • General: Homepage
  • Security: Uncheck all settings, except for "Warn me when sites try to install add-ons".
    (Do not forget to view the Warning message settings, via the button at the bottom).
  • Advanced:
    • General:
      • Check for default browser: off
      • Submit crash reports: off
    • Update: Disable all updates
  1. Clean-up: Close all tabs, press Ctrl Shift Del and check everything. Then close Firefox.
  2. Firefox' Profile Manager:
    [http://i.stack.imgur.com/eeN6c.png" width="450" height="250" alt="screenshot" title="Full size"/>][20]
  • Duplicate each profile via the Copy option.
  • A [dialog screenshot][21] opens. Choose an appropriate name (e.g. Firefox 3.6) and a destination.
  • Use the Firefox version option to select the default Firefox version for the profile.
  • Also check the Start new instance [-no-remote] box, to allow multiple simultaneous Firefox versions running at a time.
  1. Finishing up
  • Use the Start Firefox button to start an instance of Firefox.
  • Let the add-on compatibility check run and update where necessary.
  • Clear the cache, history, etc. using Ctrl Shift Del.
  • Repeat this step for each Firefox version.

> #6. Opera

Opera: A list of all installers is available on [Opera.com][22]. Multiple versions can be installed side-by-side without any problems. During the installation, choose "Custom", and a different directory.
On installation, also choose to use the same profile for all users.

Important preference: Settings > Preferences > Advanced > Security > Do not check for updates.

Note: Opera 15+ uses the same rendering and JavaScript engine as Chrome.


> #7. Chrome

Chrome: Stand-alone installers can be downloaded from [File Hippo][23].
It is also possible to run multiple Chrome versions side-by-side.

Although Sandboxie can be used, it's recommended to use the next native method in order to run multiple versions side-by-side.

  1. Download the desired version(s) from [File Hippo][24].

  2. Create a main directory, e.g. C:\Chrome\.

  3. Extract the installer (=without installing), using [7-Zip][25] for example.
    After extracting, a chrome.7z archive is created. Also extract this file, and descend the created Chrome-bin directory.
    Now, you see chrome.exe and a dir like 18.0.1025.45.
    Move chrome.exe to 18.0.1025.45, then move this directory to C:\Chrome. The remaining files in Chrome-bin can safely be deleted.

  4. Create a shortcut for each version:

     "C:\Chrome\18.0.1024.45\chrome.exe" --user-data-dir="..\User Data\18" --chrome-version=18.0.1025.45
    

Explanation of this shortcut:

  • "C:\Chrome\18.0.1024.45\chrome.exe" • This is the launcher
  • --user-data-dir="..\User Data\18" • User profile, relative to the location of chrome.exe. You could also have used --user-data-dir="C:\Chrome\User Data\18" for the same effect. Set your preferences for the lowest Chrome version, and duplicate the User profile for each Chrome version. Older Chrome versions refuse to use User profiles from new versions.
  • --chrome-version=18.0.1025.45Location of binaries:
    • The location (eg 18.0.1025.45) must be the name of the directory:
    • Must start and end with a number. A dot may appear in between.
    • The numbers do not necessarily have to match the real version number (though it's convenient to use real version numbers...).

Regarding configuration: All preferences can be set at chrome://settings/. I usually change the home page and "Under the hood" settings.

With the lot of Chrome releases, it is not practical to have all versions installed. I have created a VB script that automates these steps, so I can just store the installers, then run the script whenever I need to test an old version of Chrome: https://gist.github.com/Rob--W/2882558


> #8. Safari

Note: Safari support on Windows has been discontinued. The last supported Safari version on Windows is 5.1.7; you need a Mac or an OS X VM to test your sites in newer Safari versions.

Safari does [not natively support][26] multiple versions or user profiles side-by-side. Safari 4 is [close to death][27], so you only have to test 5.*. All Safari versions can be downloaded from [Old Apps][28].

  • Download and install [Safari 5.0][29].
  • Start Safari, set your preferences.
  • Create a new Sandboxie sandbox for each additional installation.
    It's important to initially install the oldest version, so that the user profile can be adapted by newer versions.
  • For more information on installing in Sandboxie, see the Sandboxie and Internet Explorer section.

The Developer tools have to be enabled via Preferences > Advanced > Show Developer menu in menu bar. After installing Safari, uninstall Apple software Updater, via Control panel > Add/Remove software.


> #9. Developer tools (and shortcuts)

  • Internet Explorer
    • IE6 / IE7: [Internet Explorer Developer toolbar][30]
    • IE8 F12 [Developer tools][31] Built-in
    • IE9+ F12 [F12 Developer tools][32] Built-in
  • Firefox
    • 3.6+ F12 [Firebug][33] (see [addons.mozilla.org][34])
    • 4+ Ctrl Shift K [Web console][35] Built-in
    • All Ctrl Shift J Error console Built-in (Extensible using [Console2][36])
  • Opera
    • 9.5+ Ctrl Shift I [Opera Dragonfly][37] Built-in
    • 15+ Ctrl Shift J [Chromium Developer Tools][38] Built-in.
  • Chrome
    • All Ctrl Shift J [Chrome Developer Tools][39] Built-in.
  • Safari
    • 4+ Ctrl Alt C [Safari Developer Tools][40] Built-in. These tools are disabled by default. Enable it via Preferences > Advanced > Show Developer menu in menu bar.

> #10. Measured set-up time and disk space

  • Setting up the base environment takes 30 minutes.
  • Installing browsers does not require much time.
  • Depending on the number of browsers, configuring them can take some time.

  • Setting up a WinXP VM with the browsers as listed in this guide + Opera 12 beta:
    • Size of downloads: 585MB
    • 12 browsers
    • Time used: 1:09 hour (32 minutes to get to IE)
    • Appliance size: 1.1G / imported size: 2.2G.
    • Detailed log: http://pastebin.com/R7WGPK99
  • Setting up a huge WinXP VM for detailed browser compatibility tests:
Time needed per browser (install & config)
  • Opera: 2 minutes
  • Internet Explorer: 3 minutes *
  • Safari: 4 minutes *
  • Firefox: 5 minutes
  • Chrome: 6 minutes

* excludes time to set up a Sandboxie Sandbox ( < 1 minute).


> #11. Optimal usage

When you've finished installing, use CCleaner to clean junk, then:

  • Export the appliance (this appliance can be saved elsewhere as a back-up).
  • Remove the newly created Virtual Machine
  • Import the appliance (these steps reduce the file size of the VM)
  • Create a snapshot (to be used as a checkpoint)

From now on, when you've finished testing web pages, turn off the VM, and choose "Restore snapshot". This will keep your VM tidy and fast.

![Turn off machine > Restore snapshot][41]

###Homepage at http://10.0.2.2:8888/ The guest OS can access the host OS by IP address 10.0.2.2. A server running on port 8888 can be accessed at the guest through http://10.0.2.2:8888/, even when the host does not have an internet connection.

For this reason, setting http://10.0.2.2:8888/ as the home page is recommended.

Possible use cases:

  • Test a single page.
  • Automatically show a certain page, depending on the exposed User agent (e.g. by redirection).
  • Fiddling: Create a fiddle in Chrome, and test it in Firefox.
  • Share text and links.

All of the previous can easily be implemented on a simple server (I've used [Node.js][42], for example).

[20]: http://i.stack.imgur.com/eeN6c.png "Firefox' profile manager" [21]: http://i.stack.imgur.com/opgTT.png "Profile manager: Copy profile dialog" [22]: http://www.opera.com/browser/download/?custom=yes [23]: http://www.filehippo.com/download_google_chrome/history/ [24]: http://www.filehippo.com/download_google_chrome/history/ [25]: http://www.7-zip.org/ [26]: https://apple.stackexchange.com/questions/11441/can-i-run-two-versions-of-safari-side-by-side [27]: http://caniuse.com/usage_table.php [28]: http://www.oldapps.com/apple_safari.php [29]: http://www.oldapps.com/apple_safari.php?old_safari=21?download [30]: http://www.microsoft.com/download/en/details.aspx?id=18359 [31]: http://msdn.microsoft.com/en-us/library/ie/dd565628%28v=vs.85%29.aspx [32]: http://msdn.microsoft.com/en-us/library/gg589512%28v=vs.85%29.aspx [33]: http://getfirebug.com/ [34]: https://addons.mozilla.org/en-US/firefox/addon/firebug/ [35]: https://developer.mozilla.org/en/Using_the_Web_Console [36]: https://addons.mozilla.org/en-US/firefox/addon/console%C2%B2/ [37]: http://www.opera.com/dragonfly/documentation/ [38]: https://developers.google.com/chrome-developer-tools/ [39]: https://developers.google.com/chrome-developer-tools/ [40]: http://developer.apple.com/library/safari/documentation/appleapplications/Conceptual/Safari_Developer_Guide/2SafariDeveloperTools/SafariDeveloperTools.html [41]: http://i.stack.imgur.com/ep1jq.png "VirtualBox dialog: Turn off VM and restore snapshot" [42]: http://nodejs.org/

Solution 3 - Internet Explorer

Just to pitch in, Microsoft recently started providing a free service called modern.IE:

> modern.IE is an undertaking my Microsoft to make cross-browser > testing for the Internet Explorer browsers easier. Microsoft has > created modern.IE to provide developers and designers with a suite of > tools to facilitate IE browser testing. > > With modern.IE you have two methods of testing your website in IE. > First, modern.IE offers you three months free usage of the web-based > browser testing service BrowserStack. You just need a Facebook account > to login and start testing. > > The second method modern.IE offers is a virtualization image of each > browser from IE 6 to IE 10, which can be run on virtualization > software like VirtualBox, Virtual PC, Hyper-V or VMWare Player on > Windows, Mac or Linux. > > Additionally, modern.IE also provides a tool which scans your web page > for common coding problems and lists them out for you to correct so > that they display correctly in all IE versions.

Source: modern.IE - Cross-Browser IE Testing Tools Suite

Note: The linked article has been removed. The links now go to a Wayback Machine archive of the page.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRob WView Question on Stackoverflow
Solution 1 - Internet ExplorerRob WView Answer on Stackoverflow
Solution 2 - Internet ExplorerRob WView Answer on Stackoverflow
Solution 3 - Internet ExplorerHirveshView Answer on Stackoverflow