/**
  * Initializes html element.
  *
  * @param array        $selenium_selector Element selector.
  * @param IPageFactory $page_factory      Page factory.
  */
 public function __construct(array $selenium_selector, IPageFactory $page_factory)
 {
     parent::__construct($selenium_selector, $page_factory->getSession());
     $this->_pageFactory = $page_factory;
     $this->_pageFactory->initElementContainer($this);
     $this->_pageFactory->initElements($this, $this->_pageFactory->createDecorator($this));
 }
예제 #2
0
 /**
  * Initialize the page.
  *
  * @param IPageFactory $page_factory Page factory.
  */
 public function __construct(IPageFactory $page_factory)
 {
     parent::__construct($page_factory->getSession());
     $page_factory->initPage($this)->initElements($this, $page_factory->createDecorator($this));
 }