Line | |
---|
1 | package br.gov.serpro.expresso.cte.email.listar; |
---|
2 | |
---|
3 | import org.openqa.selenium.Alert; |
---|
4 | import org.testng.annotations.Test; |
---|
5 | |
---|
6 | import br.gov.serpro.expresso.cte.common.BaseEmailTestCase; |
---|
7 | |
---|
8 | /** |
---|
9 | * @author L.F.Estivalet (Serpro) |
---|
10 | * |
---|
11 | * Created on Jan 6, 2011 at 9:33:58 AM |
---|
12 | * |
---|
13 | */ |
---|
14 | public class LimparLixeiraTestCase extends BaseEmailTestCase { |
---|
15 | |
---|
16 | @Test |
---|
17 | public void test() { |
---|
18 | mp.cleanupTrash(); |
---|
19 | // Alerta de confirmacao de limpeza da lixeira. |
---|
20 | Alert confirm = driver.switchTo().alert(); |
---|
21 | assert MSG_EMAIL_LIMPAR_LIXEIRA.equals(confirm.getText()); |
---|
22 | confirm.accept(); |
---|
23 | |
---|
24 | mp.assertMessage("Sua pasta Lixeira foi limpa."); |
---|
25 | |
---|
26 | System.out.println("AFTER->" + mp.getTotalEmails()); |
---|
27 | } |
---|
28 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.