com.codeborne.selenide.SelenideElement [src][javadoc]

SelenideElement is a wrapper around Selenium WebElement, giving it some additional convenience methods to do Selenide magic.

You can chain SelenideElements with$eg.$("#page").$("#table").$("#header")which doesn’t trigger DOM search.

Assertions trigger the DOM search and returning SelenideElement allowing fluent interface.

  • should(Condition)
  • shouldBe(Condition)
  • shouldHave(Condition)
  • shouldNot(Condition)
  • shouldNotBe(Condition)
  • shouldNotHave(Condition)

Actions on the elements (e.g.):

  • click()
  • doubleClick()
  • pressEnter(String)
  • selectOption(String text)
  • selectOptionByValue(String value)
  • setValue(String)
  • val(String)
  • append(String)

Getting status and values of elements (e.g.):

  • val()
  • data()
  • text()
  • isDisplayed()
  • exists()
  • getSelectedOption()
  • getSelectedText()
  • getSelectedValue()

Other useful commands (e.g.):

  • waitUntil(Condition, milliseconds)
  • waitWhile(Condition, milliseconds)
  • uploadFromClasspath(String fileName)
  • download()
  • toWebElement()