Revision 3782,
806 bytes
checked in by luiz-fernando, 14 years ago
(diff) |
Ticket #1402 - Mudança no nome dos pacotes das classes
|
Line | |
---|
1 | package org.expressolivre.cte.pages.common; |
---|
2 | |
---|
3 | import org.openqa.selenium.By; |
---|
4 | import org.openqa.selenium.WebDriver; |
---|
5 | import org.openqa.selenium.WebElement; |
---|
6 | import org.openqa.selenium.support.FindBy; |
---|
7 | |
---|
8 | /** |
---|
9 | * @author L.F.Estivalet (Serpro) |
---|
10 | * |
---|
11 | * Created on Dec 16, 2010 at 9:43:15 AM |
---|
12 | * |
---|
13 | */ |
---|
14 | public class HomePage extends Page { |
---|
15 | @FindBy(xpath = "//a/img[@id='expressoMail12id']") |
---|
16 | private WebElement mail; |
---|
17 | |
---|
18 | @FindBy(id = "calendarid") |
---|
19 | private WebElement calendar; |
---|
20 | |
---|
21 | /** |
---|
22 | * @param driver |
---|
23 | */ |
---|
24 | public HomePage(WebDriver driver) { |
---|
25 | super(driver); |
---|
26 | } |
---|
27 | |
---|
28 | public void enterMail() { |
---|
29 | mail.click(); |
---|
30 | waitForElement(By |
---|
31 | .xpath("//table[@id='folders_tbl']/tbody/tr[1]/td/table/tbody/tr[2]/td/div/span")); |
---|
32 | } |
---|
33 | |
---|
34 | public void enterCalendar() { |
---|
35 | calendar.click(); |
---|
36 | waitForElement(By.id("divAppbox")); |
---|
37 | } |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.