/**
  * Initializes collection with a list of elements.
  *
  * @param array $elements Elements.
  */
 public function __construct(array $elements = array())
 {
     if (!$this->elementClass) {
         $this->elementClass = '\\QATools\\QATools\\HtmlElements\\Element\\AbstractTypifiedElement';
     }
     parent::__construct($elements);
 }
예제 #2
0
 /**
  * Initializes proxy for the element.
  *
  * @param IElementLocator $locator      Element selector.
  * @param IPageFactory    $page_factory Page factory.
  */
 public function __construct(IElementLocator $locator, IPageFactory $page_factory = null)
 {
     $this->locator = $locator;
     $this->pageFactory = $page_factory;
     parent::__construct();
 }
예제 #3
0
 public function __construct(array $elements = array())
 {
     $this->elementClass = '\\tests\\QATools\\QATools\\PageObject\\Element\\NodeElementAwareClass';
     parent::__construct($elements);
 }