java.lang.Object
net.n2oapp.framework.autotest.impl.collection.N2oComponentsCollection
net.n2oapp.framework.autotest.impl.collection.N2oCells
All Implemented Interfaces:
Cells, ComponentsCollection

public class N2oCells extends N2oComponentsCollection implements Cells
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    cell(int index)
    Возвращает текстовую ячейку по индексу из списка ячеек в строке
    <T extends Cell>
    T
    cell(int index, Class<T> componentClass)
    Возвращает ячейку требуемого типа из списка ячеек в строке по индексу
    <T extends Cell>
    T
    cell(com.codeborne.selenide.WebElementCondition findBy, Class<T> componentClass)
    Возвращает ячейку требуемого типа по условию из списка ячеек в строке
    void
    Клик по строке с ячейками
    void
    Наведение мыши на строку с ячейками
    protected com.codeborne.selenide.SelenideElement
    row()
     
    void
    Проверка цвета строки по css классу

    Methods inherited from class net.n2oapp.framework.autotest.impl.collection.N2oComponentsCollection

    elements, setElements, shouldBeEmpty, shouldHaveSize

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.n2oapp.framework.autotest.api.collection.ComponentsCollection

    elements, setElements, shouldBeEmpty, shouldHaveSize
  • Constructor Details

    • N2oCells

      public N2oCells()
  • Method Details

    • cell

      public TextCell cell(int index)
      Description copied from interface: Cells

      Возвращает текстовую ячейку по индексу из списка ячеек в строке

      For example: row(0).cell(1);

      Specified by:
      cell in interface Cells
      Parameters:
      index - номер текстовой ячейки
      Returns:
      Компонент текстовая ячейка для автотестирования
    • cell

      public <T extends Cell> T cell(int index, Class<T> componentClass)
      Description copied from interface: Cells

      Возвращает ячейку требуемого типа из списка ячеек в строке по индексу

      For example: .row(0).cell(0, CheckboxCell.class);

      Specified by:
      cell in interface Cells
      Parameters:
      index - номер ячейки
      componentClass - тип возвращаемой ячейки
      Returns:
      Компонент ячейка для автотестирования
    • cell

      public <T extends Cell> T cell(com.codeborne.selenide.WebElementCondition findBy, Class<T> componentClass)
      Description copied from interface: Cells

      Возвращает ячейку требуемого типа по условию из списка ячеек в строке

      For example: .row(0).cell(Condition.visible, CheckboxCell.class);

      Specified by:
      cell in interface Cells
      Parameters:
      findBy - условие поиска
      componentClass - возвращаемый тип ячейки
      Returns:
      Компонент ячейка для автотестирования
    • click

      public void click()
      Description copied from interface: Cells
      Клик по строке с ячейками
      Specified by:
      click in interface Cells
    • hover

      public void hover()
      Description copied from interface: Cells
      Наведение мыши на строку с ячейками
      Specified by:
      hover in interface Cells
    • shouldHaveColor

      public void shouldHaveColor(Colors color)
      Description copied from interface: Cells
      Проверка цвета строки по css классу
      Specified by:
      shouldHaveColor in interface Cells
      Parameters:
      color - enum с цветовыми кодами
    • row

      protected com.codeborne.selenide.SelenideElement row()