public function clickAdminMenu( $menu, $parent = null ) {
		if ( $parent ) {
			$this->click( $parent, '#adminmenu' );
		}
		
		$this->click( $menu, '#adminmenu' );
	}
public function clickAdminMenu( $menu, $parent = null ) {
		if ( $parent ) {
			$this->click( $parent, '#adminmenu' );
		}
		
		$this->click( $menu, '#adminmenu' );
	}
public function clickAdminMenu ( $ menu , $ parent = null ) { if ( $ parent ) { $ this -> click ( $ parent , '#adminmenu' ) ; } $ this -> click ( $ menu , '#adminmenu' ) ; }
Clicks admin menu item. Since we are using a WebDriver the first click on
a parent element will lead to opening a submenu group. So if we need to
click on submenu item, we need to do it in two steps.

@since 1.0.0

@access public
@param string $menu The menu item to click on.
@param string $parent The parent menu item to click on first.
Clicks admin menu item . Since we are using a WebDriver the first click on a parent element will lead to opening a submenu group . So if we need to click on submenu item we need to do it in two steps .