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