package com.sample;

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

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
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 {
			System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
			driver = new RemoteWebDriver(new URL("http://127.0.0.1:4444/wd/hub"), DesiredCapabilities.chrome());
			driver.get("http://www.subcontract.com");
			
			driver.quit();
			
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}*/
		
		System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
		driver = new ChromeDriver();  //FirefoxDriver();
		
		
		driver.get("http://www.subcontract.com");
		
		driver.quit();
		
		//driver = new RemoteWebDriver(new URL("http://127.0.0.1:4444/wd/hub"), DesiredCapabilities.firefox());
			
	}
}

@@ -498,10 +498,8 @@
 ;%0A%09%09
-/*
 try 
@@ -617,39 +617,42 @@
 ew URL(%22http://1
-27.0.
+72.16.3
 0.
+6
 1:4444/wd/hub%22),
@@ -861,16 +861,16 @@
 %0A%09%09%7D
-*/
 %0A%09%09%0A%09%09
+/*
 Syst
@@ -1055,24 +1055,26 @@
 ver.quit();%0A
+*/
 %09%09%0A%09%09//drive

mark the local with remote ip