View Javadoc

1   package br.com.caelum.seleniumdsl;
2   
3   import br.com.caelum.seleniumdsl.table.Table;
4   
5   public interface Page {
6   
7   	public Form form(String id);
8   
9   	public ContentTag div(String id);
10  
11  	public ContentTag span(String id);
12  
13  	public Table table(String id);
14  
15  	/**
16  	 * Clicks an element and waits for the browser to load the page
17  	 * 
18  	 * @param element
19  	 *            the elements's id or name or an Selenium expression
20  	 * @return the Page
21  	 */
22  	public Page navigate(String element);
23  
24  	/**
25  	 * Clicks something
26  	 * 
27  	 * @param element
28  	 *            the element's id or name or a Selenium expression
29  	 * @return the Page
30  	 */
31  	public Page click(String element);
32  
33  	public boolean hasLink(String link);
34  
35  	public boolean isFilled(String textBoxId, String value);
36  
37  	public Page check(String checkbox);
38  
39  	public String title();
40  
41  }