Revision 3663,
673 bytes
checked in by luiz-fernando, 13 years ago
(diff) |
Ticket #1402 - Nova versão dos casos de testes, agora implementados com WebDriver? (Selenium 2.0)
|
Line | |
---|
1 | package br.gov.serpro.expresso.cte.pages.email; |
---|
2 | |
---|
3 | import org.openqa.selenium.WebDriver; |
---|
4 | import org.openqa.selenium.WebElement; |
---|
5 | import org.openqa.selenium.support.FindBy; |
---|
6 | |
---|
7 | import br.gov.serpro.expresso.cte.pages.common.Page; |
---|
8 | |
---|
9 | /** |
---|
10 | * @author L.F.Estivalet (Serpro) |
---|
11 | * |
---|
12 | * Created on Dec 16, 2010 at 9:43:15 AM |
---|
13 | * |
---|
14 | */ |
---|
15 | public class HomePage extends Page { |
---|
16 | @FindBy(xpath = "//a/img[@id='expressoMail12id']") |
---|
17 | private WebElement mail; |
---|
18 | |
---|
19 | /** |
---|
20 | * @param driver |
---|
21 | */ |
---|
22 | public HomePage(WebDriver driver) { |
---|
23 | super(driver); |
---|
24 | } |
---|
25 | |
---|
26 | public void enterMail() { |
---|
27 | mail.click(); |
---|
28 | waitForElementByXpath("//table[@id='folders_tbl']/tbody/tr[1]/td/table/tbody/tr[2]/td/div/span"); |
---|
29 | } |
---|
30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.