library/QATools/QATools/HtmlElements/Element/AbstractElementContainer.php
public static function fromNodeElement(NodeElement $node_element, IPageFactory $page_factory)
	{
		$wrapped_element = WebElement::fromNodeElement($node_element, $page_factory);

		return new static($wrapped_element, $page_factory);
	}
public static function fromNodeElement(NodeElement $node_element, IPageFactory $page_factory)
	{
		$wrapped_element = WebElement::fromNodeElement($node_element, $page_factory);

		return new static($wrapped_element, $page_factory);
	}
public static function fromNodeElement ( NodeElement $ node_element , IPageFactory $ page_factory ) { $ wrapped_element = WebElement :: fromNodeElement ( $ node_element , $ page_factory ) ; return new static ( $ wrapped_element , $ page_factory ) ; }
Creates Element instance based on existing NodeElement instance.

@param NodeElement  $node_element Node element.
@param IPageFactory $page_factory Page factory.

@return static
Creates Element instance based on existing NodeElement instance .