Ignore:
Timestamp:
08/02/11 10:01:56 (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/AppointmentViewPage.java

    r4864 r4890  
    3030        @FindBy(xpath = "//table[@id='calendar_viewevent_button_right']/tbody/tr/td/nobr/form/div/input[@id='']") 
    3131        private WebElement removeButton; 
     32 
     33        @FindBy(xpath = "//table[@id='calendar_viewevent_button_right']/tbody/tr/td[2]/nobr/form/div/input[@id='']") 
     34        private WebElement removeSeriesButton; 
    3235 
    3336        @FindBy(xpath = "//table[@id='calendar_view_event']/tbody/tr[1]/td[2]") 
     
    6871        public void removeAppointment() { 
    6972                this.removeButton.click(); 
     73                Alert alert = driver.switchTo().alert(); 
     74                Assert.assertEquals( 
     75                                alert.getText(), 
     76                                "Tem certeza que deseja remover esta entrada?\nIsto irá remover esta entrada para todos usuários."); 
     77                alert.accept(); 
     78        } 
     79 
     80        public void removeSeriesAppointment() { 
     81                this.removeSeriesButton.click(); 
    7082                Alert alert = driver.switchTo().alert(); 
    7183                Assert.assertEquals( 
Note: See TracChangeset for help on using the changeset viewer.