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!