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

This class contains additionalByselectors that are missing in standard Selenium WebDriver API. We recommend static import used selectors.

  • byText - search by exact text
  • withText - search by text (substring)
  • by - search by attribute
  • byTitle - search by “title” attribute
  • byValue - search by “value” attribute
// Example usage:
$(byText("Login")).shouldBe(visible));
$(By.xpath("//div[text()='Login']")).shouldBe(visible);