当前位置: 首页>>代码示例>>PHP>>正文


PHP AcceptanceTester::canSeeInCurrentUrl方法代码示例

本文整理汇总了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');
开发者ID:jonphipps,项目名称:Metadata-Registry,代码行数:11,代码来源:aboutCept.php

示例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');

开发者ID:jonphipps,项目名称:Metadata-Registry,代码行数:10,代码来源:vocabularyListCept.php

示例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');

开发者ID:jonphipps,项目名称:Metadata-Registry,代码行数:10,代码来源:loginCept.php

示例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');
 }
开发者ID:fritzdenim,项目名称:pangMoves,代码行数:21,代码来源:UserTestCest.php

示例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');

开发者ID:jonphipps,项目名称:Metadata-Registry,代码行数:11,代码来源:elementSetListCept.php

示例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
开发者ID:JarJak,项目名称:memy,代码行数:12,代码来源:AddMemeCept.php

示例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('欢迎赵兵登录');
开发者ID:huoybb,项目名称:movie,代码行数:12,代码来源:HomePageCept.php


注:本文中的AcceptanceTester::canSeeInCurrentUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。