'C# with Selenium xunit testing Bypass SSL Error "Your connection is not private" [duplicate]
I am using xunit test framework with C# to automate testing of a web app. But when I run the tests the automatically opened browser can not proceed to the website because of ssl error and is displaying "Your connection is not private" message and the test fails due to this. DesiredCapabilities class, which was a solution to the problem is deprecated. What is the solution?
Solution 1:[1]
I got the answer from the question posted here
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.AddArguments("--headless", "--disable-gpu", "--window-size=1920,1200","--ignore-certificate-errors");
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Yoftahie Suleiman |
