本文整理匯總了PHP中WebGuy::acceptPopup方法的典型用法代碼示例。如果您正苦於以下問題:PHP WebGuy::acceptPopup方法的具體用法?PHP WebGuy::acceptPopup怎麽用?PHP WebGuy::acceptPopup使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WebGuy
的用法示例。
在下文中一共展示了WebGuy::acceptPopup方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
$I->wait(2);
$I->click('Publish', '#publishing-action');
$I->see('Post Published');
$I->seeCheckboxIsChecked('#pubcode_' . $authcode['name']);
}
$I->amGoingTo('Log Out so we can check that the content is password protected');
$WP->logout();
$I->amGoingTo('Test the protected content');
foreach ($pubcodes[$a] as $authcode) {
$I->amOnPage('/');
$I->click('Test Post for ' . $authcode['description']);
$I->see('Enter your username and password below');
$I->fillField('log', $sample_accounts[$a]['username']);
$I->fillField('pwd', $sample_accounts[$a]['password']);
$I->click('Log In');
$I->see($sample_accounts[$a]['expected_results'][$authcode['name']]);
$WP->logout();
}
$I->amGoingTo('Log in as admin');
$WP->admin_login();
$I->amGoingTo('Delete the ' . $a . ' pubcodes');
$I->amOnPage($plugins['auth']['admin_page']);
foreach ($pubcodes[$a] as $authcode) {
$I->amGoingTo('Delete ' . $authcode['name']);
$I->click('#delete_' . $authcode['name']);
$I->acceptPopup();
$I->waitForJS('return jQuery.active == 0', 5);
$I->dontSee($authcode['description']);
}
$WP->logout();
}