package php4dvd.pages;

import static org.openqa.selenium.support.ui.ExpectedConditions.presenceOfElementLocated;

import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.Select;

public class SearchManager extends InternalPage {

	public SearchManager(PageManager pages) {
		super(pages);
	}

  @FindBy(name = "q")
  private WebElement searchField;

    
  public InternalPage setSeach(String text) {
    searchField.sendKeys(text);
    return this;
  }

  public InternalPage clickSearch(String text) {
	searchField.sendKeys(Keys.RETURN);
	return this;
  }
  
}
