Beispiel #1
0
 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;
 }
Beispiel #2
0
 public function setStartDate($date)
 {
     $this->startDate = $this->test->byId('oro_workflow_transition_sales_funnel_name');
     $this->startDate->clear();
     $this->startDate->value($date);
     return $this;
 }
Beispiel #3
0
 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;
 }
Beispiel #4
0
 public function setSolution($solution)
 {
     $this->solution = $this->test->byId('oro_workflow_transition_proposed_solution');
     $this->solution->clear();
     $this->solution->value($solution);
     return $this;
 }
Beispiel #5
0
 /**
  * @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;
 }
Beispiel #6
0
 /**
  * @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");
     }
 }
Beispiel #7
0
 public function getLabel()
 {
     return $this->label->value();
 }
Beispiel #8
0
 public function getName()
 {
     return $this->name->value();
 }
Beispiel #9
0
 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();
 }
Beispiel #10
0
 public function setEmail($value)
 {
     $this->email->clear();
     $this->email->value($value);
     return $this;
 }
Beispiel #11
0
 public function getCloseDate()
 {
     return $this->closeDate->value();
 }
Beispiel #12
0
 public function getEmail()
 {
     return $this->email->value();
 }
Beispiel #13
0
 public function getEmployees()
 {
     return $this->employees->value();
 }
Beispiel #14
0
 /**
  * @return string
  */
 public function getBusinessUnitName()
 {
     return $this->businessUnitName->value();
 }
Beispiel #15
0
 public function getDueDate()
 {
     return $this->dueDate->value();
 }
Beispiel #16
0
 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);
     }
 }
Beispiel #17
0
 public function getTagName()
 {
     return $this->tagName->value();
 }
Beispiel #18
0
 /**
  * @param string $title
  * @return $this
  */
 public function setDefaultTitle($title)
 {
     $this->defaultTitle->value($title);
     return $this;
 }
Beispiel #19
0
 public function getDescription()
 {
     return $this->description->value();
 }
Beispiel #20
0
 public function getAccountName()
 {
     return $this->accountName->value();
 }