# Opening User Logged In Chrome Using RPA.Browser

**URL:** https://forum.robotframework.org/t/opening-user-logged-in-chrome-using-rpa-browser/7901
**Category:** Browser
**Created:** [8 October 2024 19:28 UTC](https://forum.robotframework.org/t/opening-user-logged-in-chrome-using-rpa-browser/7901 "2024-10-08T19:28:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![uzair](https://avatars.discourse-cdn.com/v4/letter/u/f475e1/32.png) [@uzair](https://forum.robotframework.org/u/uzair)
#### Post date: [8 October 2024 19:28 UTC](https://forum.robotframework.org/t/opening-user-logged-in-chrome-using-rpa-browser/7901/1 "2024-10-08T19:28:45Z")

</div>

I’ve been using the Robot Framework with the RPA.Browser Library for some time, but I often encounter issues when trying to open Chrome with the user logged in. I have two custom keywords for this:

**Open User Browser with Attaching**  
Run taskkill /IM chrome.exe /F  
Run start chrome.exe --remote-debugging-port=9289  
Attach Chrome Browser port=9289

**Open User Browser with OAB**  
Run TASKKILL /IM chrome.exe /F  
Open Available Browser about:blank Edge alias=BrowserA

Interestingly, both keywords occasionally work perfectly. Sometimes only one functions, and other times both successfully open the Chrome browser, but with inconsistent behavior when executing JavaScript commands like `Execute Javascript window.open('')`.

I’m confused about the behavior differences between the two methods. Additionally, even though my second keyword (`Open User Browser with OAB`) references Edge explicitly, it somehow works for opening Chrome—provided I write the command exactly as shown. If I don’t, it defaults to Edge (which is also my default browser).

Can somebody clear it all up for me or am I doing something wrong here. Thanks!
