Class WebDriverConditions

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

public class WebDriverConditions extends Object
  • Constructor Details

    • WebDriverConditions

      public WebDriverConditions()
  • Method Details

    • url

      public static ObjectCondition<org.openqa.selenium.WebDriver> url(String expectedUrl)
    • urlStartingWith

      public static ObjectCondition<org.openqa.selenium.WebDriver> urlStartingWith(String expectedUrl)
    • urlContaining

      public static ObjectCondition<org.openqa.selenium.WebDriver> urlContaining(String expectedUrl)
    • currentFrameUrl

      public static ObjectCondition<org.openqa.selenium.WebDriver> currentFrameUrl(String expectedUrl)
    • currentFrameUrlStartingWith

      public static ObjectCondition<org.openqa.selenium.WebDriver> currentFrameUrlStartingWith(String expectedUrl)
    • currentFrameUrlContaining

      public static ObjectCondition<org.openqa.selenium.WebDriver> currentFrameUrlContaining(String expectedUrl)
    • numberOfWindows

      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

      public static ObjectCondition<org.openqa.selenium.WebDriver> title(String expectedTitle)
    • cookie

      public static ObjectCondition<org.openqa.selenium.WebDriver> cookie(String name)
    • cookie

      public static ObjectCondition<org.openqa.selenium.WebDriver> cookie(String name, String value)