@@ -0,0 +1,2304 @@
+//author: bhordupur%0A//Date : September %0A//Turku University%0A%0A%0Apackage cucumber.features;%0A%0Aimport org.openqa.selenium.By;%0Aimport org.openqa.selenium.WebDriver;%0Aimport org.openqa.selenium.firefox.FirefoxDriver;%0Aimport org.openqa.selenium.support.ui.WebDriverWait;%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@Test%0Apublic class StepsForTimetableSearch %7B%0A%09%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@Given(%22%5Ethe timetable is visible$%22)%0A%09public void the_timetable_is_visible() throws Throwable %7B%0A%09    // Write code here that turns the phrase above into concrete actions%0A%09%7D%0A%0A%09@When(%22%5Euser write turku as departure$%22)%0A%09public void user_write_turku_as_departure() throws Throwable %7B%0A%09    // Write code here that turns the phrase above into concrete actions%0A%09%09driver.findElement(By.name(%22departureStopAreaName%22)).sendKeys(%22Turku%22);%0A%0A%09%7D%0A%0A%09@When(%22%5Ehelsinki as destination$%22)%0A%09public void helsinki_as_destination() throws Throwable %7B%0A%09    // Write code here that turns the phrase above into concrete actions%0A%09%09%0A%09%09driver.manage().timeouts().implicitlyWait(10, Units.Seconds)%0A%09%09driver.findElement(By.name(%22arrivalStopAreaName%22)).sendKeys(%22Helsinki%22);%0A%0A%09%7D%0A%0A%09@When(%22%5Echooses the departure date$%22)%0A%09public void chooses_the_departure_date() throws Throwable %7B%0A%09%0A%09%09driver.findElement(By.name(%22departureDay%22)).clear();%0A%09%09driver.findElement(By.name(%22departureDay%22)).sendKeys(%2226%22);%0A%09%09driver.findElement(By.name(%22departureMonth%22)).clear();%0A%09%09driver.findElement(By.name(%22departureMonth%22)).sendKeys(%2211%22);%0A%09%09driver.findElement(By.name(%22departureYear%22)).clear();%0A%09%09driver.findElement(By.name(%22departureYear%22)).sendKeys(%222014%22);%0A%09%7D%0A%0A%09@When(%22%5E%5C%22(.*?)%5C%22 button is pushed$%22)%0A%09public void button_is_pushed(String arg1) throws Throwable %7B%0A%09    // Write code here that turns the phrase above into concrete actions%0A%09%09driver.findElement(By.name(%22search%22)).click();%0A%0A%09%7D%0A%0A%09@Then(%22%5Etimetable from turku to helsinki on a chosen date is shown$%22)%0A%09public void timetable_from_turku_to_helsinki_on_a_chosen_date_is_shown() throws Throwable %7B%0A%09    // Write code here that turns the phrase above into concrete actions%0A%0A%09%7D%0A%0A%7D%0A

Create StepsForTimetableSearch.java