當前位置: 首頁>>代碼示例>>PHP>>正文


PHP WebGuy::see方法代碼示例

本文整理匯總了PHP中WebGuy::see方法的典型用法代碼示例。如果您正苦於以下問題:PHP WebGuy::see方法的具體用法?PHP WebGuy::see怎麽用?PHP WebGuy::see使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在WebGuy的用法示例。


在下文中一共展示了WebGuy::see方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: gebruikerKoppelenAanCursus

 /**
  * Test for requirement 130 of SLC
  * @param  WebGuy $I [description]
  */
 public function gebruikerKoppelenAanCursus(\WebGuy $I)
 {
     $I->amOnPage('/login');
     $I->see('Uren');
     $I->fillField('Username', 'slc');
     $I->fillField('Password', 'slc');
     $I->click('Login');
     $I->amOnPage('/slc/3');
     $I->amOnPage('/slc/3/course/students/1');
     $I->click('Voeg toe');
     $I->amOnPage('/slc/3/course/students/1');
     $I->see('student');
 }
開發者ID:jkaan,項目名稱:Time-Registration,代碼行數:17,代碼來源:SLCCest.php

示例2: profielInzienStudent

 /**
  * Test for requirement 50 of student
  * @param  WebGuy $I [description]
  * @return [type]    [description]
  */
 public function profielInzienStudent(\WebGuy $I)
 {
     $I->amOnPage('/login');
     $I->see('Uren');
     $I->fillField('Username', 'student');
     $I->fillField('Password', 'student');
     $I->click('Login');
     $I->amOnPage('/student/1');
     $I->see('Student Page');
     $I->wantTo('Profiel Inzien');
     $I->click('Profiel');
     $I->amOnPage('/student/1/profiel');
     $I->see('student');
     $I->see('I12R');
 }
開發者ID:jkaan,項目名稱:Time-Registration,代碼行數:20,代碼來源:StudentCest.php

示例3: WebGuy

<?php

$I = new WebGuy($scenario);
$I->wantTo('ensure that contact works');
$I->amOnPage('?r=site/contact');
$I->see('Contact', 'h1');
$I->submitForm('#contact-form', []);
$I->see('Contact', 'h1');
$I->see('Name cannot be blank');
$I->see('Email cannot be blank');
$I->see('Subject cannot be blank');
$I->see('Body cannot be blank');
$I->see('The verification code is incorrect');
$I->submitForm('#contact-form', ['ContactForm[name]' => 'tester', 'ContactForm[email]' => 'tester.email', 'ContactForm[subject]' => 'test subject', 'ContactForm[body]' => 'test content', 'ContactForm[verifyCode]' => 'testme']);
$I->dontSee('Name cannot be blank', '.help-inline');
$I->see('Email is not a valid email address.');
$I->dontSee('Subject cannot be blank', '.help-inline');
$I->dontSee('Body cannot be blank', '.help-inline');
$I->dontSee('The verification code is incorrect', '.help-inline');
$I->submitForm('#contact-form', ['ContactForm[name]' => 'tester', 'ContactForm[email]' => 'tester@example.com', 'ContactForm[subject]' => 'test subject', 'ContactForm[body]' => 'test content', 'ContactForm[verifyCode]' => 'testme']);
$I->dontSeeElement('#contact-form');
$I->see('Thank you for contacting us. We will respond to you as soon as possible.');
開發者ID:pathman,項目名稱:yii-basic,代碼行數:22,代碼來源:ContactCept.php

示例4: WebGuy

<?php

$I = new WebGuy($scenario);
$I->wantTo('Ensure the subject page work');
$I->amOnPage('/leerjaar/1/onderwerp/3');
$I->see('PLAATJES');
$I->see('Categorie: Plaatjes');
$I->see('Test Plaatje 3');
$I->see('Test Plaatje 4');
開發者ID:jkaan,項目名稱:Prince2-App,代碼行數:9,代碼來源:SubjectPageCept.php

示例5: WebGuy

<?php

$I = new WebGuy($scenario);
include 'constant.php';
$I->wantTo('Register new user');
$I->amOnPage("/");
$I->see('Registration');
$I->see('Login');
$I->see('Genre');
$I->see('Stations');
$I->click(Registration::$registrationlink);
$I->waitForText('Sign Up');
$I->see('Sign Up');
$I->seeElement(Registration::$username);
$I->seeElement(Registration::$emailField);
$I->seeElement(Registration::$passwordField);
$I->seeElement(Registration::$confirmPasswordField);
$I->seeElement(Registration::$registrationButton);
$I->fillField(Registration::$username, $username);
$I->fillField(Registration::$emailField, $email);
$I->fillField(Registration::$passwordField, $pass);
$I->fillField(Registration::$confirmPasswordField, $pass_conf);
$I->click(Registration::$registrationButton);
開發者ID:unlimUA,項目名稱:Codeception,代碼行數:23,代碼來源:registrationCept.php

示例6: WebGuy

<?php

/**
 * DefaultController Test
 *
 * @var $scenario \Codeception\Scenario
 *
 * @author Brett O'Donnell <cornernote@gmail.com>
 * @author Zain Ul abidin <zainengineer@gmail.com>
 * @copyright 2013 Mr PHP
 * @link https://github.com/cornernote/yii-email-module
 * @license BSD-3-Clause https://raw.github.com/cornernote/yii-email-module/master/LICENSE
 *
 * @package yii-email-module
 */
$I = new WebGuy($scenario);
$I->wantTo('ensure DefaultController works');
$I->amOnPage('email');
$I->see('You may use the following tools');
$I->click('Spool');
$I->see('Spools');
$I->click('Template');
$I->see('Templates');
$I->click('Email');
$I->see('You may use the following tools');
開發者ID:Khan143,項目名稱:yii-email-module,代碼行數:25,代碼來源:DefaultControllerCept.php

示例7: WebGuy

<?php

$I = new WebGuy($scenario);
$I->wantTo('base check rsg2-latest-images for picture ');
// Direct call
//$I->amOnPage('http://127.0.0.1/Joomla3x/index.php/rsg2-image-wall');
$I->amOnPage('/index.php/rsg2-image-wall');
$I->makeScreenshot('base-rsg2-image-wall');
// Where i want to be
$I->see('RSG2 image wall');
開發者ID:RSGallery2,項目名稱:RoboLiTasks,代碼行數:10,代碼來源:BaseViewImageWallCept.php

示例8: WebGuy

<?php

$I = new WebGuy($scenario);
/* Vendor login with wrong password fails */
$I->amOnPage('/signin');
$I->fillField('email', 'vendor1@example.com');
$I->fillField('password', 'wrongpassword');
$I->click('button.btn');
$I->see('Login incorrect', '.alert');
$I = new WebGuy($scenario);
/* Vendor login succeeds */
$I->fillField('email', 'vendor1@example.com');
$I->fillField('password', 'password');
$I->click('button.btn');
$I->see('Projects', 'h4');
/* Signout works */
$I->click('Sign Out');
$I->see('RFP-EZ Marketplace');
/* Officer login wrong password fails */
$I->amOnPage('/signin');
$I->fillField('email', 'officer1@example.gov');
$I->fillField('password', 'wrongpassword');
$I->click('button.btn');
$I->see('Login incorrect', '.alert');
/* Then officer login works */
$I->fillField('email', 'officer1@example.gov');
$I->fillField('password', 'password');
$I->click('button.btn');
$I->see('My Projects', 'h4');
開發者ID:ajb,項目名稱:rfpez,代碼行數:29,代碼來源:LoginCept.php

示例9: WebGuy

<?php

$I = new WebGuy($scenario);
$I->wantTo('ensure that about works');
$I->amOnPage('?r=site/about');
$I->see('About', 'h1');
開發者ID:pathman,項目名稱:yii-basic,代碼行數:6,代碼來源:AboutCept.php

示例10: WebGuy

$I->fillField("bid[previous_work]", "Previous work.");
$I->fillField("bid[employee_details]", "Employee details.");
$I->click("Submit Bid");
$I->see("Thanks for submitting your bid.");
$I->see("Approach.", 'p');
$I->see("Previous work.", 'p');
$I->see("Employee details.", 'p');
$I->click("Sign Out");
/** Officer Sanity **/
$I = new WebGuy($scenario);
$I->amOnPage('/signin');
/* Officer login succeeds */
$I->fillField('email', 'officer1@example.gov');
$I->fillField('password', 'password');
$I->click('button.btn');
$I->see('My Projects', 'h4');
$I->amOnPage("/notifications");
$I->see("{$vendorName} has submitted a bid", ".line1");
$I->click("submitted a bid");
$I->see("Bid from", "h1");
$I->click("(view profile)");
$I->see("Contact Name");
$I->see("SAM.gov");
$I->see("DSBS");
$I->click('Projects');
$I->see('My Projects', 'h4');
$I->click('API for SBA.gov Dynamic Small Business Search');
$I->see('Bids awaiting review', 'h5');
$I->see($vendorName, '.bid[data-vendor-company-name=' . $vendorName . ']');
$I->click('a[href*=comments]');
$I->see('Add Comment', 'h5');
開發者ID:ajb,項目名稱:rfpez,代碼行數:31,代碼來源:SanityCept.php

示例11: WebGuy

<?php

/**
 * AuditFieldController Test
 *
 * @var $scenario \Codeception\Scenario
 *
 * @author Brett O'Donnell <cornernote@gmail.com>
 * @author Zain Ul abidin <zainengineer@gmail.com>
 * @copyright 2013 Mr PHP
 * @link https://github.com/cornernote/yii-audit-module
 * @license BSD-3-Clause https://raw.github.com/cornernote/yii-audit-module/master/LICENSE
 *
 * @package yii-audit-module
 */
$I = new WebGuy($scenario);
$I->wantTo('ensure AuditFieldController works');
$I->amOnPage('audit/field/index');
$I->see('Fields');
$I->see('Search');
開發者ID:Horlacher,項目名稱:yii-audit-module,代碼行數:20,代碼來源:AuditFieldControllerCept.php

示例12: WebGuy

 *
 * @var $scenario \Codeception\Scenario
 *
 * @author Brett O'Donnell <cornernote@gmail.com>
 * @author Zain Ul abidin <zainengineer@gmail.com>
 * @copyright 2013 Mr PHP
 * @link https://github.com/cornernote/yii-account-module
 * @license BSD-3-Clause https://raw.github.com/cornernote/yii-account-module/master/LICENSE
 *
 * @package yii-account-module
 */
$I = new WebGuy($scenario);
$I->wantTo('ensure AccountAccountController update works');
// check we are not logged in
$I->amOnPage('/');
$I->see('Hello guest');
// login
$I->amOnPage('/account/account/login');
$I->fillField('AccountLogin_username', 'admin');
$I->fillField('AccountLogin_password', 'admin');
$I->click('Login');
$I->see('You have successfully logged in.');
// update details with empty fields
$I->amOnPage('/account/account/update');
$I->fillField('AccountUpdate_first_name', '');
$I->fillField('AccountUpdate_last_name', '');
$I->fillField('AccountUpdate_email', '');
$I->fillField('AccountUpdate_username', '');
$I->click('Save');
$I->see('Please fix the following input errors:');
$I->see('Email cannot be blank.');
開發者ID:cornernote,項目名稱:yii-account-module,代碼行數:31,代碼來源:AccountAccountControllerUpdateCept.php

示例13: WebGuy

<?php

$I = new WebGuy($scenario);
$I->wantTo('be denied "publish" permissions on Pages as pagewriter user');
$I->loginAs($users['pagewriter']);
$I->see('New Page');
$I->click('New Page');
$I->see('Actions for this Page');
$I->fillField('title', 'A page I made');
$I->fillField('teaser', 'Woop woop woop! Crazy nice stuff inside!');
$I->fillField('body', 'Take it, take it! I have three more of these!');
// make sure the page cannot be published by setting its status in the
// edit form
$I->dontSeeInField('status', 'Published');
// let's save this page anyway, because we'll be needing it...
$I->click('Save Page');
// also check that the "publish page" context menu option isn't shown
$I->amOnPage('bolt');
$I->dontSee('Publish Page');
開發者ID:Hoplite-Software,項目名稱:observatory,代碼行數:19,代碼來源:012-pagesEditorCannotPublishPagesCept.php

示例14: WebGuy

<?php

/**
 *
 * @var $scenario \Codeception\Scenario
 *
 * @author Brett O'Donnell <cornernote@gmail.com>
 * @author Zain Ul abidin <zainengineer@gmail.com>
 * @copyright 2013 Mr PHP
 * @link https://github.com/cornernote/yii-audit-module
 * @license BSD-3-Clause https://raw.github.com/cornernote/yii-audit-module/master/LICENSE
 *
 * @package yii-audit-module
 */
$I = new WebGuy($scenario);
$I->wantTo('ensure undefined variable is caught');
$I->amOnPage('site/undefinedVariable');
$I->see('PHP notice');
$I->see('Undefined variable: undefined_variable');
$I->canSeeInDatabase('audit_error', array('code' => '500', 'type' => 'PHP notice', 'message' => 'Undefined variable: undefined_variable'));
開發者ID:Horlacher,項目名稱:yii-audit-module,代碼行數:20,代碼來源:AuditErrorHandlerUndefinedVariableCept.php

示例15: WebGuy

 *
 * @var $scenario \Codeception\Scenario
 *
 * @author Brett O'Donnell <cornernote@gmail.com>
 * @author Zain Ul abidin <zainengineer@gmail.com>
 * @copyright 2013 Mr PHP
 * @link https://github.com/cornernote/yii-account-module
 * @license BSD-3-Clause https://raw.github.com/cornernote/yii-account-module/master/LICENSE
 *
 * @package yii-account-module
 */
$I = new WebGuy($scenario);
$I->wantTo('ensure AccountAccountController sign up works');
// check we are not logged in
$I->amOnPage('/');
$I->see('Hello guest');
// check the form is there
$I->amOnPage('/account/account/signUp');
$I->see('First Name');
$I->see('Last Name');
$I->see('Email');
$I->see('Username');
$I->see('Password');
$I->see('Confirm Password');
// signup with empty details
$I->amOnPage('/account/account/signUp');
$I->click('Sign Up');
$I->see('Please fix the following input errors:');
$I->see('Email cannot be blank.');
$I->see('First Name cannot be blank.');
$I->see('Username cannot be blank.');
開發者ID:cornernote,項目名稱:yii-account-module,代碼行數:31,代碼來源:AccountAccountControllerSignUpCept.php


注:本文中的WebGuy::see方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。