Ejemplo n.º 1
0
  @Test
  public void buttonWithIdIsParsed() {
    Component button = ctx.getComponentByLocalId("firstButton");

    assertThat(ctx.getComponentByCaption("Native click me"), is(button));
    assertThat(button.getCaption(), is("Native click me"));
  }
Ejemplo n.º 2
0
  @Test
  public void buttonWithIdAndLocalIdIsParsed() {
    Component button = ctx.getComponentById("secondButton");

    assertThat(ctx.getComponentByCaption("Another button"), is(button));
    assertThat(ctx.getComponentByLocalId("localID"), is(button));
    assertThat(button.getCaption(), is("Another button"));
  }