Advertisement
Guest User

Untitled

a guest
Apr 9th, 2014
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package Tests;
  2.  
  3. import static org.junit.Assert.assertTrue;
  4.  
  5. import org.junit.Test;
  6.  
  7. import Pages.LoginPage;
  8. import Pages.NewMessagePage;
  9. import Util.AbstractDriver;
  10. import Util.ServerMock;
  11.  
  12. public class testEM12PesquisarDestinatario extends AbstractDriver {
  13.    
  14.     @Override
  15.     public void setUp() throws Exception {
  16.         super.setUp();
  17.        
  18.         ServerMock.loginAsStudent();
  19.         ServerMock.messagesList();
  20.         ServerMock.relationships();
  21.     }
  22.    
  23.     @Test
  24.     public void test() throws Exception {
  25.         NewMessagePage page = new LoginPage(driver)
  26.                         .loginAs("danillos@gmail.com", "123456")
  27.                         .swipeInMenu()
  28.                         .clickEduMailOption()
  29.                         .clickComposeNewMessage()
  30.                         .typeRecipient("d");
  31.        
  32.         assertTrue("O foco deve ester no campo Para", page.isElementDisplayed(NewMessagePage.autocompleteRecipientsLocator));
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement