$this->select("price_{$selectFieldId}", "value={$selectFieldOp1}");
$this->type('first_name', 'Mary');
- $this->type('last_name', 'Jones'. substr(sha1(rand()), 0, 5));
+ $this->type('last_name', 'Jones' . substr(sha1(rand()), 0, 5));
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
// exceed maximun count for text field, check for form rule
$this->type("xpath=//input[@id='price_{$textFieldId}']", '2');
$this->type('first_name', 'Mary');
- $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+ $this->type('last_name', 'Jane' . substr(sha1(rand()), 0, 5));
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
// fill correct available option for select field
$this->select("price_{$selectFieldId}", "value={$selectFieldOp2}");
+ $this->click("css=input[data-amount=10]");
$this->click('_qf_Register_upload-bottom');
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->type("xpath=//input[@id='price_{$textFieldId}']", '3');
$this->type('first_name', 'Mary');
- $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+ $this->type('last_name', 'Jane' . substr(sha1(rand()), 0, 5));
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
// check for form rule
$this->type("xpath=//input[@id='price_{$textFieldId}']", '2');
$this->type('first_name', 'Mary');
- $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+ $this->type('last_name', 'Jane' . substr(sha1(rand()), 0, 5));
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
$this->type("xpath=//input[@id='price_{$textFieldId}']", '7');
$this->type('first_name', 'Mary');
- $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+ $this->type('last_name', 'Jane' . substr(sha1(rand()), 0, 5));
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
$this->type("xpath=//input[@id='price_{$textFieldId}']", '6');
$this->type('first_name', 'Mary Add 2');
- $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+ $this->type('last_name', 'Jane' . substr(sha1(rand()), 0, 5));
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
$this->type("xpath=//input[@id='price_{$textFieldId}']", '3');
$this->type('first_name', 'Mary Add 2');
- $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+ $this->type('last_name', 'Jane' . substr(sha1(rand()), 0, 5));
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
$this->type("xpath=//input[@id='price_{$textFieldId}']", '3');
$this->type('first_name', 'Mary');
- $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+ $this->type('last_name', 'Jane' . substr(sha1(rand()), 0, 5));
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
$this->type("xpath=//input[@id='price_{$textFieldId}']", '2');
$this->type('first_name', 'Mary Add 1');
- $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+ $this->type('last_name', 'Jane' . substr(sha1(rand()), 0, 5));
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
$this->type("xpath=//input[@id='price_{$textFieldId}']", '7');
$this->type('first_name', 'Mary');
- $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+ $this->type('last_name', 'Jane' . substr(sha1(rand()), 0, 5));
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
$this->type("xpath=//input[@id='price_{$textFieldId}']", '6');
$this->type('first_name', 'Mary Add 1');
- $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+ $this->type('last_name', 'Jane' . substr(sha1(rand()), 0, 5));
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
$this->type("xpath=//input[@id='price_{$textFieldId}']", '3');
$this->type('first_name', 'Mary Add 2');
- $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+ $this->type('last_name', 'Jane' . substr(sha1(rand()), 0, 5));
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
$this->click('_qf_Participant_2_next-Array');
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->assertStringsPresent(array('Sorry, currently only 4 seats are available for this option.'));
+ $this->assertStringsPresent(array('Sorry, this option is currently sold out.'));
// Skip participant3 and register
$this->click('_qf_Participant_2_next_skip-Array');
$this->type("xpath=//input[@id='price_{$textFieldId}']", '3');
$this->type('first_name', 'Mary');
- $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+ $this->type('last_name', 'Jane' . substr(sha1(rand()), 0, 5));
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
$this->type("xpath=//input[@id='price_{$textFieldId}']", '2');
$this->type('first_name', 'Mary Add 1');
- $this->type('last_name', 'Jane'. substr(sha1(rand()), 0, 5));
+ $this->type('last_name', 'Jane' . substr(sha1(rand()), 0, 5));
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
public function _checkConfirmationAndRegister() {
$confirmStrings = array('Event Fee(s)', 'Billing Name and Address', 'Credit Card Information');
$this->assertStringsPresent($confirmStrings);
+ $this->waitForElementPresent("_qf_Confirm_next-bottom");
$this->click('_qf_Confirm_next-bottom');
$this->waitForPageToLoad($this->getTimeoutMsec());
$thankStrings = array('Thank You for Registering', 'Event Total', 'Transaction Date');