Changeset 4864 for devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/pages/calendar/CalendarPage.java
- Timestamp:
- 07/27/11 11:23:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/pages/calendar/CalendarPage.java
r3782 r4864 7 7 import org.openqa.selenium.WebElement; 8 8 import org.openqa.selenium.support.FindBy; 9 9 import org.openqa.selenium.support.PageFactory; 10 10 11 11 /** … … 26 26 } 27 27 28 public voidopenTodayView() {28 public CalendarTodayViewPage openTodayView() { 29 29 super.clickElement(By 30 30 .xpath("//table[@id='calendar_head_table']/tbody/tr/td[2]/a/img")); 31 return PageFactory.initElements(driver, CalendarTodayViewPage.class); 31 32 } 32 33 33 34 public void openAppointmentPage(String date) { 34 System.out.println(Constants.URL35 + "/index.php?menuaction=calendar.uicalendar.add&date=" + date);36 35 driver.get(Constants.URL 37 36 + "/index.php?menuaction=calendar.uicalendar.add&date=" + date); 38 37 } 38 39 public AppointmentViewPage openAppointmentViewPage(String id) { 40 driver.get(Constants.URL 41 + "/index.php?menuaction=calendar.uicalendar.view&cal_id=" + id); 42 return PageFactory.initElements(driver, AppointmentViewPage.class); 43 } 39 44 }
Note: See TracChangeset
for help on using the changeset viewer.