public function openPath(array $path)
    {
        $context = $this->getPageTreeElement();
        foreach ($path as $pageName) {
            $context = $this->ensureTreeNodeIsOpen($pageName, $context);
        }
        $context->findElement(\WebDriverBy::cssSelector(self::$treeItemAnchorSelector))->click();
    }
public function openPath(array $path)
    {
        $context = $this->getPageTreeElement();
        foreach ($path as $pageName) {
            $context = $this->ensureTreeNodeIsOpen($pageName, $context);
        }
        $context->findElement(\WebDriverBy::cssSelector(self::$treeItemAnchorSelector))->click();
    }
public function openPath ( array $ path ) { $ context = $ this -> getPageTreeElement ( ) ; foreach ( $ path as $ pageName ) { $ context = $ this -> ensureTreeNodeIsOpen ( $ pageName , $ context ) ; } $ context -> findElement ( \ WebDriverBy :: cssSelector ( self :: $ treeItemAnchorSelector ) ) -> click ( ) ; }
Open the given hierarchical path in the pagetree and click the last page.

Example to open "styleguide -> elements basic" page:
[
'styleguide TCA demo',
'elements basic',
]

@param string[] $path
Open the given hierarchical path in the pagetree and click the last page .