# Robot Framework with Python to Run test on already opened chrome browser

**URL:** <https://forum.robotframework.org/t/robot-framework-with-python-to-run-test-on-already-opened-chrome-browser/4360>\
**Category:** Robot Framework\
**Created:** [21 July 2022 06:22 UTC](https://forum.robotframework.org/t/robot-framework-with-python-to-run-test-on-already-opened-chrome-browser/4360 "2022-07-21T06:22:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manojlenin](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@manojlenin](https://forum.robotframework.org/u/manojlenin)\
**Post date:** [21 July 2022 06:22 UTC](https://forum.robotframework.org/t/robot-framework-with-python-to-run-test-on-already-opened-chrome-browser/4360/1 "2022-07-21T06:22:13Z")

</div>

I am trying to run a robot test with python in an already opened Chrome browser. Below is the code snippet where am setting debuggerAddress to chromeOption.

```python
             ${service_args}= Create List --log-path=${CHROMEDRIVER_LOG} --verbose
             ${chromeOptions}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys,selenium.webdriver
             ${chromeCapabilities}= Call Method ${chromeOptions} to_capabilities
             Set To Dictionary ${chromeCapabilities["goog:chromeOptions"]} debuggerAddress 127.0.0.1:53851
             Create WebDriver ${browser} desired_capabilities=${chromeCapabilities} executable_path=${CHROMEDRIVER_PATH} service_args=${service_args}
             go to ${test_url}

```

Chrome browser is been launched in remote-debugger mode from cmd with specific port assigned  
`chrome.exe --remote-debugging-port=92228 --user-data-dir="C:\Test\ChromeFilesLog"`

Despite giving an IP and port , every time i try to run the test, a new chrome browser with different port (not the one given in debuggerAddress) is launched.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/2/22f2163f4f87cb406cd161d05e69174144c3c1cf.png)

Appreciate any help with this issue.

- Chrome version : Version 103.0.5060.114 (Official Build) (64-bit)
- Chrome Webdriver version : 103.0.5060.134
