Class N2oAlert
java.lang.Object
net.n2oapp.framework.autotest.impl.component.N2oElement
net.n2oapp.framework.autotest.impl.component.N2oComponent
net.n2oapp.framework.autotest.impl.component.snippet.N2oSnippet
net.n2oapp.framework.autotest.impl.component.snippet.N2oAlert
Компонент предупреждения для автотестирования
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.n2oapp.framework.autotest.api.component.snippet.Alert
Alert.CloseButton, Alert.Placement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclick()Клик по предупреждениюvoidshouldHaveColor(Colors color) Проверка цвета на соответствиеvoidПроверка того, что предупреждение содержит дополнительную информациюvoidshouldHaveText(String text, Duration... duration) Проверка текста на соответствиеvoidshouldHaveTimestamp(String timestamp, Duration... duration) Проверка того, что предупреждение содержит информацию о времениvoidshouldHaveTitle(String text, Duration... duration) Проверка заголовка на соответствиеvoidshouldHaveUrl(String url) Проверка ссылки на соответвиеvoidshouldNotExists(Duration... duration) Проверка отсутствия компонент на страницеMethods inherited from class net.n2oapp.framework.autotest.impl.component.N2oComponent
shouldBeHidden, shouldBeVisible, shouldExists, shouldHaveCssClass, shouldHaveStyleMethods inherited from class net.n2oapp.framework.autotest.impl.component.N2oElement
element, setElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.n2oapp.framework.autotest.api.component.Component
should, should, should, shouldBeHidden, shouldBeVisible, shouldExists, shouldHaveCssClass, shouldHaveStyleMethods inherited from interface net.n2oapp.framework.autotest.api.component.Element
element, setElement
-
Constructor Details
-
N2oAlert
public N2oAlert() -
N2oAlert
public N2oAlert(com.codeborne.selenide.SelenideElement element)
-
-
Method Details
-
shouldHaveColor
Description copied from interface:AlertПроверка цвета на соответствие- Specified by:
shouldHaveColorin interfaceAlert- Parameters:
color- ожидаемый цвет предупреждения
-
shouldHaveTitle
Description copied from interface:AlertПроверка заголовка на соответствие- Specified by:
shouldHaveTitlein interfaceAlert- Parameters:
text- ожидаемый заголовок предупреждения
-
shouldHaveUrl
Description copied from interface:AlertПроверка ссылки на соответвие- Specified by:
shouldHaveUrlin interfaceAlert- Parameters:
url- ожидаемая ссылка
-
shouldHaveStacktrace
public void shouldHaveStacktrace()Description copied from interface:AlertПроверка того, что предупреждение содержит дополнительную информацию- Specified by:
shouldHaveStacktracein interfaceAlert
-
shouldHaveText
Description copied from interface:SnippetПроверка текста на соответствие- Specified by:
shouldHaveTextin interfaceSnippet- Parameters:
text- ожидаемый текст
-
shouldHaveTimestamp
Description copied from interface:AlertПроверка того, что предупреждение содержит информацию о времени- Specified by:
shouldHaveTimestampin interfaceAlert
-
shouldNotExists
Description copied from interface:ComponentПроверка отсутствия компонент на странице- Specified by:
shouldNotExistsin interfaceAlert- Specified by:
shouldNotExistsin interfaceComponent- Overrides:
shouldNotExistsin classN2oComponent- Parameters:
duration- задержка
-
closeButton
- Specified by:
closeButtonin interfaceAlert- Returns:
- кнопка закрытия прежупреждения
-
click
public void click()Description copied from interface:AlertКлик по предупреждению
-