Comments (5)
Can you try to add the following line to your global setup method before the AtataContext configuration:
ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;
If it works for you, I will think about the cleaner solution to add to Atata.WebDriverSetup library.
from atata-webdriversetup.
Unfortunately no this didn't work:
What's weird is that this worked in version 1.x perfectly fine. I was using Atata.WebDriverSetup 1.2.0 and also Atata 1.12.0 where it worked.
Edit: I also experimented with adding the ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;
line in a static constructor method, so it get's called before even SetupFixture
was instantiated, but still no luck.
from atata-webdriversetup.
I believe that it happens because of CheckCertificateRevocationList
property of HttpClientHandler
, which became enabled by default in Atata.WebDriverSetup v2.0.0. Let's try to disable it, which is now possible with the latest v2.6.0 release. So please update the Atata.WebDriverSetup package to the latest version. Then you can try one of the code blocks, again in global setup method before the AtataContext
configuration.
DriverSetup.GlobalConfiguration
.WithCheckCertificateRevocationList(false);
or
DriverSetup.GlobalConfiguration
.WithCheckCertificateRevocationList(false)
.WithHttpClientHandlerConfiguration(x => x.ServerCertificateCustomValidationCallback += (_, _, _, _) => true);
And you can remove ServicePointManager.ServerCertificateValidationCallback += ...
code.
from atata-webdriversetup.
Thank you - I can confirm that:
DriverSetup.GlobalConfiguration .WithHttpClientHandlerConfiguration(x => x.ServerCertificateCustomValidationCallback += (_, _, _, _) => true);
resolves the issue for me. DriverSetup.GlobalConfiguration.WithCheckCertificateRevocationList(false);
had no effect.
from atata-webdriversetup.
You are welcome. Thanks for letting know which method solved the issue.
from atata-webdriversetup.
Related Issues (11)
- Thread synchronization bug when setting up multiple drivers simultaneously
- Detect which browsers are installed on the system and instantiate the corresponding WebDriver HOT 6
- Webdriver can't be downloaded for new chrome ver. 115 and higher. HOT 7
- AtataContextBuilder.AutoSetUpDriverToUse() throws exception when used with the new Chrome version 121.0.6167.185 HOT 4
- Edge web driver creation fails with "End of Central Directory record could not be found." HOT 16
- Add configuration to specify x32/x64 architecture
- Default driver setup configurations
- Add async SetUp* methods
- Add `Atata.Cli` package reference
- Add functionality of installed Chrome version detection for Linux and macOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atata-webdriversetup.