"//ol[@id='rso']/div[2]/div[1]/div/h3/a]"
this xpath will keep on changing and maybe thats why its not working.
what is the text you want to get from Google.
It's the google example which u gave on friday.
Steps:
1.Go to google.com web page.
2.type "Hello".
3.Search.
4.get text of the first link on the page.
WebDriver driver = FirefoxDriver();
driver.get("www.google.com");
List<WebElement> elements = driver.findElements(By.tagName("a"));