示例#1
0
 /**
  * Set category value.
  *
  * @param array|string $value
  * @return void
  */
 public function setValue($value)
 {
     // Align Category ids select element to the center of the browser for created categories
     if ($this->browser->find($this->pageFooter)->isVisible()) {
         $this->browser->find($this->pageFooter)->hover();
         $this->browser->find($this->advancedInventoryButton)->hover();
     }
     parent::setValue($value);
 }
示例#2
0
 /**
  * Close endpoint content
  *
  * @param string $serviceName
  * @param string $endpoint
  * @return void
  */
 public function closeEndpointContent($serviceName, $endpoint)
 {
     $this->expandServiceContent($serviceName);
     /**
      * Selector for endpoint href
      */
     $endpointRefSelector = 'a[href$="%s%s"]';
     /**
      * Selector for operation
      */
     $operationSelector = 'div[id$="%s%s_content"]';
     $endpointRefSelector = sprintf($endpointRefSelector, $serviceName, $endpoint);
     $operationSelector = sprintf($operationSelector, $serviceName, $endpoint);
     if ($this->isElementVisible($operationSelector)) {
         $this->browser->find($endpointRefSelector, Locator::SELECTOR_CSS)->click();
     }
 }