/**
 * Created with IntelliJ IDEA.
 * User: jhasmanyquiroz
 * Date: 11/11/15
 * Time: 11:59 AM
 * To change this template use File | Settings | File Templates.
 */
package ui.pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.CacheLookup;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.ExpectedConditions;
import ui.BasePageObject;

public class HomePage extends BasePageObject {
    @FindBy(linkText = "Institutions")
    @CacheLookup
    private WebElement linkText;

    @FindBy(xpath = "(//input[@value=''])[2]")
    private  WebElement searchCatalog;

    @FindBy(css = "i.cif-search.c-search-icon")
    private WebElement searchIcon;

    public HomePage(){
        PageFactory.initElements(driver, this);
        waitUntilPageObjectIsLoaded();
    }

    public boolean isPartnersDisplayed() {
        return (linkText.getText().equalsIgnoreCase("Institutions"))? true : false;
    }

    public HomePage setSearchCourseInput (String searchCourse) {
        searchCatalog.clear();
        searchCatalog.sendKeys(searchCourse);
        return this;
    }

    public CoursesPage clickSearchButton() {
        searchIcon.click();
        return new CoursesPage();
    }

    public void waitUntilPageObjectIsLoaded() {
        wait.until(ExpectedConditions.visibilityOf(searchIcon));
    }
}
@@ -747,16 +747,359 @@
 hIcon;%0A%0A
+    @FindBy(xpath = %22//a%5Bcontains(@data-popup-bind-open, 'click')%5D%22)%0A    private  WebElement authenticatedDropdownBtn;%0A%0A    @FindBy(xpath = %22//button%5Bcontains(@class, 'bt3-btn-link')%5D%22)%0A    private  WebElement signOutBtn;%0A%0A    @FindBy(xpath = %22//div%5Bcontains(@class, 'dashboard-has-enrollment')%5D%22)%0A    private WebElement dashboardEnrollment;%0A%0A
     publ
@@ -1617,32 +1617,280 @@
 sPage();%0A    %7D%0A%0A
+    public HomePage clickAuthenticatedDropdownButton() %7B%0A        authenticatedDropdownBtn.click();%0A        return new HomePage();%0A    %7D%0A%0A    public LoginPage clickSignOutButton() %7B%0A        signOutBtn.click();%0A        return new LoginPage();%0A    %7D%0A%0A
     public void 
@@ -1972,26 +1972,35 @@
 ilityOf(
-searchIcon
+dashboardEnrollment
 ));%0A    

Add web elements for sign out