title: Executing RSpec test in parallel using webdriver and Grid2
body: <ul>
  <li>GUI Automation Tool: Webdriver</li>
  <li>Parallel execution : Selenium Grid 2</li>
  <li>Scripting language : Ruby </li>
  <li>BDD Tool : Rspec</li>
  </ul>
  
  <p><strong>My Test Looks like:</strong></p>
  
  <pre><code>def set_up
    @driver = Selenium::WebDriver.for(:remote,:url =&gt; "http://localhost:4444",
      :desired_capabilities =&gt; :firefox)
  end
  
  def clean_up
    @driver.quit
  end
  
  it "test_direct_log_in" do
    @log_in_page = Page.new(@driver).go_to_log_in_Page
    @log_in_page.login("apple@gmail.com","password")
    Assert.new(@driver).verify_text_present("My Dashboard")
  end
  
  it "test_direct_log_in" do
    @log_in_page = Page.new(@driver).go_to_log_in_Page
    @log_in_page.login("banana@gmail.com","password")
    Assert.new(@driver).verify_text_present("My Dashboard")
  end
  </code></pre>
  
  <p>Steps :</p>
  
  <ul>
  <li>Launch hub using java -jar selenium-server-staalone-2.3.0.jar -role hub</li>
  <li>Assigned node to the hub using java -jar selenium-server-standalone-2.21.0.jar -role node -hub <a href="http://localhost:4444/grid/register" rel="nofollow">http://localhost:4444/grid/register</a> -maxsession=20 -port 5555 </li>
  </ul>
  
  <p>I am able to execute test sequentially.. 
  The real issue is I am not able to execute test in parallel...  </p>
  
  <p>Any help will be appreciated.</p>