All Implemented Interfaces:
Component, Element, Image, Snippet

public class N2oImage extends N2oSnippet implements Image
Компонент вывода изображения для автотестирования
  • Constructor Details

    • N2oImage

      public N2oImage()
  • Method Details

    • shouldHaveTitle

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

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

      public void shouldHaveShape(net.n2oapp.framework.api.metadata.global.view.widget.table.ShapeType shape)
      Description copied from interface: Image
      Проверка формы изображения на соответствие
      Specified by:
      shouldHaveShape in interface Image
      Parameters:
      shape - ожидаемая форма
    • shouldHaveUrl

      public void shouldHaveUrl(String url)
      Description copied from interface: Image
      Проверка ссылки изображения на соответствие
      Specified by:
      shouldHaveUrl in interface Image
      Parameters:
      url - ожидаемая ссылка
    • shouldHaveWidth

      public void shouldHaveWidth(int width)
      Description copied from interface: Image
      Проверка ширины изображения на соответствие
      Specified by:
      shouldHaveWidth in interface Image
      Parameters:
      width - ожидаемая ширина
    • shouldHaveTextPosition

      public void shouldHaveTextPosition(net.n2oapp.framework.api.metadata.meta.control.TextPosition position)
      Description copied from interface: Image
      Проверка позиции текста на соответствие
      Specified by:
      shouldHaveTextPosition in interface Image
      Parameters:
      position - ожидаемая позиция
    • shouldHaveText

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

      protected com.codeborne.selenide.SelenideElement imageInfo()
    • image

      protected com.codeborne.selenide.SelenideElement image()