Skip to content

Instantly share code, notes, and snippets.

@tourdedave
Last active September 16, 2019 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tourdedave/bf7c784b116bf68180c1f04e2ec51b2c to your computer and use it in GitHub Desktop.
Save tourdedave/bf7c784b116bf68180c1f04e2ec51b2c to your computer and use it in GitHub Desktop.

Building IEDriver

https://github.com/SeleniumHQ/selenium#requirements

Here are some additional details re: requirements for building IEDriver:

  • Visual Studio (e.g., 2019)
  • MSVC v141 - VS 2017 C++ x64/x86 build tools
  • C++ ATL for v141 build tools (x86 & x64)
  • Windows SDK (e.g., Windows 8.1)

After installing Visual Studio you can select additional packages by clicking "Tools", and then "Get Tools and Features". From here you can select either "Individual components" and choose the specific packages to install, or, you can pick a grouping of packages from the "Workloads" tab (e.g., Desktop development with C++). But this won't necessary get you all of the packages you need (e.g., the right package but the wrong version for it).

You should then be able to either build the project from Visual Studio, or with go ie from the command-line. See go -T for a list of available tasks.

NOTE: Running the tests was hit-or-miss (e.g., go test_ie). They ran, but with unexpected failures across the board. Need to look into why.

NOTE: If building on a Windows VM, don't build from shared drive between the host and guest OS. It will lead to memory corruption and system crashes. Do a git clone of the repo to the disk on the guest OS and build from there. It will be more reliable, and faster.

subtext:

end result:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment