Selenium Grid c# - Running Multiple Browsers in Node Machine -


i'm automating test cases in c# using selenium grid, have hub windows machine , node mac. wanted run multiple browsers on node machine, firefox, chrome, safari.

my hub command line

java -jar selenium-server-standalone-2.48.2.jar -role hub 

my node command line

enjava -jar selenium-server-standalone-2.48.2.jar -dwebdriver.chrome.driver="chromedriver.exe" -role node -hub http://ip:4444/grid/register -port 4507 -browser browsername=chrome mainstances=5, maxsessoin=5 -browser browsername=firefox maxinstances=5, maxsessoin=5 -browser browsername=safari maxinstances=5, maxsessoin=5 

my c# snippet

    public static remotewebdriver instance { get; set; }     public static void initialize()     {         desiredcapabilities capabilities = new desiredcapabilities();         capabilities = desiredcapabilities.firefox();         capabilities = desiredcapabilities.chrome();         capabilities = desiredcapabilities.safari();         capabilities.setcapability(capabilitytype.browsername, "firefox");         capabilities.setcapability(capabilitytype.browsername, "chrome");         capabilities.setcapability(capabilitytype.browsername, "safari");         capabilities.setcapability(capabilitytype.platform, new platform(platformtype.mac));         instance = new remotewebdriver(new uri("http://ip:4507/wd/hub"), capabilities);      } 


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -