# Error with the Keyword "New Browser"

**URL:** <https://forum.robotframework.org/t/error-with-the-keyword-new-browser/3657>\
**Category:** Browser\
**Created:** [21 April 2022 13:19 UTC](https://forum.robotframework.org/t/error-with-the-keyword-new-browser/3657 "2022-04-21T13:19:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephane](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@Stephane](https://forum.robotframework.org/u/Stephane)\
**Post date:** [21 April 2022 13:19 UTC](https://forum.robotframework.org/t/error-with-the-keyword-new-browser/3657/1 "2022-04-21T13:19:20Z")

</div>

Hi,

I wonder what’s wrong on my environment now. I guess I broke something because it worked recently After an installation command on pip for another thing, my RF script is no more cooperative.

My OS is Windows 10.

I have an error when I use  
`New Browser chromium, headless=False, args=['--incognito','--auth-server-whitelist="_"','--ignore-certificate-errors']`

The error is :  
‘str’ object has no attribute ‘name’

If more informations are needed tell me what you want to know (I dunno what could help about it).

Thank you for your attention.

---

<div class="post-metadata">

**Author:** ![Stephane](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@Stephane](https://forum.robotframework.org/u/Stephane)\
**Post date:** [21 April 2022 13:29 UTC](https://forum.robotframework.org/t/error-with-the-keyword-new-browser/3657/2 "2022-04-21T13:29:49Z")

</div>

Just a precision a simpliest call of “New Browser”  
New Browser browser=chromium

get the same error.

---

<div class="post-metadata">

**Author:** ![aaltat](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/aaltat/32/15_2.png) [@aaltat](https://forum.robotframework.org/u/aaltat)\
**Post date:** [21 April 2022 14:45 UTC](https://forum.robotframework.org/t/error-with-the-keyword-new-browser/3657/3 "2022-04-21T14:45:35Z")

</div>

Interesting, would you be able to run test with `--loglevel trace` set from command line and show us the full stack trace?

---

<div class="post-metadata">

**Author:** ![Stephane](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@Stephane](https://forum.robotframework.org/u/Stephane)\
**Post date:** [21 April 2022 14:57 UTC](https://forum.robotframework.org/t/error-with-the-keyword-new-browser/3657/4 "2022-04-21T14:57:14Z")

</div>

The trace is :…  
Traceback (most recent call last):  
File “C:\users\rickcanard.pyenv\pyenv-win\versions\3.8.0\lib\site-packages\Browser\playwright.py”, line 149, in grpc\_channel  
yield playwright\_pb2\_grpc.PlaywrightStub(self.\_channel)  
File “C:\users\rickcanard.pyenv\pyenv-win\versions\3.8.0\lib\site-packages\Browser\keywords\playwright\_state.py”, line 390, in new\_browser  
Request().Browser(browser=browser.name, rawOptions=options)  
AttributeError: ‘str’ object has no attribute ‘name’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “C:\users\rickcanard.pyenv\pyenv-win\versions\3.8.0\lib\site-packages\Browser\browser.py”, line 956, in run\_keyword  
raise e  
File “C:\users\rickcanard.pyenv\pyenv-win\versions\3.8.0\lib\site-packages\Browser\browser.py”, line 946, in run\_keyword  
return DynamicCore.run\_keyword(self, name, args, kwargs)  
File “C:\users\rickcanard.pyenv\pyenv-win\versions\3.8.0\lib\site-packages\robotlibcore\__init_\_.py”, line 102, in run\_keyword  
return self.keywords[name](\*args, \*\*(kwargs or {}))  
File “C:\users\rickcanard.pyenv\pyenv-win\versions\3.8.0\lib\site-packages\Browser\keywords\playwright\_state.py”, line 393, in new\_browser  
return response.body  
File “C:\users\rickcanard.pyenv\pyenv-win\versions\3.8.0\lib\contextlib.py”, line 131, in **exit**  
self.gen.throw(type, value, traceback)  
File “C:\users\rickcanard.pyenv\pyenv-win\versions\3.8.0\lib\site-packages\Browser\playwright.py”, line 156, in grpc\_channel  
raise AssertionError(str(error))  
AssertionError: ‘str’ object has no attribute ‘name’

---

<div class="post-metadata">

**Author:** ![Noradavis](https://avatars.discourse-cdn.com/v4/letter/n/85f322/32.png) [@Noradavis](https://forum.robotframework.org/u/Noradavis)\
**Post date:** [23 April 2022 10:40 UTC](https://forum.robotframework.org/t/error-with-the-keyword-new-browser/3657/5 "2022-04-23T10:40:58Z")

</div>

The Open Browser keyword opens a new browser , a new context and a new page. This _keyword_ is useful for quick experim [space bar clicker](https://www.clickercounter.org/spacebar-clicker) The Open Browser keyword opens a _new browser_ , a new context and a new page. This keyword\* is useful for quick experiments or debugging …ents or debugging … Trying to automate this application in Katalon. Whenever the automation script is run for login to applic… Katalon Studio automatically prompts a new …

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [23 April 2022 23:32 UTC](https://forum.robotframework.org/t/error-with-the-keyword-new-browser/3657/6 "2022-04-23T23:32:13Z")

</div>

Hi @Noradavis,

Your message does not make any sense in the context of this topic?

Are you trying to ask a question? if so please create a new topic.

Are you trying to answer @Stephane’s question? It seems all you’ve done is paste the content of the help which is clearly not relevant to this problem.

FYI Katalon Studio is not supported by the Robot framework community, if you are looking for help with Katalon Studio I suggest you try their forums, which based on my past experience are quite good and very friendly.

Dave.

---

<div class="post-metadata">

**Author:** ![Stephane](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@Stephane](https://forum.robotframework.org/u/Stephane)\
**Post date:** [27 April 2022 12:27 UTC](https://forum.robotframework.org/t/error-with-the-keyword-new-browser/3657/7 "2022-04-27T12:27:26Z")

</div>

I found a solution and a potential explanation about my problem. I just saw that an other version of Python on my pyenv works. I guess I broke severely a dependance on the initial Python environment I used. An accidental installation back to 4.xx Robot Framework is the suspect (I upgrade to 5.0 just after but it was too late). Then if I reinstall completely Python and the libraries I need it works again. My bad … as usual 😕
