/**
  * Initializes collection with a list of elements.
  *
  * @param array $elements Elements.
  */
 public function __construct(array $elements = array())
 {
     if (!$this->elementClass) {
         $this->elementClass = '\\aik099\\QATools\\PageObject\\Element\\WebElement';
     }
     parent::__construct($elements);
 }
 /**
  * Initializes collection with a list of elements.
  *
  * @param array $elements Elements.
  */
 public function __construct(array $elements = array())
 {
     if (!$this->elementClass) {
         $this->elementClass = '\\aik099\\QATools\\HtmlElements\\Element\\AbstractTypifiedElement';
     }
     parent::__construct($elements);
 }
 public function __construct(array $elements = array())
 {
     $this->elementClass = '\\tests\\aik099\\QATools\\PageObject\\Element\\NodeElementAwareClass';
     parent::__construct($elements);
 }
Esempio n. 4
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();
 }