Пример #1
0
 /**
  * Creates Element instance based on existing NodeElement instance.
  *
  * @param NodeElement  $node_element Node element.
  * @param IPageFactory $page_factory Page factory.
  *
  * @return static
  */
 public static function fromNodeElement(NodeElement $node_element, IPageFactory $page_factory = null)
 {
     $selenium_selector = array(How::XPATH => $node_element->getXpath());
     return new static($selenium_selector, $node_element->getSession());
 }