/** * Creates a new element locator. * * @param Property $property Property. * @param ISearchContext $search_context The context to use when finding the element. * @param AnnotationManager $annotation_manager Annotation manager. */ public function __construct(Property $property, ISearchContext $search_context, AnnotationManager $annotation_manager) { parent::__construct($property, $search_context, $annotation_manager); /** @var TimeoutAnnotation[] $annotations */ $annotations = $property->getAnnotationsFromPropertyOrClass('@timeout'); if ($annotations) { $this->timeout = $annotations[0]->duration; } }
/** * Creates a new element locator. * * @param Property $property Property. * @param ISearchContext $search_context The context to use when finding the element. * @param AnnotationManager $annotation_manager Annotation manager. * @param LocatorHelper $locator_helper Locator helper. */ public function __construct(Property $property, ISearchContext $search_context, AnnotationManager $annotation_manager, LocatorHelper $locator_helper) { parent::__construct($property, $search_context, $annotation_manager); $this->_helper = $locator_helper; }