seeInTitle() public method

Checks that the page title contains the given string. php seeInTitle('Blog - Post #1'); ?>
See also: Codeception\Lib\InnerBrowser::seeInTitle()
public seeInTitle ( $title ) : mixed
$title
return mixed
示例#1
0
 /**
  * Test is home available
  *
  * @param AcceptanceTester $I
  */
 public function backendLogin(AcceptanceTester $I)
 {
     $I = new WebGuy($scenario);
     $I->wantTo('see GitHub word in title ');
     $I->amOnPage('/');
     $I->seeInTitle('GitHub');
 }
示例#2
0
<?php

$I = new WebGuy($scenario);
$I->wantTo('see GitHub word in title ');
$I->amOnPage('/');
$I->seeInTitle('GitHub');