selenium-webdriverfluentlenium

What's the equivalent of the selector in "XPath" (Selenium) in FluentLenium


My problem is that I can't figure out the equivalent of the selector XPath(selenium) in FluentLenium.

Thank you.


Solution

  • It seems to me that FluentLenium doesn`t have By.xpath (By.id, etc) equivalent as it relies solely on CssSelector.

    Since you can use Custom filter with:

    contains containsWord notContains startsWith notStartsWith endsWith notEndsWith

    I personally don't see any reason to use XPath. Moreover, XPath often considered as a "bad practice" to locate web element.