@@ -0,0 +1,2138 @@
+package com.seleniumtests.webpage;%0A%0Aimport com.seleniumtests.controller.Assertion;%0Aimport com.seleniumtests.driver.web.element.Link;%0Aimport com.seleniumtests.driver.web.element.SelectList;%0Aimport com.seleniumtests.driver.web.element.WebPage;%0Aimport org.openqa.selenium.By;%0A%0A/**%0A * User: tbhadauria%0A * Date: 10/2/13%0A * Time: 6:26 PM%0A */%0Apublic class AdminHomePage extends WebPage %7B%0A%0A    private static SelectList documentationDropDown = new SelectList(%22Documentation drop down%22, By.name(%22docs%22));%0A%0A    public AdminHomePage() throws Exception%7B%0A        super(); // No check on page identification%0A    %7D%0A%0A    private Link testProjectManagementLink = new Link(%22Test Project Management Link%22, By.linkText(%22Test Project Management%22));%0A    private SelectList testProjectDropdown = new SelectList(%22Test Project Dropdown%22, By.name(%22testproject%22));%0A%0A    public AdminHomePage selectGivenTestProject(int index) %7B%0A        getDriver().switchTo().frame(getDriver().findElement(By.id(%22testlink%22))); // switch to test link frame%0A        getDriver().switchTo().frame(getDriver().findElement(By.name(%22titlebar%22))); // switch to title bar frame%0A        testProjectDropdown.selectByIndex(index);%0A        getDriver().switchTo().defaultContent();%0A        return this;%0A    %7D%0A%0A    public AdminHomePage verifyDocumentationDropDown() %7B%0A        getDriver().switchTo().frame(getDriver().findElement(By.id(%22testlink%22)));%0A        getDriver().switchTo().frame(getDriver().findElement(By.name(%22mainframe%22)));%0A        Assertion.assertTrue(documentationDropDown.isDisplayed(), %22Documentation drop down is missing%22);%0A        getDriver().switchTo().defaultContent();%0A        return this;%0A    %7D%0A%0A    /**%0A     * this is a false test and would always fail%0A     */%0A    public AdminHomePage verifyDocumentationDropDownFail() %7B%0A        getDriver().switchTo().frame(getDriver().findElement(By.id(%22testlink%22)));%0A        getDriver().switchTo().frame(getDriver().findElement(By.name(%22mainframe%22)));%0A        Assertion.assertTrue(!documentationDropDown.isDisplayed(), %22Documentation drop down is missing%22);%0A        getDriver().switchTo().defaultContent();%0A        return this;%0A    %7D%0A%0A%0A%0A%7D%0A

switch to testlink frame