public class FluentWaitMatcher extends Object
| Constructor and Description |
|---|
FluentWaitMatcher(Search search,
FluentWait fluentWait,
String selector) |
| Modifier and Type | Method and Description |
|---|---|
Fluent |
areDisplayed()
Check that the elements are all displayed
|
Fluent |
areEnabled()
Check that the elements are all enabled
|
Fluent |
areNotDisplayed()
Check that the elements are all not displayed
|
Fluent |
containsText(String value)
check if the FluentWait contains the corresponding text
|
Fluent |
hasAttribute(String attribute,
String value)
WARNING - Should be change in a next version to hasAttribute("myAttribute").value("myValue")
|
Fluent |
hasId(String value)
check if the FluentWait has the corresponding id
|
Fluent |
hasName(String value)
check if the FluentWait has the corresponding name
|
FluentSizeBuilder |
hasSize()
Check that the element have a customized size
|
Fluent |
hasSize(int size)
Check that the element have the size indicated
|
Fluent |
hasText(String value)
check if the FluentWait has the exact corresponding text
|
Fluent |
isNotPresent()
Check that the element is not present
|
Fluent |
isPresent()
Check that the element is present
|
FluentWaitBuilder |
with(String attribute)
Create a filter builder for the attribute
|
FluentWaitBuilder |
withClass()
Create a filter builder for the attribute by class
|
FluentWaitMatcher |
withClass(String value)
Check that the element has the corresponding class
|
FluentWaitBuilder |
withId()
Create a filter builder for the attribute by id
|
FluentWaitMatcher |
withId(String value)
Check that the element has the corrsponding id
|
FluentWaitBuilder |
withName()
Create a filter builder for the attribute by name
|
FluentWaitMatcher |
withName(String value)
Check that the element has the corresponding name
|
FluentWaitBuilder |
withText()
Create a filter builder for the attribute by text
|
FluentWaitMatcher |
withText(String value)
Check that the element has the corresponding text
|
public FluentWaitMatcher(Search search, FluentWait fluentWait, String selector)
public Fluent hasAttribute(String attribute, String value)
attribute - attribute namevalue - attribute valuepublic Fluent hasId(String value)
value - id valuepublic Fluent hasName(String value)
value - name valuepublic FluentSizeBuilder hasSize()
public Fluent hasSize(int size)
size - integer value of sizepublic Fluent containsText(String value)
value - text in contains checkpublic Fluent hasText(String value)
value - text in contains checkpublic Fluent isPresent()
public Fluent isNotPresent()
public Fluent areDisplayed()
public Fluent areNotDisplayed()
public Fluent areEnabled()
public FluentWaitBuilder with(String attribute)
attribute - attribute namepublic FluentWaitBuilder withId()
public FluentWaitMatcher withId(String value)
value - id namepublic FluentWaitBuilder withName()
public FluentWaitMatcher withName(String value)
value - element namepublic FluentWaitBuilder withClass()
public FluentWaitMatcher withClass(String value)
value - class namepublic FluentWaitBuilder withText()
public FluentWaitMatcher withText(String value)
value - the text value which should be includedCopyright © 2015 AConsulting. All Rights Reserved.