Coypu and Sauce Labs

114 views
Skip to first unread message

Andrew Masters

unread,
Jun 16, 2013, 5:12:49 PM6/16/13
to co...@googlegroups.com
Hi,

Still quite new to Coypu.
Has anyone had any success linking Coypu to Sauce Labs, I know I can do this with Selenium Web Driver directly but I'm not sure how to do this in Coypu?


This is the code suggested to get Sauce Labs working with Selenium

 [SetUp]
    public void Init()
    {
      DesiredCapabilities capabillities = DesiredCapabilities.Firefox();
      capabillities.SetCapability(CapabilityType.Version, "10");
      capabillities.SetCapability(CapabilityType.Platform, new Platform(PlatformType.XP));
      capabillities.SetCapability("name", "Testing Selenium 2 with C# on Sauce");
      capabillities.SetCapability("username", "username-string");
      capabillities.SetCapability("accessKey", "access-key-string");
      
      driver = new RemoteWebDriver(
                new Uri("http://ondemand.saucelabs.com:80/wd/hub"), capabillities);
    }

Cheers,
Andy

Adrian Longley

unread,
Jun 16, 2013, 5:58:35 PM6/16/13
to co...@googlegroups.com, co...@googlegroups.com


On 16 Jun 2013, at 22:12, Andrew Masters <adma...@googlemail.com> wrote:

Hi,

Still quite new to Coypu.
Has anyone had any success linking Coypu to Sauce Labs, I know I can do this with Selenium Web Driver directly but I'm not sure how to do this in Coypu?

You just need to tell coypu to use a custom profile for webdriver that you can define as in the example you pasted below.

There are instructions for this on the Coypu readme towards the end under the heading "Using a custom Selenium WebDriver profile"

The readme is on GitHub:

https://github.com/featurist/coypu


This is the code suggested to get Sauce Labs working with Selenium

 [SetUp]
    public void Init()
    {
      DesiredCapabilities capabillities = DesiredCapabilities.Firefox();
      capabillities.SetCapability(CapabilityType.Version, "10");
      capabillities.SetCapability(CapabilityType.Platform, new Platform(PlatformType.XP));
      capabillities.SetCapability("name", "Testing Selenium 2 with C# on Sauce");
      capabillities.SetCapability("username", "username-string");
      capabillities.SetCapability("accessKey", "access-key-string");
      
      driver = new RemoteWebDriver(
                new Uri("http://ondemand.saucelabs.com:80/wd/hub"), capabillities);
    }

Cheers,
Andy

--
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/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages