Ignore:
Timestamp:
07/18/11 10:56:36 (13 years ago)
Author:
luiz-fernando
Message:

Ticket #1771 - Refactoring, criadas novas classes para Pasta, Filtro, Pesquisa

File:
1 edited

Legend:

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

    r4620 r4780  
    2020        private WebElement filterNewRule; 
    2121 
     22        @FindBy(xpath = "//div[@id='window_ffilter_ccform']/div[@id='form_body']/a[2]") 
     23        private WebElement filterNewOutOfOfficeRule; 
     24 
     25        @FindBy(id = "field8") 
     26        private WebElement filterOutOfOfficeText; 
     27 
    2228        @FindBy(xpath = "//div[@id='window_ffilter_ccform']/div[@id='form_body']/span[2]/input") 
    2329        private WebElement filterSaveRules; 
     
    6571        public void newFilterRule() { 
    6672                this.filterNewRule.click(); 
     73        } 
     74 
     75        public void newFilterOutOfOfficeRule() { 
     76                this.filterNewOutOfOfficeRule.click(); 
     77        } 
     78 
     79        public void setFilterOutOfOfficeText(String text) { 
     80                this.filterOutOfOfficeText.clear(); 
     81                this.filterOutOfOfficeText.sendKeys(text); 
     82        } 
     83 
     84        public String getFilterOutOfOfficeText() { 
     85                return this.filterOutOfOfficeText.getValue(); 
    6786        } 
    6887 
     
    7190                                By.xpath("//div[@id='window_ffilter_ccform']/div[@id='form_body']/div[@id='set_rules']/a[" 
    7291                                                + id + "]")).click(); 
     92        } 
     93 
     94        public void editOutOfOfficeFilterRule() { 
     95                driver.findElement(By.xpath("//div[@id='set_out']/a/b")).click(); 
    7396        } 
    7497 
     
    81104 
    82105        public void setFilterRecepient(String value) { 
     106                this.filterRecepient.clear(); 
    83107                this.filterRecepient.sendKeys(value); 
    84108        } 
     
    89113 
    90114        public void setFilterTo(String value) { 
     115                this.filterTo.clear(); 
    91116                this.filterTo.sendKeys(value); 
    92117        } 
     
    161186                driver.findElement(By.xpath("//div[@id='form_buttons']/input[3]")) 
    162187                                .click(); 
    163                 driver.findElement(By.xpath("//div[@id='form_buttons']/input[4]")) 
    164                                 .click(); 
     188                // driver.findElement(By.xpath("//div[@id='form_buttons']/input[4]")) 
     189                // .click(); 
    165190        } 
    166191 
     
    202227        } 
    203228 
     229        public void selectOutOfOfficeFilterRule() { 
     230                this.waitForElement(By.id("out_0")); 
     231                driver.findElement(By.id("out_0")).click(); 
     232        } 
     233 
    204234} 
Note: See TracChangeset for help on using the changeset viewer.