Interface Component

All Superinterfaces:
Element
All Known Subinterfaces:
Alert, Alert.CloseButton, AnchorMenuItem, Area, AreaChartWidget, AutoComplete, Badge, BadgeCell, Button, ButtonField, CalendarAgendaView, CalendarDayView, CalendarDayViewHeader, CalendarEvent, CalendarMonthView, CalendarTimeView, CalendarTimeViewHeader, CalendarToolbar, CalendarWeekView, CalendarWeekViewHeader, CalendarWidget, Card, Card.Block, Card.Column, CardsWidget, Cell, ChartWidget, Checkbox, CheckboxCell, CheckboxGroup, CodeEditor, Control, DateInput, DateInterval, Drawer, DropDown, DropDown.DropDownItem, DropdownButton, DropdownMenuItem, DropDownTree, DropDownTree.DropDownTreeItem, EditCell, Field, FieldSet, FileUploadCell, FileUploadControl, Footer, FormWidget, Html, HtmlWidget, IconCell, Image, ImageCell, ImageUploadControl, InputMoneyControl, InputSelect, InputSelectTree, InputText, IntervalField, LeftRightPage, LineFieldSet, LineRegion, LinkCell, ListCell, ListWidget, Markdown, MaskedInput, MenuItem, Modal, MultiFieldSet, MultiFieldSetItem, NumberPicker, OutputList, OutputText, Page, Page.Breadcrumb, Page.Overlay, Paging, PanelRegion, PasswordControl, Progress, ProgressBarCell, RadioCell, RadioGroup, Rating, RatingCell, Region, ScrollspyRegion, ScrollspyRegion.ContentItem, ScrollspyRegion.DropdownMenuItem, ScrollspyRegion.GroupItem, ScrollspyRegion.Menu, ScrollspyRegion.MenuItem, SearchablePage, SearchBar, SearchItem, Select, Sidebar, SimpleFieldSet, SimpleHeader, SimplePage, SimpleRegion, Slider, Snippet, StandardButton, StandardCalendarView, StandardField, StandardPage, StandardWidget, Status, SubPageRegion, TableFilterHeader, TableHeader, TableMultiHeader, TableSimpleHeader, TableWidget, TabsRegion, TabsRegion.TabItem, Text, TextArea, TextCell, TextEditor, Tile, TilesWidget, TimePicker, ToolbarCell, Tooltip, TooltipListCell, TopLeftRightPage, TreeWidget, TreeWidget.TreeItem, Widget
All Known Implementing Classes:
N2oAlert, N2oAlert.N2oCloseButton, N2oAnchorMenuItem, N2oArea, N2oAreaChartWidget, N2oAutoComplete, N2oBadgeCell, N2oButton, N2oButtonField, N2oCalendarAgendaView, N2oCalendarDayView, N2oCalendarDayViewHeader, N2oCalendarEvent, N2oCalendarMonthView, N2oCalendarTimeView, N2oCalendarTimeViewHeader, N2oCalendarToolbar, N2oCalendarWeekView, N2oCalendarWeekViewHeader, N2oCalendarWidget, N2oCard, N2oCard.N2oBlock, N2oCard.N2oColumn, N2oCardsWidget, N2oCell, N2oChartWidget, N2oCheckbox, N2oCheckboxCell, N2oCheckboxGroup, N2oCodeEditor, N2oComponent, N2oControl, N2oDateInput, N2oDateInterval, N2oDrawer, N2oDropDown, N2oDropDown.N2oDropDownItem, N2oDropdownButton, N2oDropdownMenuItem, N2oDropDownTree, N2oDropDownTree.N2oDropDownTreeItem, N2oEditCell, N2oField, N2oFieldSet, N2oFileUploadCell, N2oFileUploadControl, N2oFooter, N2oFormWidget, N2oHtml, N2oHtmlWidget, N2oIconCell, N2oImage, N2oImageCell, N2oImageUploadControl, N2oInputMoney, N2oInputSelect, N2oInputSelectTree, N2oInputText, N2oIntervalField, N2oLeftRightPage, N2oLineFieldSet, N2oLineRegion, N2oLinkCell, N2oListCell, N2oListWidget, N2oMarkdown, N2oMaskedInput, N2oMenuItem, N2oModal, N2oMultiFieldSet, N2oMultiFieldSetItem, N2oNumberPicker, N2oOutputList, N2oOutputText, N2oPage, N2oPage.N2oBreadcrumb, N2oPage.N2oBreadcrumb.N2oCrumb, N2oPage.N2oDialog, N2oPage.N2oOverlay, N2oPage.N2oPopover, N2oPaging, N2oPanelRegion, N2oPasswordControl, N2oProgress, N2oProgressBarCell, N2oRadioCell, N2oRadioGroup, N2oRating, N2oRatingCell, N2oRegion, N2oScrollspyRegion, N2oScrollspyRegion.N2oContentItem, N2oScrollspyRegion.N2oDropdownMenuItem, N2oScrollspyRegion.N2oGroupItem, N2oScrollspyRegion.N2oMenu, N2oScrollspyRegion.N2oMenuItem, N2oSearchablePage, N2oSearchBar, N2oSearchItem, N2oSelect, N2oSidebar, N2oSimpleFieldSet, N2oSimpleHeader, N2oSimplePage, N2oSimpleRegion, N2oSlider, N2oSnippet, N2oStandardButton, N2oStandardCalendarView, N2oStandardField, N2oStandardPage, N2oStandardWidget, N2oStandardWidget.N2oWidgetToolbar, N2oStatus, N2oSubPageRegion, N2oTableFilterHeader, N2oTableHeader, N2oTableMultiHeader, N2oTableSimpleHeader, N2oTableWidget, N2oTabsRegion, N2oTabsRegion.N2oTabItem, N2oText, N2oTextArea, N2oTextCell, N2oTextEditor, N2oTile, N2oTilesWidget, N2oTimePicker, N2oToolbarCell, N2oTooltip, N2oTooltipListCell, N2oTopLeftRightPage, N2oTreeWidget, N2oTreeWidget.N2oTreeItem, N2oWidget

public interface Component extends Element
Любой визуальный компонент для автотестирования
  • Method Summary

    Modifier and Type
    Method
    Description
    default com.codeborne.selenide.SelenideElement
    should(com.codeborne.selenide.WebElementCondition condition, com.codeborne.selenide.SelenideElement element, Duration... duration)
     
    default com.codeborne.selenide.SelenideElement
    should(com.codeborne.selenide.WebElementCondition condition, Duration... duration)
     
    default com.codeborne.selenide.ElementsCollection
    should(com.codeborne.selenide.WebElementsCondition condition, com.codeborne.selenide.ElementsCollection element, Duration... duration)
     
    void
    Проверка скрытости компонент на странице
    void
    Проверка видимости компонент на странице
    void
    Проверка существования компонент на странице
    void
    Проверка наличия css класса у компонент
    void
    Проверка стиля компонент на соответствие
    void
    Проверка отсутствия компонент на странице

    Methods inherited from interface net.n2oapp.framework.autotest.api.component.Element

    element, setElement
  • Method Details

    • shouldExists

      void shouldExists()
      Проверка существования компонент на странице
    • shouldNotExists

      void shouldNotExists(Duration... duration)
      Проверка отсутствия компонент на странице
    • shouldBeVisible

      void shouldBeVisible()
      Проверка видимости компонент на странице
    • shouldBeHidden

      void shouldBeHidden()
      Проверка скрытости компонент на странице
    • shouldHaveCssClass

      void shouldHaveCssClass(String cssClass)
      Проверка наличия css класса у компонент
      Parameters:
      cssClass - ожидаемый css класс
    • shouldHaveStyle

      void shouldHaveStyle(String style)
      Проверка стиля компонент на соответствие
      Parameters:
      style - ожидаемый стиль компонент
    • should

      default com.codeborne.selenide.SelenideElement should(com.codeborne.selenide.WebElementCondition condition, Duration... duration)
    • should

      default com.codeborne.selenide.SelenideElement should(com.codeborne.selenide.WebElementCondition condition, com.codeborne.selenide.SelenideElement element, Duration... duration)
    • should

      default com.codeborne.selenide.ElementsCollection should(com.codeborne.selenide.WebElementsCondition condition, com.codeborne.selenide.ElementsCollection element, Duration... duration)