title: TestNG Selenium Grid 2 not running tests in parallel
body: <p>I seem to be having an issue when attempting to run tests in parallel using TestNG alongside Selenium Grid 2.</p>
  
  <p>Although the right number of browsers are opened to match the amount of tests that I'm running , all instructions for all tests are being fired to the same browser window. For example, each test will open a page and attempt to log in. Four browser windows will open, but one browser window will navigate to the login page four times and then type the username in 4 times, whilst the rest of the browser windows remain inactive.</p>
  
  <p>Here's how I'm starting grid:</p>
  
  <pre><code>java -jar selenium-server-standalone-28.0.jar -role hub
  java -jar selenium-server-standalone-28.0.jar -webdriver.chrome.driver="*location*/chromedriver_mac" -role node 
  </code></pre>
  
  <p>This is how the suite xml is set up:</p>
  
  <pre><code>&lt;suite name="testng" verbose="1" parallel="classes"&gt;
      &lt;test name="chrome"&gt;
          &lt;packages&gt;
              &lt;package name="login"/&gt;
              &lt;package name="lists"/&gt;
          &lt;/packages&gt;
      &lt;/test&gt;
  &lt;/suite&gt;
  </code></pre>
  
  <p>And here's an example of how the tests are laid out:</p>
  
  <pre><code>public class login_logout extends TestBase {
      @Test
      public void login(){
          //initiates login page object and call super user login
          LoginPage login = LoginPage.navigateTo(driver, base_url)
          LoggedInPage loggedIn = login.superuserlogin();
          }
      }
  </code></pre>
  
  <p>Test Base is laid out as follows:</p>
  
  <pre><code>public class TestBase {
      public static WebDriver driver;
      public static DesiredCapabilitiess capabilities;
      @BeforeClass
      public static void setUp(){
          base_url = "*login page url*;
          capabilities = DesiredCapabilities.chrome();
          driver = new RemoteWebDriver(capabilities);
          driver.get(base_url);
      }
  }
  </code></pre>
  
  <p>It's probably something really obvious that I'm missing but any help would be appreciated.</p>
  
  <p>Thanks in advance.</p>