Skip to content

Commit

Permalink
Merge branch 'develop' into feature/#612
Browse files Browse the repository at this point in the history
  • Loading branch information
koryl committed Aug 18, 2018
2 parents 5c3d9c5 + e0d2b58 commit 6a05264
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 6a05264

Please sign in to comment.