Changeset 4890 for devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/pages/calendar/AppointmentPage.java
- Timestamp:
- 08/02/11 10:01:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/pages/calendar/AppointmentPage.java
r4864 r4890 1 1 package org.expressolivre.cte.pages.calendar; 2 2 3 import java.util.List; 4 3 5 import org.expressolivre.cte.pages.common.Page; 6 import org.openqa.selenium.By; 4 7 import org.openqa.selenium.WebDriver; 5 8 import org.openqa.selenium.WebElement; … … 88 91 private WebElement recurEndDate; 89 92 90 /** Domingo, Segunda, Terça, .... */91 @FindBy(name = "cal[rpt_day][]")92 private WebElement rptDay;93 94 93 @FindBy(name = "cal[recur_interval]") 95 94 private WebElement recurInterval; … … 257 256 } 258 257 258 public void setRptUseEnd(String finalDate) { 259 this.rptUseEnd.click(); 260 this.recurEndDate.clear(); 261 this.recurEndDate.sendKeys(finalDate); 262 } 263 264 /** 265 * Valores para os dias da semana: 266 * 267 * <pre> 268 * 1 - Domingo 269 * 2 - Segunda 270 * 4 - Terça 271 * 8 - Quarta 272 * 16 - Quinta 273 * 32 - Sexta 274 * 64 - Sabado 275 * </pre> 276 * 277 * @param values 278 */ 279 public void setRecurDays(List<String> values) { 280 List<WebElement> elements = driver.findElements(By 281 .name("cal[rpt_day][]")); 282 283 for (WebElement e : elements) { 284 if (values.contains(e.getValue())) { 285 e.click(); 286 } 287 } 288 } 289 259 290 public void saveAppointment() { 260 291 this.save.click();
Note: See TracChangeset
for help on using the changeset viewer.