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: