Ignore:
Timestamp:
08/04/11 15:43:12 (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/email/MailPage.java

    r4780 r4902  
    417417         */ 
    418418        public void replyAllEmailWithoutHistory(String id) { 
    419                 super.findAndClickElement("msg_opt_reply_options_" + id + "_r"); 
     419                super.findAndClickElement(By.id("msg_opt_reply_options_" + id + "_r")); 
    420420                super.waitForElement(By 
    421421                                .xpath("//div[@id='exmail_main_body']/div[2]/table/tbody/tr[1]/td/table/tbody/tr[2]/td/div/span[3]")); 
     
    431431         */ 
    432432        public void replyEmailWithoutHistory(String id) { 
    433                 super.findAndClickElement("msg_opt_reply_options_" + id + "_r"); 
     433                super.findAndClickElement(By.id("msg_opt_reply_options_" + id + "_r")); 
    434434                super.waitForElement(By 
    435435                                .xpath("//div[@id='exmail_main_body']/div[2]/table/tbody/tr[1]/td/table/tbody/tr[2]/td/div/span[2]")); 
     
    445445         */ 
    446446        public void replyAllEmail(String id) { 
    447                 super.findAndClickElement("msg_opt_reply_options_" + id + "_r"); 
     447                super.findAndClickElement(By.id("msg_opt_reply_options_" + id + "_r")); 
    448448                super.waitForElement(By 
    449449                                .xpath("//div[@id='exmail_main_body']/div[2]/table/tbody/tr[1]/td/table/tbody/tr[2]/td/div/span[1]")); 
     
    539539        public void moveEmail(String folderName) { 
    540540                this.moveEmailLink.click(); 
    541                 super.findAndClickElement(folderName); 
     541                super.findAndClickElement(By.id(folderName)); 
    542542                this.moveEmailButton.click(); 
    543543        } 
     
    756756         */ 
    757757        public void sendMail(String id) { 
    758                 super.findAndClickElement("send_button_" + id); 
     758                super.findAndClickElement(By.id("send_button_" + id)); 
    759759        } 
    760760 
     
    911911         */ 
    912912        public void assertMessage(String message) { 
    913                 Assert.assertEquals(getDisplayedElementContent("em_div_write_msg"), 
    914                                 message); 
     913                Assert.assertEquals( 
     914                                getDisplayedElementContent(By.id("em_div_write_msg")), message); 
    915915        } 
    916916 
Note: See TracChangeset for help on using the changeset viewer.