public function setAccountName($accountName) { $this->accountName = $this->test->byXPath("//*[@data-ftid='orocrm_account_form_name']"); $this->accountName->clear(); $this->accountName->value($accountName); return $this; }
public function setSolution($solution) { $this->solution = $this->test->byXpath("//*[@data-ftid='oro_workflow_transition_proposed_solution']"); $this->solution->clear(); $this->solution->value($solution); return $this; }
public function setAccountName($accountName) { $this->accountName = $this->test->byId('orocrm_account_form_name'); $this->accountName->clear(); $this->accountName->value($accountName); return $this; }
public function setSolution($solution) { $this->solution = $this->test->byId('oro_workflow_transition_proposed_solution'); $this->solution->clear(); $this->solution->value($solution); return $this; }
public function setStartDate($date) { $this->startDate = $this->test->byXpath("//*[@data-ftid='oro_workflow_transition_sales_funnel_start_date']/.." . "/following-sibling::input[contains(@class,'datepicker-input')]"); $this->startDate->clear(); $this->startDate->value($date); return $this; }
public function setStartDate($date) { $this->startDate = $this->test->byId('oro_workflow_transition_sales_funnel_name'); $this->startDate->clear(); $this->startDate->value($date); return $this; }
/** * @param string $value * @return $this */ public function search($value) { if (!$this->simpleSearch->displayed()) { $this->pane->click(); } $this->simpleSearch->clear(); $this->simpleSearch->value($value); $this->waitForAjax(); return $this; }
/** * @param $dueDate string Due date * @return $this * @throws \Exception */ public function setDueDate($dueDate) { $this->dueDate = $this->test->byXpath("//*[@data-ftid='orocrm_task_dueDate']/.." . "/following-sibling::*//input[contains(@class,'datepicker-input')]"); $this->dueTime = $this->test->byXpath("//*[@data-ftid='orocrm_task_dueDate']/.." . "/following-sibling::*//input[contains(@class,'timepicker-input')]"); $this->dueDate->clear(); $this->dueTime->clear(); $dueDateParts = []; if (preg_match('/^(.+\\d{4}),?\\s(\\d{1,2}\\:\\d{2}\\s\\w{2})$/', $dueDate, $dueDateParts)) { $this->dueDate->click(); // focus $this->dueDate->value($dueDateParts[1]); $this->dueTime->click(); // focus $this->dueTime->clear(); $this->dueTime->value($dueDateParts[2]); } else { throw new Exception("Value {$dueDate} is not a valid date"); } return $this; }
public function verifyTag($tag) { if ($this->isElementPresent("//div[starts-with(@id,'s2id_oro_user_user_form_tags_autocomplete')]")) { $this->tags = $this->test->byXpath("//div[starts-with(@id,'s2id_oro_user_user_form_tags_autocomplete')]//input"); $this->tags->click(); $this->tags->value(substr($tag, 0, strlen($tag) - 1)); $this->waitForAjax(); $this->assertElementPresent("//div[@id='select2-drop']//div[contains(., '{$tag}')]", "Tag's autocomplete doesn't return entity"); $this->tags->clear(); } else { if ($this->isElementPresent("//div[contains(@class, 'tags-holder')]")) { $this->assertElementPresent("//div[contains(@class, 'tags-holder')]//li[contains(., '{$tag}')]", 'Tag is not assigned to entity'); } else { throw new \Exception("Tag field can't be found"); } } return $this; }
public function setEmail($value) { $this->email->clear(); $this->email->value($value); return $this; }
public function setCloseDate($closeDate) { $this->closeDate->clear(); $this->closeDate->value($closeDate); return $this; }
public function setLabel($label) { $this->label->clear(); $this->label->value($label); return $this; }
public function setDueDate($dueDate) { $this->dueDate->clear(); $this->dueDate->value($dueDate); return $this; }
/** * @param $accountName * * @return $this */ public function setTagName($accountName) { $this->tagName->clear(); $this->tagName->value($accountName); return $this; }
public function setEmployees($employees) { $this->employees->clear(); $this->employees->value($employees); return $this; }
public function setDescription($description) { $this->description->clear(); $this->description->value($description); return $this; }
/** * @param $unitName * @return $this */ public function setBusinessUnitName($unitName) { $this->businessUnitName->clear(); $this->businessUnitName->value($unitName); return $this; }