This blog explains one of the issues faced by Test Automation team when executing the UI test scripts using Chrome web driver. Lets have a look at, what is the process Test Automation team followed and the issue encountered. Importantly let's see how it can be resolved.
In the UI test scripts developed with Spec flow, Selenium and C#, the purpose is to run automated UI test using a CD pipeline. Team has setup a Azure DevOps agent to run in interactive mode and installed the chrome web browser in the agent VM. Once, pipelines are executing the UI test automation using the test agent it has reported the following error.
System.AggregateException : One or more errors occurred. (unknown error: cannot find Chrome binary) (unknown error: cannot find Chrome binary)
---- OpenQA.Selenium.WebDriverException : unknown error: cannot find Chrome binary
---- OpenQA.Selenium.WebDriverException : unknown error: cannot find Chrome binary