Troubleshoot Common Issues While Executing the ScriptsExecuting Selenium Scripts Parallelly with Limited Permissions on Windows Machine

Executing Selenium Scripts Parallelly with Limited Permissions on Windows Machine

Resolve issues with opening multiple Chrome browsers during parallel script execution on Windows machines with limited permissions by configuring a dedicated Chrome binary path.

Setting Up Chrome Binary Path for Parallel Script Execution

This solution is applicable to any banking application using the Java Selenium framework to generate scripts.

Issue: If you face issues with opening multiple Chrome browsers using scripts during parallel execution, follow the resolution below.

Resolution: To address this, configure and use a specific Chrome binary for parallel execution by following these steps:

Download the Chrome binary

Download the Chrome binary from the Stable version page.

Specify the Chrome binary path in your generated script folder

After downloading the Chrome binary, specify its path in your downloaded script generated folder. Navigate to the WebBrowser.java file located in the generated script folder, for example src/test/java/common/.

Add the Chrome binary path in the file

Add the path to the downloaded Chrome binary in the appropriate locations within the file. The exact path may vary depending on your operating system and where you saved the Chrome binary. Refer to the following sample screenshots for guidance:

Code showing options.setBinary(D://Chrome2/Chrome-win64/chrome.exe) line highlighted
Setting the Chrome binary path in WebBrowser.java
Java code snippet with ChromeOptions setup and remote debugging port line highlighted in red box
ChromeOptions setup with remote debugging port configuration

Execute scripts in parallel

Execute scripts in parallel by opening multiple command prompts. For more information on parallel execution, refer to Executing scripts in parallel.