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 setStartDate($date) { $this->startDate = $this->test->byId('oro_workflow_transition_sales_funnel_name'); $this->startDate->clear(); $this->startDate->value($date); 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 setSolution($solution) { $this->solution = $this->test->byId('oro_workflow_transition_proposed_solution'); $this->solution->clear(); $this->solution->value($solution); 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 $tag * @return $this * @throws \Exception */ public function setTag($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($tag); $this->waitForAjax(); $this->assertElementPresent("//div[@id='select2-drop']//div[contains(., '{$tag}')]", "Tag's autocomplete doesn't return entity"); $this->test->byXpath("//div[@id='select2-drop']//div[contains(., '{$tag}')]")->click(); return $this; } else { throw new \Exception("Tag field can't be found"); } }
public function getLabel() { return $this->label->value(); }
public function getName() { return $this->name->value(); }
public function getDueDate() { $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')]"); return $this->dueDate->value() . ' ' . $this->dueTime->value(); }
public function setEmail($value) { $this->email->clear(); $this->email->value($value); return $this; }
public function getCloseDate() { return $this->closeDate->value(); }
public function getEmail() { return $this->email->value(); }
public function getEmployees() { return $this->employees->value(); }
/** * @return string */ public function getBusinessUnitName() { return $this->businessUnitName->value(); }
public function getDueDate() { return $this->dueDate->value(); }
public function sendKeys(\PHPUnit_Extensions_Selenium2TestCase_Element $element, $keys) { if ($this->fileDetectorFunction && call_user_func($this->fileDetectorFunction, $keys)) { $remote_file = $this->file($keys); $element->value($remote_file); } else { $element->click(); $this->keys($keys); } }
public function getTagName() { return $this->tagName->value(); }
/** * @param string $title * @return $this */ public function setDefaultTitle($title) { $this->defaultTitle->value($title); return $this; }
public function getDescription() { return $this->description->value(); }
public function getAccountName() { return $this->accountName->value(); }