Package com.codeborne.selenide
Class WebDriverConditions
java.lang.Object
com.codeborne.selenide.WebDriverConditions
-
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
-
urlStartingWith
-
urlContaining
-
currentFrameUrl
-
currentFrameUrlStartingWith
public static ObjectCondition<org.openqa.selenium.WebDriver> currentFrameUrlStartingWith(String expectedUrl) -
currentFrameUrlContaining
public static ObjectCondition<org.openqa.selenium.WebDriver> currentFrameUrlContaining(String expectedUrl) -
numberOfWindows
Check that the number of windows/tabs in the browser is as expected. Example:webdriver().shouldHave(numberOfWindows(2))
-
title
-
cookie
-
cookie
-