florentbr / SeleniumBasic

A Selenium based browser automation framework for VB.Net, VBA and VBScript
BSD 3-Clause "New" or "Revised" License
421 stars 197 forks source link

Access Denied You don't have permission to access #246

Closed mikep1998 closed 2 years ago

mikep1998 commented 2 years ago

I have been using SeleniumBasic and successfully accessing this website and scraping the data. But after using it a month it stopped working with

You don't have permission to access "http://online.bankofthewest.com/BOW/Login.aspx" on this server.
Reference #18.3d7a4217.1647730167.dda5eb9
"```
I'm using the chromedriver ver 99
Running this in an Excel macro.
I can still login with chrome and everything works so the site is not blocking my login.
But when I use seleniumbasic to login I get this error. If I go into debug mode and after the seleniumbasic has created the chrome browser and I try to manually login I get the same error.
I have uninstalled seleniumbasic, chromedriver and then reinstalled but the error persists. 
I have also clear the cache, cookies. Set the chrome settingssecurity to "No protection (not recommended)" 

This is the code snippet I'm using
```    With chrome
        .SetProfile "C:\Users\mikep\AppData\Local\Google\Chrome\User Data\Default\Default"

        .Timeouts.ImplicitWait = 5000 ' 5 seconds
        .start
        .Window.SetSize 1616, 868
        .Window.SetPosition 1580, 1

        .Get "https://online.bankofthewest.com/BOW/Login.aspx"
        '#contentarea > p > a
        If .IsElementPresent(by.Css("#contentarea > p > a")) Then
            .FindElementByCss("#contentarea > p > a").Click
        End If
        .FindElementById("ctlSignon_UserIdTextBox", 5000).SendKeys ("userid")
        .FindElementById("ctlSignon_PasswordTextBox", 5000).SendKeys ("password")
        .FindElementById("ctlSignon_LogOnButton", 5000).Click

I have also tried changing the profile location without any success.

Again this code worked for about a month the started failing. Also I have used Seleniumbasic to login to 6 different website to get data. Which all worked for about a month but now none of the websites work. They all fail with some sort of permission errors. Any Ideas?

Thanks