WaitingElementLocator
class WaitingElementLocator extends DefaultElementLocator (View source)
Class, that locates WebElements that might not be present at the moment.
Properties
protected ISearchContext | $searchContext | Search context. | from DefaultElementLocator |
protected AnnotationManager | $annotationManager | Annotation manager. | from DefaultElementLocator |
protected Property | $property | Property. | from DefaultElementLocator |
protected integer | $timeout | Time to wait for element to be ready (in seconds). |
Methods
__construct(Property $property, ISearchContext $search_context, AnnotationManager $annotation_manager)
Creates a new element locator.
NodeElement[]
findAll()
Find the element list.
array
getSelectors()
Returns final selectors to be used for element locating.
void
assertAnnotationClass(array $annotations)
Asserts that required annotations are present.
Expectation
shouldReceive(string $name)
No description
Details
at line 42
__construct(Property $property, ISearchContext $search_context, AnnotationManager $annotation_manager)
Creates a new element locator.
in DefaultElementLocator at line 73
ISearchContext
getSearchContext()
Returns search context in use.
in DefaultElementLocator at line 83
NodeElement|null
find()
Find the element.
at line 62
NodeElement[]
findAll()
Find the element list.
protected array
getSelectors()
Returns final selectors to be used for element locating.
protected void
assertAnnotationClass(array $annotations)
Asserts that required annotations are present.
string
__toString()
Returns string representation of a locator.