# Access denied error when script is executed. Browser is not opening

**URL:** https://forum.robotframework.org/t/access-denied-error-when-script-is-executed-browser-is-not-opening/5959
**Category:** SeleniumLibrary
**Created:** [18 July 2023 19:03 UTC](https://forum.robotframework.org/t/access-denied-error-when-script-is-executed-browser-is-not-opening/5959 "2023-07-18T19:03:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![GayathriYashas](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@GayathriYashas](https://forum.robotframework.org/u/GayathriYashas)
#### Post date: [18 July 2023 19:03 UTC](https://forum.robotframework.org/t/access-denied-error-when-script-is-executed-browser-is-not-opening/5959/1 "2023-07-18T19:03:48Z")

</div>

I am writing this to find a solution for an error I am receiving

I am automating application using Robot framework using Python with Selenium Below is the versions for information

Python 3.11  
Selenium 4.9  
robotframework 6.1  
robotframework-pythonlibcore 4.2.0  
robotframework-seleniumlibrary 6.1.0  
Pycharm IDE

The scripts used to work perfectly until few days ago. Now, I see error regarding authentication saying  
“Access Denied (authentication\_failed)  
Your credentials could not be authenticated: “Credentials are missing.”.  
You will not be permitted access until your credentials can be verified. This is typically caused by an incorrect username and/or password, but could also be caused by network problems. For assistance, contact your network support team.”

When executed, The browser is not opening up. I am writing this to find a solution for an error I am receiving

---

<div class="post-metadata">

### Author: ![GayathriYashas](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@GayathriYashas](https://forum.robotframework.org/u/GayathriYashas)
#### Post date: [18 July 2023 19:06 UTC](https://forum.robotframework.org/t/access-denied-error-when-script-is-executed-browser-is-not-opening/5959/2 "2023-07-18T19:06:34Z")

</div>

sample code

\*\*\* Settings \*\*\*  
Library SeleniumLibrary

\*\*\* Variables \*\*\*

\*\*\* Test Cases \*\*\*  
LoginTest  
Create Webdriver Chrome executable\_path=“C:\Driver\chromedrive.exe”  
Open Browser [https://www.google.com](https://www.google.com) Chrome  
Sleep 15

\*\*\* Keywords \*\*\*

---

<div class="post-metadata">

### Author: ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)
#### Post date: [19 July 2023 08:46 UTC](https://forum.robotframework.org/t/access-denied-error-when-script-is-executed-browser-is-not-opening/5959/3 "2023-07-19T08:46:52Z")

</div>

> [@GayathriYashas](#):
>
> The scripts used to work perfectly until few days ago.

Try to find the root cause. What changed that caused the need for authentication?

I see you are trying Google page. Maybe they enforced authentication for `bots` like access?  
If you try with other search engine like DuckDuckGo, would the same authentication be requested? This may indicate a `proxy`in your network.

In sum, **I don’t think** it is a Robot Framework/SeleniumLibrary problem.

---

<div class="post-metadata">

### Author: ![GayathriYashas](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@GayathriYashas](https://forum.robotframework.org/u/GayathriYashas)
#### Post date: [19 July 2023 14:32 UTC](https://forum.robotframework.org/t/access-denied-error-when-script-is-executed-browser-is-not-opening/5959/4 "2023-07-19T14:32:25Z")

</div>

The scripts started to work fine after removing the HTTP\_PROXY and HTTPS\_PROXY from Environment variables. Thank you and much appreciate for the response.
