In general, the protractor scripts are executed in a new browser instance with the following capabilities
capabilities: {
'browserName': 'firefox'
}
Is there any snippets or ways to tweak this; so that our scripts make use of an already opened browser through protractor.
On this line you have an example on how it's passed on the command line to Protractor: https://github.com/angular/protractor/commit/3f3805f9496fb130ae01b3e3278ee1ea7684d8e7#diff-b61b72dbab31e232fdb8466ebf733c4dR54 You can use the same parameter in your config to pass the current session ID. You can usually get the current sessionId by
browser.getSessionIdExample 1:Example 2 using your config: