$pricesetLoc = $this->getLocation();
// get text field Id.
- $textFieldId = explode('&id=', $this->getAttribute("xpath=//div[@id='field_page']/table/tbody/tr[1]/td[9]/span[1]/a[2]@href"));
- $textFieldId = explode('&', $textFieldId[0]);
- $textFieldId = explode('=', $textFieldId[3]);
- $textFieldId = $textFieldId[1];
+ $this->waitForElementPresent("xpath=//div[@id='crm-main-content-wrapper']/div/a[1]");
+ $textFieldIdURL = $this->getAttribute("xpath=//div[@id='field_page']/table/tbody/tr[1]/td[9]/span[1]/a[2]@href");
+ $textFieldId = $this->urlArg('fid', $textFieldIdURL);
$this->open($pricesetLoc);
$this->waitForPageToLoad($this->getTimeoutMsec());
// get select field id
$this->click("xpath=//div[@id='field_page']//table/tbody/tr[2]/td[8]/a");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->waitForElementPresent("xpath=//div[@class='ui-dialog-buttonset']/button[2]/span[2]");
$selectFieldLoc = $this->getLocation();
- $selectFieldId = $this->urlArg('fid');
+ $selectFieldURL = $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[2]/td[9]/span[1]/a[2]@href");
+ $selectFieldId = $this->urlArg('fid', $selectFieldURL);
// get select field ids
// get select field option1
- $selectFieldOp1 = explode('&id=', $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[1]/td[7]/span[1]/a[1]@href"));
- $selectFieldOp1 = explode('&', $selectFieldOp1[0]);
- $selectFieldOp1 = explode('=', $selectFieldOp1[2]);
- $selectFieldOp1 = $selectFieldOp1[1];
-
- $this->open($selectFieldLoc);
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $selectFieldOp1URL = $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[1]/td[7]/span[1]/a[1]@href");
+ $selectFieldOp1 = $this->urlArg('oid', $selectFieldOp1URL);
// get select field option2
- $selectFieldOp2 = explode('&id=', $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[2]/td[7]/span[1]/a[1]@href"));
- $selectFieldOp2 = explode('&', $selectFieldOp2[0]);
- $selectFieldOp2 = explode('=', $selectFieldOp2[2]);
- $selectFieldOp2 = $selectFieldOp2[1];
+ $selectFieldOp2URL = $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[2]/td[7]/span[1]/a[1]@href");
+ $selectFieldOp2 = $this->urlArg('oid', $selectFieldOp2URL);
// create event.
$eventTitle = 'Meeting - ' . substr(sha1(rand()), 0, 7);
$pricesetLoc = $this->getLocation();
// get text field Id.
- $textFieldId = explode('&id=', $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[1]/td[9]/span[1]/a[2]@href"));
- $textFieldId = explode('&', $textFieldId[0]);
- $textFieldId = explode('=', $textFieldId[3]);
- $textFieldId = $textFieldId[1];
+ $this->waitForElementPresent("xpath=//div[@id='crm-main-content-wrapper']/div/a[1]");
+ $textFieldIdURL = $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[1]/td[9]/span[1]/a[2]@href");
+ $textFieldId = $this->urlArg('fid', $textFieldIdURL);
$this->open($pricesetLoc);
$this->waitForPageToLoad($this->getTimeoutMsec());
// get select field id
$this->click("xpath=//div[@id='field_page']//table/tbody/tr[2]/td[8]/a");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->waitForElementPresent("xpath=//div[@class='ui-dialog-buttonset']/button[2]/span[2]");
$selectFieldLoc = $this->getLocation();
- $selectFieldId = $this->urlArg('fid');
+ $selectFieldURL = $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[2]/td[9]/span[1]/a[2]@href");
+ $selectFieldId = $this->urlArg('fid', $selectFieldURL);
// get select field ids
// get select field option1
- $selectFieldOp1 = explode('&id=', $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[1]/td[7]/span[1]/a[1]@href"));
- $selectFieldOp1 = explode('&', $selectFieldOp1[0]);
- $selectFieldOp1 = explode('=', $selectFieldOp1[2]);
- $selectFieldOp1 = $selectFieldOp1[1];
-
- $this->open($selectFieldLoc);
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $selectFieldOp1URL = $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[1]/td[7]/span[1]/a[1]@href");
+ $selectFieldOp1 = $this->urlArg('oid', $selectFieldOp1URL);
// get select field option2
- $selectFieldOp2 = explode('&id=', $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[2]/td[7]/span[1]/a[1]@href"));
- $selectFieldOp2 = explode('&', $selectFieldOp2[0]);
- $selectFieldOp2 = explode('=', $selectFieldOp2[2]);
- $selectFieldOp2 = $selectFieldOp2[1];
+ $selectFieldOp2URL = $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[2]/td[7]/span[1]/a[1]@href");
+ $selectFieldOp2 = $this->urlArg('oid', $selectFieldOp2URL);
// create event.
$eventTitle = 'Meeting - ' . substr(sha1(rand()), 0, 7);
$pricesetLoc = $this->getLocation();
// get text field Id.
- $textFieldId = explode('&id=', $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[1]/td[9]/span[1]/a[2]@href"));
- $textFieldId = explode('&', $textFieldId[0]);
- $textFieldId = explode('=', $textFieldId[3]);
- $textFieldId = $textFieldId[1];
+ $this->waitForElementPresent("xpath=//div[@id='crm-main-content-wrapper']/div/a[1]");
+ $textFieldURL = $this->getAttribute("xpath=//div[@id='field_page']/table/tbody/tr[1]/td[9]/span[1]/a[2]@href");
+ $textFieldId = $this->urlArg('fid', $textFieldURL);
$this->open($pricesetLoc);
$this->waitForPageToLoad($this->getTimeoutMsec());
// get select field id
$this->click("xpath=//div[@id='field_page']//table/tbody/tr[2]/td[8]/a");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->waitForElementPresent("xpath=//div[@class='ui-dialog-buttonset']/button[2]/span[2]");
$selectFieldLoc = $this->getLocation();
- $selectFieldId = $this->urlArg('fid');
+ $selectFieldURL = $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[2]/td[9]/span[1]/a[2]@href");
+ $selectFieldId = $this->urlArg('fid', $selectFieldURL);
// get select field ids
// get select field option1
- $selectFieldOp1 = explode('&id=', $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[1]/td[7]/span[1]/a[1]@href"));
- $selectFieldOp1 = explode('&', $selectFieldOp1[0]);
- $selectFieldOp1 = explode('=', $selectFieldOp1[2]);
- $selectFieldOp1 = $selectFieldOp1[1];
-
- $this->open($selectFieldLoc);
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $selectFieldOp1URL = $this->getAttribute("xpath=//div[@id='field_page']/table/tbody/tr[1]/td[7]/span[1]/a[1]@href");
+ $selectFieldOp1 = $this->urlArg('oid', $selectFieldOp1URL);
// get select field option2
- $selectFieldOp2 = explode('&id=', $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[2]/td[7]/span[1]/a[1]@href"));
- $selectFieldOp2 = explode('&', $selectFieldOp2[0]);
- $selectFieldOp2 = explode('=', $selectFieldOp2[2]);
- $selectFieldOp2 = $selectFieldOp2[1];
+ $selectFieldOp2URL = $this->getAttribute("xpath=//div[@id='field_page']/table/tbody/tr[2]/td[7]/span[1]/a[1]@href");
+ $selectFieldOp2 = $this->urlArg('oid', $selectFieldOp2URL);
// create event.
$eventTitle = 'Meeting - ' . substr(sha1(rand()), 0, 7);
$pricesetLoc = $this->getLocation();
// get text field Id.
- $textFieldId = explode('&id=', $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[1]/td[9]/span[1]/a[2]@href"));
- $textFieldId = explode('&', $textFieldId[0]);
- $textFieldId = explode('=', $textFieldId[3]);
- $textFieldId = $textFieldId[1];
+ $this->waitForElementPresent("xpath=//div[@id='crm-main-content-wrapper']/div/a[1]");
+ $textFieldIdURL = $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[1]/td[9]/span[1]/a[2]@href");
+ $textFieldId = $this->urlArg('fid', $textFieldIdURL);
$this->open($pricesetLoc);
$this->waitForPageToLoad($this->getTimeoutMsec());
// get select field id
$this->click("xpath=//div[@id='field_page']//table/tbody/tr[2]/td[8]/a");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->waitForElementPresent("xpath=//div[@class='ui-dialog-buttonset']/button[2]/span[2]");
$selectFieldLoc = $this->getLocation();
- $selectFieldId = $this->urlArg('fid');
+ $selectFieldURL = $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[2]/td[9]/span[1]/a[2]@href");
+ $selectFieldId = $this->urlArg('fid', $selectFieldURL);
// get select field ids
// get select field option1
- $selectFieldOp1 = explode('&id=', $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[1]/td[7]/span[1]/a[1]@href"));
- $selectFieldOp1 = explode('&', $selectFieldOp1[0]);
- $selectFieldOp1 = explode('=', $selectFieldOp1[2]);
- $selectFieldOp1 = $selectFieldOp1[1];
-
- $this->open($selectFieldLoc);
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $selectFieldOp1URL = $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[1]/td[7]/span[1]/a[1]@href");
+ $selectFieldOp1 = $this->urlArg('oid', $selectFieldOp1URL);
// get select field option2
- $selectFieldOp2 = explode('&id=', $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[2]/td[7]/span[1]/a[1]@href"));
- $selectFieldOp2 = explode('&', $selectFieldOp2[0]);
- $selectFieldOp2 = explode('=', $selectFieldOp2[2]);
- $selectFieldOp2 = $selectFieldOp2[1];
+ $selectFieldOp2URL = $this->getAttribute("xpath=//div[@id='field_page']//table/tbody/tr[2]/td[7]/span[1]/a[1]@href");
+ $selectFieldOp2 = $this->urlArg('oid', $selectFieldOp2URL);
// create event.
$eventTitle = 'Meeting - ' . substr(sha1(rand()), 0, 7);
else {
$this->click('_qf_Field_next-bottom');
}
+ $this->waitForAjaxContent();
$this->waitForText('crm-notification-container', "Price Field '$label' has been saved.");
$count++;