Examples of selectSecondOption()


Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.selectitems.SelectManyEnumSelectItemsPage.selectSecondOption()

    assertThat(selectOptions.get(1).getSelected(), is(nullValue()));
    assertThat(selectOptions.get(1).getText(), is("Spring"));
    assertThat(selectOptions.get(2).getValue(), is("JAVASERVER_FACES"));
    assertThat(selectOptions.get(2).getSelected(), is(nullValue()));
    assertThat(selectOptions.get(2).getText(), is("JavaServer Faces"));
    page.selectSecondOption();

    page = (SelectManyEnumSelectItemsPage) page.clickSubmitButton();

    selectOptions = page.getSelectOptions();
    assertThat(selectOptions.size(), is(3));
View Full Code Here

Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.selectitems.SelectManyStringSelectItemsPage.selectSecondOption()

    assertThat(selectOptions.get(0).getText(), is("Framework"));
    assertThat(selectOptions.get(1).getValue(), is("Web Flow"));
    assertThat(selectOptions.get(1).getSelected(), is(nullValue()));
    assertThat(selectOptions.get(1).getText(), is("Web Flow"));

    page.selectSecondOption();

    page = (SelectManyStringSelectItemsPage) page.clickSubmitButton();

    selectOptions = page.getSelectOptions();
    assertThat(selectOptions.size(), is(4));
View Full Code Here

Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.selectitems.SelectOneBooleanSelectItemsPage.selectSecondOption()

    assertThat(selectOptions.get(1).getText(), is("Yes"));
    assertThat(selectOptions.get(2).getValue(), is("false"));
    assertThat(selectOptions.get(2).getSelected(), is(nullValue()));
    assertThat(selectOptions.get(2).getText(), is("No"));

    page.selectSecondOption();

    page = (SelectOneBooleanSelectItemsPage) page.clickSubmitButton();

    selectOptions = page.getSelectOptions();
    assertThat(selectOptions.size(), is(3));
View Full Code Here

Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.selectitems.SelectOneJpaPartialSelectItemsPage.selectSecondOption()

  @Test
  public void shouldSelectOneJpaPartial() throws Exception {
    // Issue #53
    SelectOneJpaPartialSelectItemsPage page = this.pages.get(SelectOneJpaPartialSelectItemsPage.class);
    assertThat(page.getSelectOptions().size(), is(28));
    page.selectSecondOption();
    page = page.clickUpdateButton();
    page.selectSecondOptionOnSecondSelect();
    page = (SelectOneJpaPartialSelectItemsPage) page.clickSubmitButton();
    assertThat(page.getSelectOptions().get(1).getSelected(), is("true"));
  }
View Full Code Here

Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.selectitems.SelectOneJpaSelectItemsPage.selectSecondOption()

    assertThat(selectOptions.get(0).getText(), is("--- Please Select ---"));
    assertThat(selectOptions.get(1).getValue(), is("0"));
    assertThat(selectOptions.get(1).getSelected(), is(nullValue()));
    assertThat(selectOptions.get(1).getText(), is("Rod Johnson"));

    page.selectSecondOption();

    page = (SelectOneJpaSelectItemsPage) page.clickSubmitButton();

    selectOptions = page.getSelectOptions();
    assertThat(selectOptions.size(), is(28));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.