Line | |
---|
1 | package br.gov.serpro.expresso.cte.pages.common; |
---|
2 | |
---|
3 | import org.openqa.selenium.WebDriver; |
---|
4 | import org.openqa.selenium.WebElement; |
---|
5 | import org.openqa.selenium.support.FindBy; |
---|
6 | |
---|
7 | /** |
---|
8 | * @author L.F.Estivalet (Serpro) |
---|
9 | * |
---|
10 | * Created on Dec 16, 2010 at 9:43:15 AM |
---|
11 | * |
---|
12 | */ |
---|
13 | public class HomePage extends Page { |
---|
14 | @FindBy(xpath = "//a/img[@id='expressoMail12id']") |
---|
15 | private WebElement mail; |
---|
16 | |
---|
17 | @FindBy(id = "calendarid") |
---|
18 | private WebElement calendar; |
---|
19 | |
---|
20 | /** |
---|
21 | * @param driver |
---|
22 | */ |
---|
23 | public HomePage(WebDriver driver) { |
---|
24 | super(driver); |
---|
25 | } |
---|
26 | |
---|
27 | public void enterMail() { |
---|
28 | mail.click(); |
---|
29 | waitForElementByXpath("//table[@id='folders_tbl']/tbody/tr[1]/td/table/tbody/tr[2]/td/div/span"); |
---|
30 | } |
---|
31 | |
---|
32 | public void enterCalendar() { |
---|
33 | calendar.click(); |
---|
34 | waitForElementById("divAppbox"); |
---|
35 | } |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.