如果页面有元标记,如何使用 Codeception 进行测试?

How to test with Codeception if the page has meta-tag?

例如确保

<meta name="robots" content="noindex" />

页面上不存在。

$I->wantTo('Check that page can be indexed');
$I->amOnPage('/');
$I->dontSeeInPageSource('<meta name="robots" content="noindex" />');

但它 returns 错误

Call to undefined method WebGuy::dontSeeInPageSource

$I->dontSeeElement('meta[name=robots]');

测试它没有标签:

$I->dontSeeElementInDOM('meta[name=robots]');

要测试它是否有标签:

$I->seeElementInDOM('meta[name=robots]');