$this->type("options_per_line", 2);
//clicking save
- $this->click('_qf_Field_next_new-top');
+ $this->clickLink('_qf_Field_next_new-top', '_qf_Field_done-bottom', FALSE);
//Is custom field created
$this->waitForText('crm-notification-container', "Custom field '$checkLabel1' has been saved.");
+ $this->waitForElementPresent("label");
$returnArray[1] = array($customGroupTitle, $checkLabel1);
// create another custom field - Integer Radio
$this->type('option_value_3', 3);
//clicking save
- $this->click('_qf_Field_next_new-top');
+ $this->clickLink('_qf_Field_next_new-top', '_qf_Field_done-bottom', FALSE);
//Is custom field created
$this->waitForText('crm-notification-container', "Custom field '$checkLabel2' has been saved.");
$returnArray[2] = array($customGroupTitle, $checkLabel2);
// create another custom field - Date
+ $this->waitForElementPresent("label");
$dateFieldLabel = 'Custom Date Field' . substr(sha1(rand()), 0, 4);
$this->type('label', $dateFieldLabel);
$this->click('data_type[0]');
$this->select('time_format', "value=2");
//clicking save
- $this->click('_qf_Field_next_new-top');
+ $this->clickLink('_qf_Field_next_new-top', '_qf_Field_done-bottom', FALSE);
//Is custom field created
$this->waitForText('crm-notification-container', "Custom field '$dateFieldLabel' has been saved.");
$returnArray[3] = array($customGroupTitle, $dateFieldLabel);
//create rich text editor field
+ $this->waitForElementPresent("label");
$richTextField = 'Custom Rich TextField_' . substr(sha1(rand()), 0, 4);
$this->type('label', $richTextField);
$this->click('data_type[0]');
$this->select('data_type[1]', "label=RichTextEditor");
//clicking save
- $this->click('_qf_Field_next_new-top');
+ $this->clickLink('_qf_Field_next_new-top', '_qf_Field_done-bottom', FALSE);
//Is custom field created
$this->waitForText('crm-notification-container', "Custom field '$richTextField' has been saved.");
//create radio button field
//for radio 1
+ $this->waitForElementPresent("label");
$radioLabel1 = 'Custom Radio One Text_' . substr(sha1(rand()), 0, 4);
$this->type('label', $radioLabel1);
$this->click('data_type[0]');
$this->type('option_value_3', 3);
//clicking save
- $this->click('_qf_Field_next_new-top');
+ $this->clickLink('_qf_Field_next_new-top', '_qf_Field_done-bottom', FALSE);
//Is custom field created
$this->waitForText('crm-notification-container', "Custom field '$radioLabel1' has been saved.");
// create another custom field - Alpha Radio
//for radio 2
+ $this->waitForElementPresent("label");
$radioLabel2 = 'Custom Radio Two Text_' . substr(sha1(rand()), 0, 4);
$this->type('label', $radioLabel2);
$this->click('data_type[0]');