@@ -0,0 +1,1859 @@
+package Software_Testing_UTU;%0A%0Aimport org.openqa.selenium.By;%0Aimport org.openqa.selenium.WebDriver;%0Aimport org.openqa.selenium.WebElement;%0A%0Apublic class Home extends OpenBrowser %7B%0A%09%0A%09private static WebElement element = null;%0A%09%0A%09public WebElement departure( WebDriver driver)%7B%0A%09%09%0A%09%09//locate the element %0A%09%09element = driver.findElement(By.name(%22departureStopAreaName%22));%0A%09%09return element;%0A%09%7D%0A%09%0A%09public WebElement destination(WebDriver driver)%7B %0A%09%09%0A%09%09//locate the destination element%0A%09%09%0A%09%09element = driver.findElement(By.name(%22arrivalStopAreaName%22));%0A%09%09%0A%09%09return element;%0A%09%09%0A%09%09%0A%09%7D%0A%09public WebElement hae(WebDriver driver)%7B%0A%09%09%0A%09%09element = driver.findElement(By.xpath(%22//form%5B@name='aikatauluhaku'%5D//table/tbody/tr/td/input%5B@name='search'%5D%22));%0A%09%09return element;%09%0A%09%09%0A%09%7D%0A%09%0A%09public WebElement iconCalendar(WebDriver driver)%7B%0A%09%09%0A%09%09element = driver.findElement(By.id(%22iconCalendar%22));%0A%09%09return element;%0A%09%7D%0A%09public WebElement day(WebDriver driver)%7B%0A%09%09%0A%09%09//TO CHANGE THE DAY%0A%09%09element = driver.findElement(By.id(%22departureDay%22));%0A%09%09return element;%0A%09%7D%0A%09%0A%09public  WebElement month(WebDriver driver)%7B%0A%09%09%0A%09%09//LOCATE THE MONTH%0A%09%09%0A%09%09element = driver.findElement(By.id(%22departureMonth%22));%0A%09%09%0A%09%09return element;%0A%09%7D%0A%09%0A%09public WebElement year(WebDriver driver)%7B%0A%09%09%0A%09%09//LOCATE THE YEAR%0A%09%09element = driver.findElement(By.id(%22departureYear%22));%0A%09%09return element;%0A%09%7D%0A%09%0A%09public WebElement calendar(WebDriver driver)%7B%0A%09%09%0A%09%09//LOCATE THE YEAR%0A%09%09//(%22//form//table/tbody/tr/td%5B4%5D/a/img%22)%0A%09%09////form%5B@name='aikatauluhaku'%5D//table/tbody/tr/td/a/img%5B@width=16 and @height=16%5D%22%0A%09%09element = driver.findElement(By.xpath(%22//form%5B@name='aikatauluhaku'%5D//table/tbody/tr//td/a/img%22));%0A%09%09return element;%0A%09%7D%0A%09%0A%09%0A%09%0A%09/**%0A%09//CLOSE THE BROWSER%0A%09public static void tear_drwn_firefox(WebDriver driver)%7B%0A%09%09%0A%09%09//CLOSE THE BROWSER%0A%09%09driver.close();%0A%09%09%0A%09%09//KILL THE BROWSER INSTANCE%0A%09%09//driver.quit();%0A%09%09%09%09%0A%09%7D*/%0A%0A%7D%0A

Create Home.java