com.codeborne.selenide.Condition[src][javadoc]
Conditions are used in should/waitUntil/waitWhile constructions. We recommend to static import com.codeborne.selenide.Condition.* to get full advantage of readible test code.
condition | condition | condition |
---|---|---|
visible | appear // e.g. $(“input”).shouldBe(visible) | - |
present | exist | - |
hidden | disappear | not(visible) |
- readonly // e.g. $(“input”).shouldBe(readonly)
- attribute(String)
- name // e.g. $(“input”).shouldHave(name(“fname”))
- value // e.g. $(“input”).shouldHave(value(“John”))
- type // $(“#input”).shouldHave(type(“checkbox”))
- id // $(“#input”).shouldHave(id(“myForm”))
- empty // $(“h2”).shouldBe(empty)
- options
- cssClass(String)
- focused
- enabled
- disabled
- selected
- matchText(String regex)
- text(String substring)
- exactText(String wholeText)
- textCaseSensitive(String substring)
- exactTextCaseSensitive(String wholeText)