TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
PageTree Class Reference

Public Member Functions

 __construct (\AcceptanceTester $I)
 
 openPath (array $path)
 
 getPageTreeElement ()
 

Static Public Attributes

static $pageTreeFrameSelector = '#typo3-pagetree'
 
static $pageTreeSelector = '#typo3-pagetree-treeContainer'
 
static $treeItemSelector = '.x-tree-node-ct > .x-tree-node'
 
static $treeItemAnchorSelector = '.x-tree-node-anchor'
 

Protected Attributes

 $tester
 

Detailed Description

Helper class to interact with the page tree

Definition at line 24 of file PageTree.php.

Constructor & Destructor Documentation

__construct ( \AcceptanceTester  $I)
Parameters
AcceptanceTester$I

Definition at line 40 of file PageTree.php.

Member Function Documentation

getPageTreeElement ( )

Check if the pagetree is visible end return the web element object

Returns
RemoteWebElement

Definition at line 70 of file PageTree.php.

References PageTree\$tester.

Referenced by PageTree\openPath().

openPath ( array  $path)

Open the given hierarchical path in the pagetree and click the last page.

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

Parameters
string[]$path

Definition at line 56 of file PageTree.php.

References PageTree\getPageTreeElement().

Referenced by ElementsGroupCest\_before(), Inline1nCest\_before(), and ElementsBasicCest\_before().

Member Data Documentation

$pageTreeFrameSelector = '#typo3-pagetree'
static

Definition at line 27 of file PageTree.php.

$pageTreeSelector = '#typo3-pagetree-treeContainer'
static

Definition at line 28 of file PageTree.php.

$tester
protected

Definition at line 35 of file PageTree.php.

Referenced by PageTree\getPageTreeElement().

$treeItemAnchorSelector = '.x-tree-node-anchor'
static

Definition at line 30 of file PageTree.php.

$treeItemSelector = '.x-tree-node-ct > .x-tree-node'
static

Definition at line 29 of file PageTree.php.