Issue Summary:
Chrome browser execution issue due to driver incompatibility/browser not launching during execution due to incompatibility of driver
Issue Description:
Chrome getting launched but no activity is being performed and further, the browser gets closed
Solution:
The below guidelines should be checked to perform test case execution on the Chrome browser if facing an issue related to the driver.
To run your test executions in Opkey, keep your Execution Agent online. For executions to run uninterrupted, ensure the Chrome Driver is updated on your agent and the system.
Follow the steps below to update your execution agent with the latest Chrome Driver.
Install the latest Chrome Driver for Windows from Here.
This has to be done manually every-time whenever there is an update in the new chrome driver version.
Copy the link for the version you want to download. Select Windows as per your requirement. Here we are updating for Windows.
Note: Mac users execute their test cases via Spock Agent. Hence not required for Mac.
Paste the link in the new tab. The driver gets downloaded.
Click the Extract button and extract the downloaded file.
Extract the file at the desired location.
Double click on the downloaded file to check its version. Ensure that it matches with the version of your Chrome browser. Once your have matched the browser version, copy the downloaded file.
Now press Window + R key on your keyboard or search %Temp% in the Search bar of your screen to open the temp folder on your device.
![](https://s3-ap-south-1.amazonaws.com/ind-cdn.freshdesk.com/data/helpdesk/attachments/production/88067125843/original/msmOhpQ7beOT4JDLsmb2qQf0zZxI2H4CCQ.png?1722339725)
Next, open the Local folder from the top.
![](https://s3-ap-south-1.amazonaws.com/ind-cdn.freshdesk.com/data/helpdesk/attachments/production/88063587062/original/icrhFmLpk3qP2vkYOXsVTp--AGMI1fk2kQ.png?1719561160)
Next, go to Drivers folder following the path given below.
Local\CresTech\OpKey\AgentData\Drivers.
Paste the downloaded Chrome Driver in this folder.
Go to Drivers in Agent Data of your C drive. For example, the path
C:\Users\FAREHA~1.NOU\AppData\Local\CresTech\OpKey\AgentData\Drivers and paste the file.
We have added the downloaded Chrome Driver here.
You can view the driver version by clicking the exe file.
Following the above steps will make sure you have an updated Chrome driver to execute your test cases smoothly.
You can also add the latest driver to the Opkey Execution agent as well, but it is not mandatory once it has been added to the C drive.
Let's see how it can be done.
Go to your Opkey Execution Agent and click on the Plugin Settings under the Tools menu.
Go to the Web Version and scroll down to look for the Chrome Driver path.
Click on the Value tab space and upload the latest downloaded Chrome Driver. Make sure the downloaded file is in .exe format.
Click on the Save All button.
The updates get saved and a message is displayed.
You should follow this process, and keep these drivers updated whenever a new Chrome driver version gets released.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article