package com.seleniumtests.webpage;

import com.seleniumtests.webelements.PageObject;
import com.seleniumtests.webelements.TextFieldElement;

import org.openqa.selenium.By;


/**
 * Created by tarun on 3/22/16.
 */
public class GoogleHomePage extends PageObject {

    private static final TextFieldElement searchTextBox = new TextFieldElement(
            "search Text Box", By.name("q"));


    public GoogleHomePage() throws Exception {
        super(searchTextBox);
    }
}

package com.seleniumtests.webpage;

import com.seleniumtests.webelements.PageObject;
import com.seleniumtests.webelements.TextFieldElement;

import org.openqa.selenium.By;


/**
 * Created by tarun on 3/22/16.
 */
public class GoogleHomePage extends PageObject {

    private static final TextFieldElement searchTextBox = new TextFieldElement(
            "search Text Box", By.name("q"));


    public GoogleHomePage() throws Exception {
        super(searchTextBox);
    }

    public boolean isSearchBoxDisplayed() {
        return searchTextBox.isDisplayed();
    }
}

add API to check presence of google search box