@@ -54,7 +54,7 @@ public void prepare() throws Exception {
5454 SelfRegisteringRemote remote =
5555 GridTestHelper .getRemoteWithoutCapabilities (hub , GridRole .NODE );
5656
57- remote .addBrowser (DesiredCapabilities .chrome (), 3 );
57+ remote .addBrowser (DesiredCapabilities .htmlUnit (), 3 );
5858 remote .setRemoteServer (new SeleniumServer (remote .getConfiguration ()));
5959 remote .startRemoteServer ();
6060 remote .sendRegistrationRequest ();
@@ -66,7 +66,7 @@ public void prepare() throws Exception {
6666 @ Ignore ("Times out" )
6767 public void testLoadIsDistributedEvenly () throws MalformedURLException {
6868 for (int i =0 ; i < 8 ; i ++) {
69- drivers .add (GridTestHelper .getRemoteWebDriver (DesiredCapabilities .chrome (), hub ));
69+ drivers .add (GridTestHelper .getRemoteWebDriver (DesiredCapabilities .htmlUnit (), hub ));
7070 }
7171
7272 ProxySet ps = hub .getRegistry ().getAllProxies ();
@@ -82,7 +82,7 @@ public void testLoadIsDistributedEvenly() throws MalformedURLException {
8282 }
8383
8484 for (int i =0 ; i < 8 ; i ++) {
85- drivers .add (GridTestHelper .getRemoteWebDriver (DesiredCapabilities .chrome (), hub ));
85+ drivers .add (GridTestHelper .getRemoteWebDriver (DesiredCapabilities .htmlUnit (), hub ));
8686 }
8787
8888 for (RemoteProxy p : ps ) {
@@ -95,7 +95,7 @@ public void testLoadIsDistributedEvenly() throws MalformedURLException {
9595 Assert .assertEquals ("checking proxy free slots, all should have two sessions running" , freeslots , 1 );
9696 }
9797
98- drivers .add (GridTestHelper .getRemoteWebDriver (DesiredCapabilities .chrome (), hub ));
98+ drivers .add (GridTestHelper .getRemoteWebDriver (DesiredCapabilities .htmlUnit (), hub ));
9999
100100 Boolean foundOneFull = false ;
101101 for (RemoteProxy p : ps ) {
@@ -121,7 +121,7 @@ public void testLeastRecentlyUsedNodesPickedFirst() throws Throwable {
121121 ProxySet ps = hub .getRegistry ().getAllProxies ();
122122
123123 for (int i =0 ; i < 4 ; i ++) {
124- drivers .add (GridTestHelper .getRemoteWebDriver (DesiredCapabilities .chrome (), hub ));
124+ drivers .add (GridTestHelper .getRemoteWebDriver (DesiredCapabilities .htmlUnit (), hub ));
125125 }
126126
127127 Set <String > chosenNodes = new HashSet <>();
@@ -138,7 +138,7 @@ public void testLeastRecentlyUsedNodesPickedFirst() throws Throwable {
138138 stopDrivers (drivers );
139139
140140 for (int i =0 ; i < 4 ; i ++) {
141- drivers .add (GridTestHelper .getRemoteWebDriver (DesiredCapabilities .chrome (), hub ));
141+ drivers .add (GridTestHelper .getRemoteWebDriver (DesiredCapabilities .htmlUnit (), hub ));
142142 }
143143
144144 for (RemoteProxy p : ps ) {
@@ -165,7 +165,7 @@ public void testLeastRecentlyUsedNodesPickedFirst() throws Throwable {
165165 stopDrivers (drivers );
166166
167167 for (int i =0 ; i < 4 ; i ++) {
168- drivers .add (GridTestHelper .getRemoteWebDriver (DesiredCapabilities .chrome (), hub ));
168+ drivers .add (GridTestHelper .getRemoteWebDriver (DesiredCapabilities .htmlUnit (), hub ));
169169 }
170170
171171 for (RemoteProxy p : ps ) {
0 commit comments