本文整理匯總了PHP中Visitor::waitForPageLoad方法的典型用法代碼示例。如果您正苦於以下問題:PHP Visitor::waitForPageLoad方法的具體用法?PHP Visitor::waitForPageLoad怎麽用?PHP Visitor::waitForPageLoad使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Visitor
的用法示例。
在下文中一共展示了Visitor::waitForPageLoad方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: test_free_trial
public function test_free_trial(Visitor $i)
{
return;
$i->wantTo('Check if free trial is working');
$i->click('Free 14 days trial');
$i->waitForPageLoad();
$i->canSee('Sign in to continue');
$i->click('Register now');
$i->waitForText('Back To Login');
$i->wantTo('Check if registration is working');
$i->fillAtkField('first_name', 'Tester');
$i->fillAtkField('last_name', 'User');
$i->fillAtkField('username', 'abc@gmail.com');
$i->click('Register');
$i->waitForText('Password must not be empty');
$i->fillAtkField('password', '123');
$i->click('Register');
$i->waitForText('Password did not match');
$i->fillAtkField('retype_password', 'abc@gmail.com');
$i->click('Register');
$i->waitForText('Password did not match');
$i->fillAtkField('retype_password', '123');
$i->click('Register');
$i->waitForText('Sign in to continue');
$hash = $i->grabFromDatabase('user', 'hash', array('username' => 'abc@gmail.com'));
$i->click('Activate');
$i->waitForText('Activate your Account');
$i->fillAtkField('email', 'abc@gmail.com');
$i->fillAtkField('activation_code', $hash);
$i->click('Verify');
$i->waitForText('Sign in to continue');
$i->login('abc@gmail.com', '123');
$i->wait(4);
$i->click('Got it!');
$i->fillAtkField('epan_name', '001testepan');
$i->waitForText('Free 14 day Trial');
$i->click(['css' => '.xepan-service-trial button']);
$i->wait(200);
// remove wait in case of online testing
// add test for links click (admin/website/myaccount)
}