I am creating a new test project and cannot come up with anything to try to solve my problem. I have another Selenium project that works as expected, and compared them to find the differences. But firstly, the main problem I am facing. In setup, I call Driver.Navigate (). GoToUrl ("www.test.com"); No exception is thrown or anything else that indicates a problem, the stream simply proceeds to the next statement, but Url is not entered into the navigation bar, and therefore it is obvious that the driver never goes to any page. The driver starts a new instance of firefox, but it remains empty.
When I compare this new project with an existing project, they seem identical for the most part. Both projects have ... \ packages \ Selenium.WebDriver.2.37.0 and ... \ packages \ Selenium.Support.2.37.0 installed using the NuGet package manager. Both projects have identical project links in the .csproj file --Working project ... .... \ packages \ Selenium.WebDriver.2.37.0 \ Lib \ net40 \ WebDriver.dll False .... \ packages \ Selenium. Support.2.37.0 \ Lib \ net40 \ WebDriver.Support.dll
- Non-working project ... .. \ packages \ Selenium.WebDriver.2.37.0 \ Lib \ net40 \ WebDriver.dll .. \ packages \ Selenium.Support.2.37.0 \ Lib \ net40 \ WebDriver.Support.dll
No project does anything. Constructor for both calls: var WebDriver = new FirefoxDriver ();
When I look at the WebDriver object, the only difference I see is the WindowsHandles property. Working draft: WindowsHandles Count = 1
Broken project: WindowsHandles {System.Collections.ObjectModel.ReadOnlyCollection}
I have no idea why they are different, but since this is the only difference that I can find, I think it is possible that the problem is, but I have no idea whether this is true or how I can fix it. I added a try / catch block around WebDriver.Navigate (). GoToUrl (), and no exception gets caught.
Both projects target the .NET 4.0 platform. Any help is greatly awarded.
c # firefox selenium visual-studio-2012 webdriver
Darian everett
source share