using (var browser = new Coypu.BrowserSession(sc))
Is there some dependency that's not been setup? I have assumed that the NuGet package manager has provided required dependencies. Coypu, WebDriver and WebDriver.Support were all successfully added as references to the project.using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Coypu;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
var sc = new SessionConfiguration
{
AppHost = "microsoft.com",
};
sc.Driver = typeof(Coypu.Drivers.Selenium.SeleniumWebDriver);
sc.Browser = Coypu.Drivers.Browser.Firefox;
using (var browser = new Coypu.BrowserSession(sc))
{
browser.Visit(@"http://www.microsoft.com/en-au/default.aspx");
}
}
}
}
Test Name: HighLandPark.UnitChecks.CheckStartPage.StartPageIsUp
Test FullName: HighLandPark.UnitChecks.CheckStartPage.StartPageIsUp
Test Source: c:\svnwork\HighlandPark\HighLandPark.UnitChecks\CheckStartPage.cs : line 15
Test Outcome: Failed
Test Duration: 0:00:15.044
Result Message:
OpenQA.Selenium.WebDriverException : Unexpected error. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid Hostname</h2>
<hr><p>HTTP Error 400. The request hostname is invalid.</p>
</BODY></HTML>
Result StackTrace:
at Coypu.ActivatorDriverFactory.NewWebDriver(Type driverType, Browser browser)
at Coypu.BrowserSession..ctor(SessionConfiguration sessionConfiguration, DriverFactory driverFactory, TimingStrategy timingStrategy, Waiter waiter, UrlBuilder urlBuilder, DisambiguationStrategy disambiguationStrategy, RestrictedResourceDownloader restrictedResourceDownloader)
at Coypu.BrowserSession..ctor(SessionConfiguration sessionConfiguration)
at HighLandPark.UnitChecks.CheckStartPage.StartPageIsUp() in c:\svnwork\HighlandPark\HighLandPark.UnitChecks\CheckStartPage.cs:line 23
'vstest.executionengine.exe' (Managed (v4.0.30319)): Loaded 'D:\...\trunk\source\CoypuTests\CoypuTests\bin\Debug\WebDriver.dll'
The thread '<No Name>' (0x1c20) has exited with code 0 (0x0).
The thread '<No Name>' (0x1f38) has exited with code 0 (0x0).
The thread '<No Name>' (0x1880) has exited with code 0 (0x0).
The program '[276] vstest.executionengine.exe: Managed (v4.0.30319)' has exited with code -1 (0xffffffff).
any suggestions would be greatly appreciated.
At the risk of a "me too" post, I found Coypu, watched the video, got excited, then spent an hour trying to get the damn unit tests to run. Just got stuck half way through trying to initiate the browser session like all these.We are Win8.1, Vs2013 U5
In the end, I dropped back to straight selenium, but really liked the idea of Coypu, but just can't get it to work. :-(
On Thursday, 19 February 2015 00:08:02 UTC, Kurt Le Breton wrote:This seems like a simple issue, however I'm new to both Coypu and WebDriver! Some assistance would be much appreciated.
I've recently installed Microsoft Visual Studio Community 2013, running on Windows 8.1.
I used NuGet package manager to install Coypu successfully to my testing project.
What I'm finding when trying to run a very simple test is that the code hangs when trying to instantiate a new BrowserSession.Is there some dependency that's not been setup? I have assumed that the NuGet package manager has provided required dependencies. Coypu, WebDriver and WebDriver.Support were all successfully added as references to the project.
using (var browser = new Coypu.BrowserSession(sc))
The full sample code I'm running is as follows:
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Coypu;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
var sc = new SessionConfiguration
{
AppHost = "microsoft.com",
};
sc.Driver = typeof(Coypu.Drivers.Selenium.SeleniumWebDriver);
sc.Browser = Coypu.Drivers.Browser.Firefox;
using (var browser = new Coypu.BrowserSession(sc))
{
browser.Visit(@"http://www.microsoft.com/en-au/default.aspx");
}
}
}
}
--
You received this message because you are subscribed to the Google Groups "Coypu" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coypu+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Fri, Oct 23, 2015 at 9:09 AM, Dave Heywood <da...@pointbypoint.co.uk> wrote:At the risk of a "me too" post, I found Coypu, watched the video, got excited, then spent an hour trying to get the damn unit tests to run. Just got stuck half way through trying to initiate the browser session like all these.We are Win8.1, Vs2013 U5Can you try updating the webdriver locally from your Coypu test project please. So after> install-package coypu:do> update-package Selenium.Support