-
Notifications
You must be signed in to change notification settings - Fork 1
Deployment
-
To publish the Chrome driver to an environment, i.e. test, production etc.
You will need to add the PublishChromeDriver tag i.e.
<PublishChromeDriver>true</PublishChromeDriver>
in .csproj file as shown below:
<PropertyGroup>
<PublishChromeDriver>true</PublishChromeDriver>
</PropertyGroup>
This will publish the chrome driver when publishing the project.
-
You will also need to install the Google Chrome version that is the same as the version of the chrome driver in the application to the deployment server. If a different version is installed you will need to uninstall the version on the server using the Control Panel.
To install the latest version go to https://www.google.com/intl/en_ie/chrome/ To download a specific version go to https://chromium.cypress.io/ and find the latest stable version corresponding to the major version of the browser. This will download the zip file for the browser version.
On the server to be installed create the directory C:\Program Files\Google\Chrome\Application, if it doesn't exist already. If it exists already and there are files and directories in the directory make a backup copy and then remove them. If anything goes wrong with the installation you can always revert back to the previous version by using the backup. Open the zip file and copy the contents of the chrome-win directory to C:\Program Files\Google\Chrome\Application.
To test double click on chrome in the C:\Program Files\Google\Chrome\Application directory. This should open Google Chrome. On the top right of the page right click on the ellipsis icon and click on the About Chromium menu item. This will display the Google Chrome version which should correspond to the chrome driver version in the application.