Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
StoreForm.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Block\Form;
10 use Magento\Mtf\Client\Locator;
11 
16 class StoreForm extends Form
17 {
23  protected $store = '//option[contains(.,"%s")]';
24 
30  protected $storeGroupId = '//select[@id="store_group_id"]';
31 
38  public function isStoreVisible($name)
39  {
40  return $this->_rootElement->find(sprintf($this->store, $name), Locator::SELECTOR_XPATH)->isVisible();
41  }
42 
49  public function selectStore($name)
50  {
51  return $this->_rootElement->find($this->storeGroupId, Locator::SELECTOR_XPATH, 'optgroupselect')
52  ->setValue($name);
53  }
54 }
if(!isset($_GET['name'])) $name
Definition: log.php:14