Changeset 4780 for devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/pages/email/MailFilterPage.java
- Timestamp:
- 07/18/11 10:56:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/testlink/automation2.0/src/test/java/org/expressolivre/cte/pages/email/MailFilterPage.java
r4620 r4780 20 20 private WebElement filterNewRule; 21 21 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 22 28 @FindBy(xpath = "//div[@id='window_ffilter_ccform']/div[@id='form_body']/span[2]/input") 23 29 private WebElement filterSaveRules; … … 65 71 public void newFilterRule() { 66 72 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(); 67 86 } 68 87 … … 71 90 By.xpath("//div[@id='window_ffilter_ccform']/div[@id='form_body']/div[@id='set_rules']/a[" 72 91 + id + "]")).click(); 92 } 93 94 public void editOutOfOfficeFilterRule() { 95 driver.findElement(By.xpath("//div[@id='set_out']/a/b")).click(); 73 96 } 74 97 … … 81 104 82 105 public void setFilterRecepient(String value) { 106 this.filterRecepient.clear(); 83 107 this.filterRecepient.sendKeys(value); 84 108 } … … 89 113 90 114 public void setFilterTo(String value) { 115 this.filterTo.clear(); 91 116 this.filterTo.sendKeys(value); 92 117 } … … 161 186 driver.findElement(By.xpath("//div[@id='form_buttons']/input[3]")) 162 187 .click(); 163 driver.findElement(By.xpath("//div[@id='form_buttons']/input[4]"))164 188 // driver.findElement(By.xpath("//div[@id='form_buttons']/input[4]")) 189 // .click(); 165 190 } 166 191 … … 202 227 } 203 228 229 public void selectOutOfOfficeFilterRule() { 230 this.waitForElement(By.id("out_0")); 231 driver.findElement(By.id("out_0")).click(); 232 } 233 204 234 }
Note: See TracChangeset
for help on using the changeset viewer.