@@ -0,0 +1,1203 @@
+//author : bhordupur%0A//data : September 2014%0A//Turku University%0A%0A%0A%0Apackage cucumber.features;%0A%0A%0Aimport org.openqa.selenium.By;%0Aimport org.openqa.selenium.WebDriver;%0Aimport org.openqa.selenium.WebElement;%0Aimport org.openqa.selenium.firefox.FirefoxDriver;%0Aimport org.testng.Assert;%0Aimport org.testng.annotations.Test;%0A%0Aimport cucumber.api.java.en.Given;%0Aimport cucumber.api.java.en.Then;%0Aimport cucumber.api.java.en.When;%0A%0A@Test%0Apublic class Steps %7B%0A%0A%09protected WebDriver driver = new FirefoxDriver();%0A%09%0A%09@Given(%22%5Ego to matkahuolto%5C%5C.fi site$%22)%0A%09public void setUpBrowser()%7B%0A%09%09driver.get(%22http://matkahuolto.fi%22);%09%09%0A%09%7D%0A%09%0A%09@When(%22%5Eyou are on the home page$%22)%0A%09public void homePage()%7B%0A%09%09try%7B%0A%09%09%09//System.out.println(driver.getCurrentUrl());%0A%09%09%09System.out.println(driver.getCurrentUrl()+%22 : %22+driver.getTitle());%0A%09%09%09%0A%09%09%09String s = driver.getTitle();%0A%09%09%09Assert.assertEquals(s,%22Matkahuolto%22);%0A%09%09%7Dcatch(Exception e)%7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%09%0A%09@Then(%22%5Edisplay the logo$%22)%0A%09public void displayLogo()%7B%0A%09%09driver.get(%22http://matkahuolto.fi%22);%0A%09%09WebElement logo = driver.findElement(By.xpath(%22/html/body/div/div/a/img%22));%0A%09%09logo.isDisplayed();%0A%09%09%0A%09%7D%0A%09%0A%09%0A%09public void closeBrowser()%7B%0A%09%09//driver.close();%0A%09%7D%0A%09%0A%7D%0A

Create Steps.java