mercredi 9 septembre 2020

selenium https url test redirects to http: Gives error Access Denied

I am using Selenium to load the website: https://www.bestbuy.com/. Notice that it is a secure url. When running, I am getting an error

You do not have permission to access http://www.bestbuy.com

Seems that the site is redirecting to http then back to https but Selenium is failing at the http step. Any thoughts on what may be happening or settings I can try to get to load properly?

I am using ChromeDriver.

ChromeOptions options = new ChromeOptions();
 options.AddArgument("headless");
            
 _driver = new RemoteWebDriver(uri, options);

_driverConfig.maximizeWindow();
_driverConfig.navigateUrl(url);

Aucun commentaire:

Enregistrer un commentaire