Updating browser drivers on Login Enterprise

Overview

To maintain the smooth operation of browser automation scripts on your virtual appliance, it's crucial to keep the Chrome and Edge drivers updated. Chrome and Edge browsers regularly release updates, and outdated drivers can lead to script failures in applications like the scripting editor and Xray.

This article provides step-by-step instructions on how to update the drivers for Chrome and Edge, ensuring compatibility and reliable performance across your automation environment.

To learn how to perform automatic updates in Login Enterprise, see Updating Selenium Web Automation Drivers.

Determining the current browser version

Before proceeding with driver updates, it's essential to verify the current version of your browser on the target machine. Follow these steps to check:

  1. Open a connection to the target machine (where the Login Enterprise will run or where you are creating your script).
  2. Check the version of your browser using the following links:

Downloading the Edge Driver

  1. Open the Edge Driver download link.
  2. Scroll down to see the latest drivers.
  3. Click the x86 download link next to the version you are running internally.

Downloading the Chrome Driver

  1. Open the ChromeDriver download link.
  2. You will see a folder overview. Locate the version you are using from the list and open that link.
  3. Download the "chromedriver_win32.zip".

mceclip2.png

Importing the Driver

You need to update the following three items with the newly downloaded driver:

Updating Application Scripting editor

1. Unzip the Driver:

  • Unzip the downloaded driver file. You will get either chromedriver.exe or msedgedriver.exe.

2. Create a New Folder:

  • Navigate to the ScriptEditor\Engine\Drivers directory.
  • Create a new folder named Chrome(your.chrome.version) or EdgeChromium(your.edge.version).
  • Example:
    • For Chrome version 91, create Chrome91.
    • For Edge version 91, create EdgeChromium91.

3. Move the Driver:

Copy the unzipped chromedriver.exe or msedgedriver.exe to the newly created folder.

Example folder structure:

ScriptEditor\Engine\Drivers\Chrome91\chromedriver.exe

ScriptEditor\Engine\Drivers\EdgeChromium91\msedgedriver.exe

mceclip3.png

Updating Application Xray

1. Copy the Driver Folder:

  • Go up one directory from the Drivers folder you just created in ScriptEditor\Engine\Drivers.
  • Copy the entire folder you just created (e.g., Chrome91 or EdgeChromium91).

2. Paste into XRay Drivers:

  • Navigate to the ScriptEditor\Xray\Drivers directory.
  • Paste the copied folder into this directory.

Example folder structure:

ScriptEditor\Xray\Drivers\Chrome91\chromedriver.exe

ScriptEditor\Xray\Drivers\EdgeChromium91\msedgedriver.exe

Updating the Login Enterprise appliance

Opening the console session

  1. Open a console session to the Login Enterprise appliance.
  2. Navigate to Troubleshooting > Open Bash Shell.
  3. Execute the following command to allow writing to the folder (use lowercase letters):
chmod 707 /loginvsi/content/selenium

Uploading the driver

1. Connect with WinSCP:

  • Download and install WinSCP.
  • Open WinSCP and set up an SFTP connection to the Login Enterprise appliance.
  • Use the admin password for the connection.

mceclip4.png

2. Upload the Driver:

  • Browse to the ./loginvsi/content/selenium directory.
  • Upload the newly created driver folder (e.g., Chrome91 or EdgeChromium91) to this location.

Example folder structure:

/loginvsi/content/selenium/Chrome91/chromedriver.exe

/loginvsi/content/selenium/EdgeChromium91/msedgedriver.exe

By following these instructions, you should be able to successfully update the Chrome and Edge drivers on your virtual appliance. If you encounter any issues, check the browser and driver documentation for troubleshooting tips or contact our support at support@loginvsi.com.