Пример #1
0
  @Test
  public void test_dropDownList() throws InterruptedException {
    HomePage homePage = new HomePage();
    homePage.homePageLoaded();
    homePage.gotoDropDownPage();

    DropDownPage dropDownPage = new DropDownPage();
    Assert.assertEquals(dropDownPage.checkDropDownPageLoaded(), Boolean.TRUE);
    List<WebElement> listItem = dropDownPage.get_defaultItem();
    Assert.assertEquals(listItem.get(0).isSelected(), true);
    dropDownPage.select_dropDownItems();
  }
Пример #2
0
 @Test
 public void testGoogle() {
   LOGGER.info("Starting google test");
   HomePage page = new HomePage();
   page.open().enterSearchText("selenium").submitSearch().waitFor(REGULAR_WAIT);
 }