Ejemplo n.º 1
0
  @Override
  protected void initWebObject() {
    logger.info(
        "validating static elements for web object id: <{}>, name:<{}>...",
        getQualifier(),
        getLogicalName());

    final String REASON = "assert that element \"%s\" exits";
    JAssertion assertion = getRoot().createAssertion();

    Optional<HtmlElement> e = getRoot().childExists(By.className("lb-contents"), FIVE_SECONDS);
    assertion.assertThat(String.format(REASON, ".lb-contents"), e.isPresent(), is(true));
    lb_contents = e.get();
  }
  @Override
  protected void initWebObject() {
    logger.debug(
        "validating static elements for web object id: <{}>, name:<{}>...",
        getQualifier(),
        getLogicalName());

    final String REASON = "assert that element \"%s\" exits";
    JAssertion assertion = getRoot().createAssertion();

    Optional<HtmlElement> e =
        getRoot().childExists(By.cssSelector(".nav-tooltip li.title"), FIVE_SECONDS);
    assertion.assertThat(
        String.format(REASON, ".nav-tooltip li.title"), e.isPresent(), JMatchers.is(true));
  }