Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

[SafariDriver] Unable to connect multiple safari instance with SafariDriver in .Net version #7042

@lukeis

Description

@lukeis

Originally reported on Google Code with ID 7042

When open multiple safari with the following code in .Net, I can see only 1 safari window
successfully executed the navigation function. Actually it opens multiple safari window,
but all other window hang there. 
The following code works well with Chrome Driver. 

            Parallel.For(0, 5, i =>
            {
                SafariOptions options = new SafariOptions();
                options.SkipExtensionInstallation = true;
                IWebDriver driver = new SafariDriver(options);
                //IWebDriver driver = new ChromeDriver();
                driver.Navigate().GoToUrl("http://google.com");
                driver.Dispose();
            });

Error returns as follows:
Unhandled Exception: System.AggregateException: One or more errors occurred. ---> OpenQA.Selenium.WebDriverException:
Di
d not receive a connection from the Safari extension. Please verify that it is properly
installed and is the proper vers
ion.
   at OpenQA.Selenium.Safari.SafariDriverCommandExecutor.Start() in C:\Users\deyu\selenium\dotnet\src\webdriver\Safari\S
afariDriverCommandExecutor.cs:line 78
   at OpenQA.Selenium.Safari.SafariDriver.StartClient() in C:\Users\deyu\selenium\dotnet\src\webdriver\Safari\SafariDriv
er.cs:line 123
   at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor,
ICapabilities desiredCapabilities)
in C:\Users\deyu\selenium\dotnet\src\webdriver\Remote\RemoteWebDriver.cs:line 89
   at OpenQA.Selenium.Safari.SafariDriver..ctor(SafariOptions options) in C:\Users\deyu\selenium\dotnet\src\webdriver\Sa
fari\SafariDriver.cs:line 80



Selenium version: 2.38
OS: Windows8
Browser: Safari
Browser version:5.1



Reported by jiajimin on 2014-02-27 21:12:16

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions