本文整理汇总了PHP中AcceptanceTester::canSeeInCurrentUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP AcceptanceTester::canSeeInCurrentUrl方法的具体用法?PHP AcceptanceTester::canSeeInCurrentUrl怎么用?PHP AcceptanceTester::canSeeInCurrentUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AcceptanceTester
的用法示例。
在下文中一共展示了AcceptanceTester::canSeeInCurrentUrl方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AcceptanceTester
<?php
$I = new AcceptanceTester($scenario);
$I->wantTo('see that the about page exists');
$I->amOnPage("/");
$I->seeResponseCodeIs(200);
$I->click('about', '#header');
$I->seeResponseCodeIs(200);
$I->canSeeInCurrentUrl('about');
$I->seeInTitle('about');
示例2: AcceptanceTester
<?php
use Page\Acceptance\Home;
$I = new AcceptanceTester($scenario);
$I->wantTo('see that the vocabulary page exists');
$I->amOnPage(Home::$URL);
$I->click('//*[@id="panel_default"]/div/ul/li[2]/a');
$I->canSeeInCurrentUrl('vocabulary/list');
$I->seeInTitle('The Registry! :: Vocabularies :: List');
示例3: AcceptanceTester
<?php
use Page\Acceptance\Home;
$I = new AcceptanceTester($scenario);
$I->wantTo('see that the login page exists');
$I->amOnPage(Home::$URL);
$I->click('//*[@id="header"]/ul/li[1]/a'); //login
$I->canSeeInCurrentUrl('login');
$I->seeInTitle('The Registry! :: sign in / register');
示例4: stepCustomizer
protected function stepCustomizer(AcceptanceTester $I)
{
Debug::debug('Viewing the theme Customizer ...');
$I->canSeeInCurrentUrl('wp-admin/customize.php');
$I->waitForElementVisible('.wp-pointer', 5);
$I->canSee('Congratulations!');
$I->cantSeeElement('.change-theme');
$I->click('.wpem-pointer .button-primary');
$I->canSeeElement('#wpem-overlay');
$I->click('.wpem-overlay-control span');
$I->cantSeeElement('#wpem-overlay');
$I->click('.wpem-pointer .button-secondary');
$I->cantSeeElement('.wp-pointer');
$I->wait(1);
$I->reloadPage();
$I->waitForElementNotVisible('.wp-pointer', 5);
$I->cantSee('Congratulations!');
$I->cantSeeElement('.change-theme');
$I->canSeeSetting('wpem_done', 1);
$I->canSeeSetting('wpem_log');
}
示例5: AcceptanceTester
<?php
use Page\Acceptance\Home;
$I = new AcceptanceTester($scenario);
$I->wantTo('see that the home page exists');
$I->amOnPage(Home::$URL);
$I->seeInTitle(Home::$pageTitle);
$I->click('//*[@id="panel_default"]/div/ul/li[3]/a');
$I->canSeeInCurrentUrl('schema/list');
$I->seeInTitle('The Registry! :: Element Sets :: List');
示例6: AcceptanceTester
<?php
$I = new AcceptanceTester($scenario);
$I->wantTo('add a meme');
$I->amOnPage('/');
$I->click('Dodaj');
$I->canSeeInCurrentUrl('/dodaj');
$I->see('Dodaj mem', 'h1');
//$I->attachFile('#memy_memebundle_meme_filename', 'testmeme.jpg');
$I->click('[type=submit]');
$I->dontSee('Mem został dodany', 'h1');
//to be continued
示例7: AcceptanceTester
<?php
$I = new AcceptanceTester($scenario);
$I->wantTo('Validate the login function with zhaobing\' email and password! ');
$I->amOnPage('/');
$I->see('赵兵的电影');
$I->canSeeInCurrentUrl('/auth/login');
$I->fillField('email', 'zhaobing024@gmail.com');
$I->fillField('password', '123456');
$I->click('Login');
$I->seeCurrentUrlEquals('/movies');
$I->see('欢迎赵兵登录');