Building IEDriverServer with VS2012 Pro?

55 views
Skip to first unread message

R Secrist

unread,
Jan 21, 2014, 10:39:42 AM1/21/14
to seleniu...@googlegroups.com
I need to build IEDriverServer using Microsoft Visual Studio 2012 Professional from sources us or I will not be allowed to use it for a project and would appreciate advice on how to get started.  I only need an IEDriverServer.EXE to use as the backend for WATIR scripts running from Ruby to drive IE.

VS2012 Pro doesn't like the current project files from the zips at https://code.google.com/p/selenium/downloads/list and won't build from them, but I am not sure about the options required to rebuild it if I create the project myself.  I tried looking through the IEDriverServer.vcxproj, and was concerned about the need for entries that look like {08C3286F-F132-44EC-80F0-2DF30D87A5D3}; I am not familiar with using these identifiers in the registry.  I am also not sure about the relationship between the files in IEDriverServer and the rest of the project.

Any assistance is appreciated.

Thanks!
rcs

Jim Evans

unread,
Jan 21, 2014, 4:16:37 PM1/21/14
to seleniu...@googlegroups.com
I was just able to build the IE driver components using Visual Studio 2012 without any difficulty. Here's what I did:
  • Open the solution in the root of the git clone (recommended over downloading a zip)
  • Right-click on the solution in the Solution Explorer window and select "Update VC++ projects" and click Update on the confirmation dialog
  • Right-click on the solution again, and select "Configuration Manager..."
  • In the Configuration Manager dialog, select either "Win32" or "x64" in the "Active solution platform" dropdown, and click the Close button (sets the platform for which to build)
  • Right-click on the IEDriverServer project in the Solution Explorer window and click "Build"

Some caveats. First, you must select the appropriate platform. By default, the selected platform won't properly build the dependent projects. Also, don't just try to build the solution; make sure you're only building the IE projects. The Firefox C++ projects are statically linked to .lib files from the Gecko SDK provided by Mozilla, but the .libs were build using Visual Studio 2010, so the Firefox projects won't link under Visual Studio 2012 or 2013.

Please note that building under any version of Visual Studio other than 2010 is strictly unsupported. This may or may not work completely for you.

--Jim

Reply all
Reply to author
Forward
0 new messages