Package com.codeborne.selenide
Class WebDriverConditions
java.lang.Object
com.codeborne.selenide.WebDriverConditions
- Since:
- 5.23.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectCondition<org.openqa.selenium.WebDriver>
static ObjectCondition<org.openqa.selenium.WebDriver>
static ObjectCondition<org.openqa.selenium.WebDriver>
currentFrameUrl
(String expectedUrl) static ObjectCondition<org.openqa.selenium.WebDriver>
currentFrameUrlContaining
(String expectedUrl) static ObjectCondition<org.openqa.selenium.WebDriver>
currentFrameUrlStartingWith
(String expectedUrl) static ObjectCondition<org.openqa.selenium.WebDriver>
numberOfWindows
(int numberOfWindows) Check that the number of windows/tabs in the browser is as expected.static ObjectCondition<org.openqa.selenium.WebDriver>
static ObjectCondition<org.openqa.selenium.WebDriver>
static ObjectCondition<org.openqa.selenium.WebDriver>
urlContaining
(String expectedUrl) static ObjectCondition<org.openqa.selenium.WebDriver>
urlStartingWith
(String expectedUrl)
-
Constructor Details
-
WebDriverConditions
public WebDriverConditions()
-
-
Method Details
-
url
@CheckReturnValue @Nonnull public static ObjectCondition<org.openqa.selenium.WebDriver> url(String expectedUrl) -
urlStartingWith
@CheckReturnValue @Nonnull public static ObjectCondition<org.openqa.selenium.WebDriver> urlStartingWith(String expectedUrl) -
urlContaining
@CheckReturnValue @Nonnull public static ObjectCondition<org.openqa.selenium.WebDriver> urlContaining(String expectedUrl) -
currentFrameUrl
@CheckReturnValue @Nonnull public static ObjectCondition<org.openqa.selenium.WebDriver> currentFrameUrl(String expectedUrl) -
currentFrameUrlStartingWith
@CheckReturnValue @Nonnull public static ObjectCondition<org.openqa.selenium.WebDriver> currentFrameUrlStartingWith(String expectedUrl) -
currentFrameUrlContaining
@CheckReturnValue @Nonnull public static ObjectCondition<org.openqa.selenium.WebDriver> currentFrameUrlContaining(String expectedUrl) -
numberOfWindows
@CheckReturnValue @Nonnull public static ObjectCondition<org.openqa.selenium.WebDriver> numberOfWindows(int numberOfWindows) Check that the number of windows/tabs in the browser is as expected. Example:webdriver().shouldHave(numberOfWindows(2))
-
title
@CheckReturnValue @Nonnull public static ObjectCondition<org.openqa.selenium.WebDriver> title(String expectedTitle) - Since:
- 5.25.0
-
cookie
@CheckReturnValue @Nonnull public static ObjectCondition<org.openqa.selenium.WebDriver> cookie(String name) -
cookie
@CheckReturnValue @Nonnull public static ObjectCondition<org.openqa.selenium.WebDriver> cookie(String name, String value)
-