com.codeborne.selenide.WebDriverRunner [src]

This class defines some browser management methods:

  • isChrome()
  • isFirefox()
  • isHeadless()
  • url() - returns current url
  • source() - returns source HTML code of current page
  • getWebDriver() - returns the WebDriver instance (created by Selenide automatically or set up by the user), thus giving to the user the raw API to Selenium if needed
  • setWebDriver(WebDriver) - tells Selenide to use driver created by the user. From this moment the user himself is responsible for closing the driver.

results matching ""

    No results matching ""