Class WebDriverConditions

java.lang.Object
com.codeborne.selenide.WebDriverConditions

public class WebDriverConditions extends Object
Since:
5.23.0
  • 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)