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


PHP WebGuy::fillField方法代碼示例

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


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

示例1: testGoogleSearchResults

 /**
  * Executes a search on Google's home page using return key.
  *
  * @covers SauceExtension
  */
 public function testGoogleSearchResults()
 {
     $this->webGuy->am('Anonymous User');
     $this->webGuy->wantTo('execute search on home page');
     $this->webGuy->amOnPage('/');
     $this->webGuy->canSeeInTitle('Google');
     $this->webGuy->fillField('#gbqfq', 'dogecoin');
     $this->webGuy->pressKey('#gbqfq', WebDriverKeys::ENTER);
     $this->webGuy->canSeeInField('input#gbqfq', 'dogecoin');
     $this->webGuy->canSeeInTitle('dogecoin - Google Search');
 }
開發者ID:psychomieze,項目名稱:sauceextension,代碼行數:16,代碼來源:GoogleTest.php

示例2: 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

示例3: WebGuy

<?php

$I = new WebGuy($scenario);
$I->wantTo('log in');
$I->amOnPage('users/login');
$I->fillField('email', 'admin@example.com');
$I->fillField('password', 'admin');
$I->click('button[type=submit]');
$I->dontSeeInCurrentUrl('users/login');
開發者ID:Ayoubblog,項目名稱:TypiCMS,代碼行數:9,代碼來源:LoginCept.php

示例4: WebGuy

<?php

/**
* Testing /clients/create form
* For now do not tests all fields in Form.
**/
$I = new WebGuy($scenario);
$I->wantTo('Test Form:New Client. /clients/create');
$I->amOnPage('/');
$I->click('#startButton');
$I->amOnPage('/clients/create');
$I->click('Add contact');
$I->fillField('input#email0', 'SomeTestEmalThatWillBeDeleted@mail.com');
$I->fillField('input#email1', 'some.test.email@gmail.com');
$I->click('Remove contact');
$I->click('Add contact');
$I->fillField('input#email1', 'AZXC123Q.test2009test@yandex2.com');
$I->seeInField('input#email0', 'some.test.email@gmail.com');
$I->seeInField('input#email1', 'AZXC123Q.test2009test@yandex2.com');
//-----------Fields done-----
//add more fields
$I->fillField('input#name', 'Some User');
$I->fillField('input#website', 'http://google.com');
$I->fillField('input#work_phone', '+308123456789');
$I->fillField('input#address1', 'Test Address 1');
$I->fillField('input#address2', 'Test Address 2 APPTMT SUITE');
$I->fillField('input#city', 'Zaporozhe');
$I->fillField('input#state', 'Test Province');
$I->fillField('input#postal_code', 'postcode 123455677');
$option = 'Net 7';
$I->selectOption("#payment_terms", $option);
開發者ID:poseidonjm,項目名稱:invoice-ninja,代碼行數:31,代碼來源:CheckCreateNewClientFormCept.php

示例5: WebGuy

<?php

$I = new WebGuy($scenario);
include 'constant.php';
$I->wantTo('Reset my password');
$I->amOnPage('/');
$I->click(LoginPopUp::$loginPopup);
$I->waitForText('Create account');
$I->click(ForgotPopUp::$passwordLink);
$I->waitForText('Forgot password');
$I->wait(1);
$I->waitForElement(ForgotPopUp::$emailField);
$I->seeElement(ForgotPopUp::$emailField);
$I->seeElement(ForgotPopUp::$resetButton);
$I->fillField(ForgotPopUp::$emailField, $email);
$I->click(ForgotPopUp::$resetButton);
$I->waitForText('Reset password link was sent on your e-mail address');
開發者ID:unlimUA,項目名稱:Codeception,代碼行數:17,代碼來源:forgotPassCept.php

示例6: WebGuy

<?php

$I = new WebGuy($scenario);
$I->wantTo('create and edit 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!');
$I->click('Save Page');
$I->see('A page I made');
$I->see('Woop woop woop');
開發者ID:ArdKuijpers,項目名稱:bolt,代碼行數:14,代碼來源:010-pagesEditorCanEditPagesCept.php

示例7: WebGuy

 * @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.');
$I->see('Username cannot be blank.');
$I->see('First Name cannot be blank.');
// update details with invalid email
開發者ID:cornernote,項目名稱:yii-account-module,代碼行數:31,代碼來源:AccountAccountControllerUpdateCept.php

示例8: array

<?php

$foobar = array('username' => 'foobar', 'password' => 'foobar123');
$I = new WebGuy($scenario);
$I->wantTo('Create a user');
$I->loginAs($users['admin']);
$I->click('Users');
$I->click('New user');
$I->see("Create a new user");
$I->fillField('form[username]', $foobar['username']);
$I->fillField('form[password]', $foobar['password']);
$I->fillField('form[password_confirmation]', $foobar['password']);
$I->fillField('form[email]', 'foobar@example.org');
$I->fillField('form[displayname]', 'Foo Bar');
$I->click('input[type=submit]');
$I->see("has been saved");
$I->click('Logout');
$I->loginAs($foobar);
$I->see('Dashboard');
開發者ID:ArdKuijpers,項目名稱:bolt,代碼行數:19,代碼來源:510-createUserAsAdminCept.php

示例9: WebGuy

<?php

$I = new WebGuy($scenario);
$WP = new wordpress_controller($I);
$I->wantTo('Test the Authentication Plugin');
$WP->admin_login('admin', 'password');
$I->resizeWindow(1280, 1024);
$I->see('Dashboard');
$WP->enable_plugins($plugins);
$WP->logout();
foreach ($affiliates as $a) {
    $I->amGoingTo('Input settings for the base plugin');
    $WP->admin_login();
    $I->amOnPage($plugins['base']['admin_page']);
    // Fill out the form
    $I->fillField('agora_core_framework_config[prod_token]', $mw_settings[$a]['prod_token']);
    $I->fillField('agora_core_framework_config[uat_token]', $mw_settings[$a]['uat_token']);
    $I->click('Save');
    $I->amGoingTo('Configure some Authcodes');
    $I->amOnPage($plugins['auth']['admin_page']);
    $I->see('Add new Authentication Code');
    foreach ($pubcodes[$a] as $authcode) {
        $I->fillField('#add_new_authcode .authcode_name', $authcode['name']);
        $I->fillField('#add_new_authcode .authcode_advantage_code', $authcode['advantage_code']);
        $I->fillField('#add_new_authcode .authcode_description', $authcode['description']);
        $I->selectOption('#add_new_authcode .authcode_type', $authcode['auth_type']);
        $I->click('Add New', '#add_new_authcode');
        $I->waitForJS('return jQuery.active == 0', 5);
        $I->see($authcode['description']);
    }
    $I->amGoingTo('Insert some Test Content');
開發者ID:gargallo,項目名稱:tfs-test,代碼行數:31,代碼來源:AuthPluginCept.php

示例10: WebGuy

 * @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 change password 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.');
// change password with empty fields
$I->amOnPage('/account/account/password');
$I->fillField('AccountChangePassword_current_password', '');
$I->fillField('AccountChangePassword_new_password', '');
$I->fillField('AccountChangePassword_confirm_password', '');
$I->click('Save');
$I->see('Please fix the following input errors:');
$I->see('Current Password cannot be blank.');
$I->see('New Password cannot be blank.');
$I->see('Confirm Password cannot be blank.');
// change password with incorrect current password
$I->amOnPage('/account/account/password');
開發者ID:cornernote,項目名稱:yii-account-module,代碼行數:31,代碼來源:AccountAccountControllerChangePasswordCept.php

示例11: WebGuy

<?php

$I = new WebGuy($scenario);
$I->wantTo('click invoice now');
$I->amOnPage('/');
$I->click('#startButton');
$I->seeInDatabase('users', ['id' => 1]);
$I->wantTo('create a client');
$I->click('#createClientLink');
$I->fillField('input#email', 'test@aol.com');
$I->click('#clientDoneButton');
$I->click('#saveButton');
$I->seeInDatabase('contacts', ['email' => 'test@aol.com']);
$I->seeInField('input#email', 'test@aol.com');
開發者ID:poseidonjm,項目名稱:invoice-ninja,代碼行數:14,代碼來源:WelcomeCept.php

示例12: WebGuy

<?php

$I = new WebGuy($scenario);
use Codeception\Util\Locator;
$I->wantTo('sing in google');
$I->amOnPage('/');
$I->see('Увійти');
$I->click('Увійти');
$I->appendField('#Email', 'anton.sylantiev');
$I->seeInField('#Email', 'anton.sylantiev');
$I->see('Один обліковий запис. Усі сервіси Google.');
$I->see('Один обліковий запис Google для всіх служб Google');
$I->seeLink('Потрібна допомога?');
$I->see('Створити обліковий запис');
$I->seeElement("//*[@id='next']");
$I->click('Далі');
$I->seeCheckboxIsChecked('#PersistentCookie');
$I->see('Забули пароль?');
include 'const.php';
$I->fillField('Пароль', $pass);
$I->see('Увійти');
$I->click('Увійти');
$I->see('Anton');
$I->click(".//*[@id='gbw']/div/div/div[2]/div[4]/div[1]/a/span");
$I->see('Anton Sylantiev');
$I->see('anton.sylantiev@gmail.com');
開發者ID:unlimUA,項目名稱:Codeception,代碼行數:26,代碼來源:googleCept.php

示例13: WebGuy

<?php

$I = new WebGuy($scenario);
include 'constant.php';
$I->wantTo('Login to muzza.life');
$I->amOnPage(LoginPopUp::$URL);
$I->click(LoginPopUp::$loginPopup);
$I->waitForText(LoginPopUp::$createAccountLink);
$I->see(LoginPopUp::$createAccountLink);
$I->see(LoginPopUp::$createAccountLink);
$I->seeElement(LoginPopUp::$emailField);
$I->seeElement(LoginPopUp::$passwordField);
$I->seeElement(LoginPopUp::$loginButton);
$I->fillField(LoginPopUp::$emailField, $email);
$I->fillField(LoginPopUp::$passwordField, $pass);
$I->click(LoginPopUp::$loginButton);
$I->waitForText($username);
$I->wait(3);
///
開發者ID:unlimUA,項目名稱:Codeception,代碼行數:19,代碼來源:loginCept.php

示例14: gebruikersProfielInzien

 /**
  * Test for requirement 90 of docent
  * @param  WebGuy $I [description]
  * @return [type]    [description]
  */
 public function gebruikersProfielInzien(\WebGuy $I)
 {
     $I->wantTo('Gebruikers profiel inzien');
     $I->amOnPage('/login');
     $I->see('Uren');
     $I->fillField('Username', 'docent');
     $I->fillField('Password', 'docent');
     $I->click('Login');
     $I->amOnPage('/docent/2');
     $I->see('Docent Page');
     $I->click('Gebruikersbeheer');
     $I->amOnPage('/docent/2/gebruikers');
     $I->amOnPage('/docent/2/gebruikers/1');
     $I->see('Student');
     $I->see('10');
     $I->see('student@student.nl');
     $I->see('I12R');
 }
開發者ID:jkaan,項目名稱:Time-Registration,代碼行數:23,代碼來源:DocentCest.php

示例15: WebGuy

<?php

$I = new WebGuy($scenario);
include 'constant.php';
$I->wantTo('Check My mail Box');
$I->amOnUrl('http://temp-mail.ru/option/change');
$I->fillField('//*[@id="input_mail"]', $mail);
$I->click('//*[@id="postbut"]');
$I->wait(1);
$I->click('//*[@id="click-to-refresh"]');
$I->click('//*[@id="mails"]/tbody/tr/td[2]/a');
$I->waitForElement('//*[@id="templateBody"]/tbody/tr/td/table/tbody/tr[2]/td/table/tbody/tr/td/div/a');
$I->click('//*[@id="templateBody"]/tbody/tr/td/table/tbody/tr[2]/td/table/tbody/tr/td/div/a');
$I->waitForText('Create account');
$I->see('Create account');
$I->see('Forgot password?');
$I->seeElement('#email');
$I->seeElement('$password');
$I->seeElement('#loginButton');
開發者ID:unlimUA,項目名稱:Codeception,代碼行數:19,代碼來源:checkMailboxCept.php


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