Ignore:
Timestamp:
07/27/11 11:23:57 (13 years ago)
Author:
luiz-fernando
Message:

Ticket #1771 - Adicionado testes automatizados para modulo da agenda

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/pages/calendar/CalendarPage.java

    r3782 r4864  
    77import org.openqa.selenium.WebElement; 
    88import org.openqa.selenium.support.FindBy; 
    9  
     9import org.openqa.selenium.support.PageFactory; 
    1010 
    1111/** 
     
    2626        } 
    2727 
    28         public void openTodayView() { 
     28        public CalendarTodayViewPage openTodayView() { 
    2929                super.clickElement(By 
    3030                                .xpath("//table[@id='calendar_head_table']/tbody/tr/td[2]/a/img")); 
     31                return PageFactory.initElements(driver, CalendarTodayViewPage.class); 
    3132        } 
    3233 
    3334        public void openAppointmentPage(String date) { 
    34                 System.out.println(Constants.URL 
    35                                 + "/index.php?menuaction=calendar.uicalendar.add&date=" + date); 
    3635                driver.get(Constants.URL 
    3736                                + "/index.php?menuaction=calendar.uicalendar.add&date=" + date); 
    3837        } 
     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        } 
    3944} 
Note: See TracChangeset for help on using the changeset viewer.