Selenium Grid 2

229 views
Skip to first unread message

circa.1741

unread,
Mar 26, 2013, 5:33:55 PM3/26/13
to co...@googlegroups.com
May I ask if Coypu works with Selenium Grid 2?  Thanks.

Adrian Longley

unread,
Mar 26, 2013, 6:45:40 PM3/26/13
to co...@googlegroups.com
There's nothing in Coypu specifically for Selenium Grid but you can simply define your own Coypu driver that derives from Coypu.Drivers.Selenium.SeleniumWebDriver and passes an instance of RemoteWebDriver to the base constructor.

There are instructions on how to create the right type of RemoteWebDriver here:

http://code.google.com/p/selenium/wiki/Grid2

And there is an example of how you can define your own Coypu driver at the very end of this file:

https://github.com/featurist/coypu/blob/master/src/Coypu.AcceptanceTests/ApiExamples.cs

You should be able to put these together easily enough.

Let us know how you get on, perhaps a gist of the working Driver code we could link to from the Coypu readme?

Adrian



On 26 Mar 2013, at 21:33, "circa.1741" <circa...@gmail.com> wrote:

May I ask if Coypu works with Selenium Grid 2?  Thanks.

--
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.
 
 

circa.1741

unread,
Mar 26, 2013, 6:52:31 PM3/26/13
to co...@googlegroups.com
Ok, will read up and give it a shot.

I found this thread:  https://groups.google.com/forum/?fromgroups=#!topic/coypu/BbCGSwe2V1c

Do you know if Adam was trying the Grid 2 on that thread?

Thanks a lot!

Adrian Longley

unread,
Mar 26, 2013, 7:32:19 PM3/26/13
to co...@googlegroups.com
On 26 Mar 2013, at 22:52, circa.1741 wrote:

Ok, will read up and give it a shot.

I found this thread:  https://groups.google.com/forum/?fromgroups=#!topic/coypu/BbCGSwe2V1c

Do you know if Adam was trying the Grid 2 on that thread?

It looks that way to me, yes

circa.1741

unread,
Mar 30, 2013, 12:46:18 AM3/30/13
to co...@googlegroups.com
Almost...

I am able to read my custom driver ("GridWebDriver") from a .config file:
      var sessionConfiguration = new SessionConfiguration
      {
        Driver = Type.GetType("Test.Scripts.Base." + CommonGlobals.Driver),
      };

I am also able to read the AppHost ("localhost") and Port ("4444") from the same .config file:
  public class GridWebDriver : SeleniumWebDriver
  {
    public GridWebDriver(Coypu.Drivers.Browser browser)
      : base(new RemoteWebDriver(new Uri(@"http://" + CommonGlobals.AppHost + ":" + CommonGlobals.Port + "/wd/hub"), DesiredCapabilities.Firefox()), browser)
    {
    }
  }

But I am unable to figure out how to make this part configurable:
DesiredCapabilities.Firefox()

Any suggestions?  Thanks.



On Tuesday, March 26, 2013 5:45:40 PM UTC-5, Adiel wrote:
Reply all
Reply to author
Forward
0 new messages