public function clickLinkInHeader(string $link)
    {
        $header_link = $this->find('css', '.page-title-action');

        if ($header_link->getText() === $link) {
            $header_link->click();
        } else {
            $this->getHeaderElement()->clickLink($link);
        }
    }
public function clickLinkInHeader(string $link)
    {
        $header_link = $this->find('css', '.page-title-action');

        if ($header_link->getText() === $link) {
            $header_link->click();
        } else {
            $this->getHeaderElement()->clickLink($link);
        }
    }
public function clickLinkInHeader ( string $ link ) { $ header_link = $ this -> find ( 'css' , '.page-title-action' ) ; if ( $ header_link -> getText ( ) === $ link ) { $ header_link -> click ( ) ; } else { $ this -> getHeaderElement ( ) -> clickLink ( $ link ) ; } }
Click a link within the page header tag.

@param string $link Link text.
Click a link within the page header tag .