DefaultElementLocator
class DefaultElementLocator implements IElementLocator (View source)
Class, that locates WebElements.
Properties
protected ISearchContext | $searchContext | Search context. | |
protected AnnotationManager | $annotationManager | Annotation manager. | |
protected Property | $property | Property. |
Methods
__construct(Property $property, ISearchContext $search_context, AnnotationManager $annotation_manager)
Creates a new element locator.
getSearchContext()
Returns search context in use.
NodeElement|null
find()
Find the element.
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.
string
__toString()
Returns string representation of a locator.
Expectation
shouldReceive(string $name)
No description
Details
at line 58
__construct(Property $property, ISearchContext $search_context, AnnotationManager $annotation_manager)
Creates a new element locator.
at line 73
ISearchContext
getSearchContext()
Returns search context in use.
at line 83
NodeElement|null
find()
Find the element.
at line 96
NodeElement[]
findAll()
Find the element list.
at line 126
protected array
getSelectors()
Returns final selectors to be used for element locating.
at line 151
protected void
assertAnnotationClass(array $annotations)
Asserts that required annotations are present.
at line 173
string
__toString()
Returns string representation of a locator.