source: devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/pages/calendar/RemoveAppointmentCategoryPage.java @ 4917

Revision 4917, 1.1 KB checked in by luiz-fernando, 13 years ago (diff)

Ticket #1771 - Adicionado testes automatizados para modulo da agenda

Line 
1package org.expressolivre.cte.pages.calendar;
2
3import org.expressolivre.cte.pages.common.Page;
4import org.openqa.selenium.WebDriver;
5import org.openqa.selenium.WebElement;
6import org.openqa.selenium.support.FindBy;
7import org.openqa.selenium.support.PageFactory;
8
9/**
10 * @author L.F.Estivalet (Serpro)
11 *
12 *         Created on Aug 11, 2011 at 10:11:44 AM
13 *
14 */
15public class RemoveAppointmentCategoryPage extends Page {
16
17        /** Botao para confirmar a exclusao de uma categoria. */
18        @FindBy(name = "confirm")
19        private WebElement confirm;
20
21        /** Checkbox para remover as subcategorias. */
22        @FindBy(name = "subs")
23        private WebElement removeSubCategories;
24
25        public RemoveAppointmentCategoryPage(WebDriver driver) {
26                super(driver);
27                // TODO Auto-generated constructor stub
28        }
29
30        /**
31         * Remove a categoria e retorna para pagina de listagem.
32         */
33        public AppointmentCategoryPage removeCategory() {
34                this.confirm.click();
35                return PageFactory.initElements(driver, AppointmentCategoryPage.class);
36
37        }
38
39        /**
40         * Marca que deseja remover as subcategorias junto.
41         */
42        public void setRemoveSubCategories() {
43                this.removeSubCategories.click();
44        }
45}
Note: See TracBrowser for help on using the repository browser.