package com.sample;

import java.net.MalformedURLException;
import java.net.URL;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.testng.annotations.Test;

public class SearchTest {
	
	@Test	
	public void ShowResult() {
	
		System.out.println("This is the sample test");
		
		WebDriver driver;
		try {
			driver = driver = new RemoteWebDriver(new URL("http://127.0.0.1:4444/wd/hub"), DesiredCapabilities.firefox());
			driver.get("http://www.subcontract.com");
			
			driver.quit();
			
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 
				
				//new FirefoxDriver();
		
		
		//driver = new RemoteWebDriver(new URL("http://127.0.0.1:4444/wd/hub"), DesiredCapabilities.firefox());
			
	}
}

@@ -446,16 +446,18 @@
 iver;%0A%09%09
+/*
 try %7B%0A%09%09
@@ -469,17 +469,8 @@
 er =
- driver =
  new
@@ -733,16 +733,18 @@
 e();%0A%09%09%7D
+*/
  %0A%09%09%09%09%0A%09
@@ -744,20 +744,25 @@
 %0A%09%09%09%09%0A%09%09
-%09%09//
+driver = 
 new Fire
@@ -776,16 +776,77 @@
 er();%0A%09%09
+driver.get(%22http://www.subcontract.com%22);%0A%09%09%0A%09%09driver.quit();
 %0A%09%09%0A%09%09//

check with chrome