diff --git a/docs/docs.md b/docs/docs.md index 8cf798ba91..6d81571dec 100644 --- a/docs/docs.md +++ b/docs/docs.md @@ -219,10 +219,22 @@ $(".fluent", withClass("foo")) $(".fluent", withId("idOne")) $(".fluent", withText("This field is mandatory.")) $(withId("idOne")) // Filter only -$(By.cssSelector(".header")) // Native Selium `By` locator +$(By.cssSelector(".header")) // Native Selenium `By` locator $(".fluent", withName("foo"), withId("id1")) // Filter chaining ``` +Available filter methods with descriptions are shown in the table below: + +| Method | Description | +| ------ | ----------- | +| withName(String text) | Filters elements with 'name' attribute equals to value passed as an method argument | +| withId(String id) | Filters elements with 'id' attribute equals to value passed as an method argument | +| withClass(String cssClassName) | Filters elements with 'class' attribute equals to value passed as an method argument | +| withText(String text) | Filters elements with inner text that has to be displayed and equals to value passed as an method argument | +| containingText(String text) | Filters elements with inner text that has to be displayed and contains the value passed as an method argument | +| withTextContent(String text) | Filters elements with inner text that can be displayed or hidden and equals to value passed as an method argument | +| containingTextContent(String text) | Filters elements with inner text that can be displayed or hidden and contains the value passed as an method argument | + You can do more complex string matching on the above filters using the following methods: - `contains`