ideally we use Open Browser, Open Available Browser which opens a new Browser. in my requirement I want to use a browser which is already been launched and the browser will be Firefox.
Normally in other RPA tools we have option like attach but in Robocorp we have this option only with Chrome and not for others.
Thanks for the prompt reply. I did use your code as it is but getting below error - I am not sure if something needs to be modified.
Exception has occurred.
Suspended due to logged failure: TimeoutException: Message: No connection could be made because the target machine actively refused it. (os error 10061)
Make sure that when you use @Teppo 's suggestion that when you start Firefox with command line option that it is first instance of Firefox started. At least Chrome options do not have any effect unless given for the first instance of the Chrome.
What was the command line you used to start the firefox?
Where is your geckodriver (or geckodriver.exe) located?
Do you have e.g. a firewall running in your computer that may block the connection?