Advertisement
TikhomirovSergey

Untitled

Sep 3rd, 2013
2,741
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1.   @Test
  2.   public void test2() throws Exception{
  3.       Google google = Google.getNew();
  4.       google.performSearch("Hello world. I have just wrote it using Selenium    Webdriver");
  5.       //ну, у меня отображается 10 ссылок
  6.       Assert.assertEquals(10, google.getLinkCount());
  7.       google.clickOn(0);
  8.       AnyPage anyPage =  google.get(AnyPage.class, 1);
  9.       anyPage.close();
  10.      
  11.       google.performSearch("In is Just another attempt to search something");
  12.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement