All Implemented Interfaces:
Component, Element, Html, Snippet

public class N2oHtml extends N2oSnippet implements Html
  • Constructor Details

    • N2oHtml

      public N2oHtml()
  • Method Details

    • shouldHaveElement

      public void shouldHaveElement(String cssSelector)
      Description copied from interface: Html
      Проверка наличия элемента по css селектору
      Specified by:
      shouldHaveElement in interface Html
      Parameters:
      cssSelector - css селектр
    • shouldHaveText

      public void shouldHaveText(String text, Duration... duration)
      Description copied from interface: Snippet
      Проверка текста на соответствие
      Specified by:
      shouldHaveText in interface Snippet
      Parameters:
      text - ожидаемый текст
    • shouldHaveElementWithAttributes

      public void shouldHaveElementWithAttributes(String cssSelector, Map<String,String> attributes)
      Description copied from interface: Html
      Проверка соответствия атрибутов у элемента
      Specified by:
      shouldHaveElementWithAttributes in interface Html
      Parameters:
      cssSelector - css селектор для поиска элемента
      attributes - ожидаемые атрибуты