Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SimplifiedselectElement.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Client\Locator;
10 
14 class SimplifiedselectElement extends SelectElement
15 {
21  protected $optionGroupValue = ".//*[@data-title='%s' or contains(normalize-space(.), %s)]";
22 
29  public function setValue($value)
30  {
31  $this->eventManager->dispatchEvent(['set_value'], [__METHOD__, $this->getAbsoluteSelector()]);
32  $xpath = sprintf($this->optionGroupValue, $value, $this->escapeQuotes($value));
33  $option = $this->find($xpath, Locator::SELECTOR_XPATH);
34  $option->click();
35  }
36 }
taxRateField find('.mselect-list') .on( 'click.mselect-edit'
Definition: edit.phtml:162
$value
Definition: gender.phtml:16