本文整理汇总了PHP中WebGuy::selectOption方法的典型用法代码示例。如果您正苦于以下问题:PHP WebGuy::selectOption方法的具体用法?PHP WebGuy::selectOption怎么用?PHP WebGuy::selectOption使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WebGuy
的用法示例。
在下文中一共展示了WebGuy::selectOption方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _changeTo
public function _changeTo(WebGuy $I, $datastore = 'Candidate')
{
$I->selectOption('#form_source', $datastore);
$I->expectTo('change datastore to ' . $datastore);
$I->waitForElementNotVisible('#ajax-spinner');
$I->waitForText('Config data only');
}
示例2:
$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);
$option = 'Euro';
$I->selectOption("#currency_id", $option);
$option = '500+';
$I->selectOption("#size_id", $option);
$option = 'Aerospace';
$I->selectOption("#industry_id", $option);
//----private notes
$I->fillField('#private_notes', 'Test Note Note Notes');
//-----------------------Form is Finished--
$I->click('Save');
$I->seeInCurrentUrl('/clients/');
$I->dontSeeInCurrentUrl('/users/');
$I->dontSeeInCurrentUrl('/user/');
$I->see('Details');
$I->see('Contacts');
示例3: WebGuy
<?php
$I = new WebGuy($scenario);
$I->wantTo('submit contact form');
$I->amOnPage('fr/contact');
$I->selectOption('Titre', 'M.');
$I->fillField('first_name', 'John');
$I->fillField('last_name', 'Doe');
$I->fillField('email', 'john@doe.com');
$I->fillField('message', 'Hello');
$I->click('Envoyer');
$I->amOnPage('fr/contact');
示例4: foreach
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');
foreach ($pubcodes[$a] as $authcode) {
$I->amOnPage('/wp-admin/post-new.php');
$I->fillField('post_title', 'Test Post for ' . $authcode['description']);
$I->click('Text');
$I->fillField('content', 'Content for ' . $authcode['description']);
$I->click('Visual');
$I->fillField('excerpt', 'Excerpt for ' . $authcode['description']);
$I->checkOption('#pubcode_' . $authcode['name']);
$I->wait(2);
$I->click('Publish', '#publishing-action');