I'm trying to open 2 different tabs in the same browser session from 2 different application.
I'm using Firefox v57.0, Geckodriver v0.19.1, Selenium v3.8.0.0
The 2 apps are playing in the same time.
I'm just trying to open a new tab from app 2 X seconds after App 1 open the first tab.
App 1:
FirefoxDriverService service = FirefoxDriverService.CreateDefaultService();
service.Port = 4444;
FirefoxOptions ffoptions = new FirefoxOptions();
ffoptions.SetLoggingPreference(LogType.Browser.ToString(), LogLevel.All);
ffoptions.SetPreference("marionette", true);
ffoptions.LogLevel = FirefoxDriverLogLevel.Trace;
FirefoxDriver driver = new FirefoxDriver(service, ffoptions, TimeSpan.FromSeconds(30));
driver.Navigate().GoToUrl("https://www.bing.com/");
App 2:
DesiredCapabilities capabilities = DesiredCapabilities.Firefox();
RemoteWebDriver driverReUse = new RemoteWebDriver(new Uri("http://127.0.0.1:4444/"), capabilities);
driverReUse.Navigate().GoToUrl("https://www.google.com/");
The exception:
"Session is already started"
Isn't it possible to do that? Should I try to connect from App 2 to localhost with 4444?