org.fluentlenium.core.wait
Class FluentWaitMatcher

java.lang.Object
  extended by org.fluentlenium.core.wait.FluentWaitMatcher

public class FluentWaitMatcher
extends Object


Constructor Summary
FluentWaitMatcher(Search search, org.openqa.selenium.support.ui.FluentWait fluentWait, String selector)
           
 
Method Summary
 Fluent areDisplayed()
          Check that the elements are all displayed
 Fluent areEnabled()
          Check that the elements are all enabled
 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 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 corrsponding name
 FluentWaitBuilder withText()
          Create a filter builder for the attribute by text
 FluentWaitMatcher withText(String value)
          Check that the element has the corresponding text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FluentWaitMatcher

public FluentWaitMatcher(Search search,
                         org.openqa.selenium.support.ui.FluentWait fluentWait,
                         String selector)
Method Detail

hasAttribute

public Fluent hasAttribute(String attribute,
                           String value)
WARNING - Should be change in a next version to hasAttribute("myAttribute").value("myValue")

Parameters:
attribute -
value -

hasId

public Fluent hasId(String value)
check if the FluentWait has the corresponding id

Parameters:
value -

hasName

public Fluent hasName(String value)
check if the FluentWait has the corresponding name

Parameters:
value -

hasSize

public FluentSizeBuilder hasSize()
Check that the element have a customized size

Returns:

hasSize

public Fluent hasSize(int size)
Check that the element have the size indicated

Parameters:
size -

containsText

public Fluent containsText(String value)
check if the FluentWait contains the corresponding text

Parameters:
value -

hasText

public Fluent hasText(String value)
check if the FluentWait has the exact corresponding text

Parameters:
value -

isPresent

public Fluent isPresent()
Check that the element is present


isNotPresent

public Fluent isNotPresent()
Check that the element is not present


areDisplayed

public Fluent areDisplayed()
Check that the elements are all displayed

Returns:

areEnabled

public Fluent areEnabled()
Check that the elements are all enabled

Returns:

with

public FluentWaitBuilder with(String attribute)
Create a filter builder for the attribute

Parameters:
attribute -
Returns:

withId

public FluentWaitBuilder withId()
Create a filter builder for the attribute by id

Parameters:
-
Returns:

withId

public FluentWaitMatcher withId(String value)
Check that the element has the corrsponding id

Parameters:
value -
Returns:

withName

public FluentWaitBuilder withName()
Create a filter builder for the attribute by name

Parameters:
-
Returns:

withName

public FluentWaitMatcher withName(String value)
Check that the element has the corrsponding name

Parameters:
value -
Returns:

withText

public FluentWaitBuilder withText()
Create a filter builder for the attribute by text

Parameters:
-
Returns:

withText

public FluentWaitMatcher withText(String value)
Check that the element has the corresponding text

Parameters:
value -
Returns:


Copyright © 2012 AConsulting. All Rights Reserved.