[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/tests/behat/ -> behat_navigation.php (summary)

Navigation steps definitions.

Copyright: 2012 David Monllaó
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 418 lines (18 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/behat_base.php

Defines 1 class

behat_navigation:: (10 methods):
  get_node_text_node()
  navigation_node_should_be_expandable()
  navigation_node_should_not_be_expandable()
  i_follow_in_the_user_menu()
  i_expand_node()
  i_collapse_node()
  i_navigate_to_node_in()
  get_top_navigation_node()
  get_navigation_node()
  get_expand_navbar_step()


Class: behat_navigation  - X-Ref

Steps definitions to navigate through the navigation tree nodes.

get_node_text_node($text, $branch = false, $collapsed = null, $exception = null)   X-Ref
Helper function to get a navigation nodes text element given its text from within the navigation block.

This function finds the node with the given text from within the navigation block.
It checks to make sure the node is visible, and then returns it.

param: string $text
param: bool $branch Set this true if you're only interested in the node if its a branch.
param: null|bool $collapsed Set this to true or false if you want the node to either be collapsed or not.
param: null|string|Exception|false $exception The exception to throw if the node is not found.
return: \Behat\Mink\Element\NodeElement

navigation_node_should_be_expandable($nodetext)   X-Ref
Returns true if the navigation node with the given text is expandable.

param: string $nodetext
return: bool

navigation_node_should_not_be_expandable($nodetext)   X-Ref
Returns true if the navigation node with the given text is not expandable.

param: string $nodetext
return: bool

i_follow_in_the_user_menu($nodetext)   X-Ref
Click on an entry in the user menu.

param: string $nodetext

i_expand_node($nodetext)   X-Ref
Expands the selected node of the navigation tree that matches the text.

param: string $nodetext
return: bool|void

i_collapse_node($nodetext)   X-Ref
Collapses the selected node of the navigation tree that matches the text.

param: string $nodetext
return: bool|void

i_navigate_to_node_in($nodetext, $parentnodes)   X-Ref
Click link in navigation tree that matches the text in parentnode/s (seperated using greater-than character if more than one)

param: string $nodetext navigation node to click.
param: string $parentnodes comma seperated list of parent nodes.
return: void

get_top_navigation_node($nodetext)   X-Ref
Helper function to get top navigation node in tree.

param: string $nodetext name of top navigation node in tree.
return: NodeElement

get_navigation_node($nodetext, $parentnode = null)   X-Ref
Helper function to get sub-navigation node.

param: string $nodetext node to find.
param: NodeElement $parentnode parent navigation node.
return: NodeElement.

get_expand_navbar_step()   X-Ref
Step to open the navigation bar if it is needed.

The top log in and log out links are hidden when middle or small
size windows (or devices) are used. This step returns a step definition
clicking to expand the navbar if it is hidden.




Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1