Revision 4895,
975 bytes
checked in by luiz-fernando, 13 years ago
(diff) |
Ticket #1771 - Adicionado testes automatizados para modulo da agenda
|
Line | |
---|
1 | package org.expressolivre.cte.pages.calendar; |
---|
2 | |
---|
3 | import org.expressolivre.cte.pages.common.Page; |
---|
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 Aug 2, 2011 at 3:22:59 PM |
---|
12 | * |
---|
13 | */ |
---|
14 | public class AppointmentSearchResultPage extends Page { |
---|
15 | |
---|
16 | /** Texto contendo numero de resultados encontrados. */ |
---|
17 | @FindBy(xpath = "/html/body[1]/div[@id='divSubContainer']/table/tbody/tr/td[@id='tdAppbox']/div[@id='divAppbox']/table[@id='tableDivAppbox']/tbody/tr/td/table[@id='calendar_search_table']/tbody/tr[1]/td/b") |
---|
18 | private WebElement resultsNumber; |
---|
19 | |
---|
20 | /** |
---|
21 | * @param driver |
---|
22 | */ |
---|
23 | public AppointmentSearchResultPage(WebDriver driver) { |
---|
24 | super(driver); |
---|
25 | // TODO Auto-generated constructor stub |
---|
26 | } |
---|
27 | |
---|
28 | /** |
---|
29 | * @return Texto informando o numero de resultados encontrados. |
---|
30 | */ |
---|
31 | public String getResultsNumber() { |
---|
32 | return this.resultsNumber.getText(); |
---|
33 | } |
---|
34 | |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.