@Test public void buttonWithIdIsParsed() { Component button = ctx.getComponentByLocalId("firstButton"); assertThat(ctx.getComponentByCaption("Native click me"), is(button)); assertThat(button.getCaption(), is("Native click me")); }
@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")); }