TypifiedPageFactory
class TypifiedPageFactory extends PageFactory (View source)
Factory class to make using Page Objects simpler and easier.
Properties
private Session | $_session | Instance of Mink session. | from PageFactory |
protected AnnotationManager | $annotationManager | Annotation manager. | from PageFactory |
protected array | $annotationRegistry | Supported annotation class map. | from PageFactory |
protected IUrlFactory | $urlFactory | The url builder factory. | from PageFactory |
protected Normalizer | $urlNormalizer | The url normalizer. | from PageFactory |
protected IPageLocator | $pageLocator | The page locator. | from PageFactory |
protected PageUrlMatcherRegistry | $pageUrlMatcherRegistry | The page url matcher registry. | from PageFactory |
protected IConfig | $config | The current config. | from PageFactory |
Methods
Creates TypifiedPageFactory instance.
Sets annotation manager.
Initializes elements in given search context.
Initializes fields within given search context.
Returns class properties, that can potentially become proxies.
Details
at line 36
__construct(Session $session, Container|Config|null $container_or_config = null)
Creates TypifiedPageFactory instance.
in PageFactory at line 138
private Container
_createContainer(Config $config = null)
Creates containerorconfig object.
in PageFactory at line 156
private PageFactory
_setAnnotationManager(AnnotationManager $manager)
Sets annotation manager.
at line 50
IPropertyDecorator
createDecorator(ISearchContext $search_context)
Creates default decorator.
in PageFactory at line 188
private PageFactory
_setSession(Session $session)
Sets session.
in PageFactory at line 206
Session
getSession()
Returns session.
in PageFactory at line 218
IPageFactory
initPage(Page $page)
Initializes the page.
in PageFactory at line 243
boolean
opened(Page $page)
Checks if the given page is currently opened in browser.
in PageFactory at line 255
IPageFactory
initElementContainer(IElementContainer $element_container)
Initializes AbstractElementContainer.
in PageFactory at line 268
IPageFactory
initElements(ISearchContext $search_context, IPropertyDecorator $property_decorator)
Initializes elements in given search context.
in PageFactory at line 281
protected PageFactory
proxyFields(ISearchContext $search_context, IPropertyDecorator $property_decorator)
Initializes fields within given search context.
in PageFactory at line 302
protected Property[]
getProperties(ISearchContext $search_context)
Returns class properties, that can potentially become proxies.
in PageFactory at line 321
Page
getPage(string $class_name)
Creates page by given class name.