Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
GroupForm.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 GroupForm extends Form
17 {
23  protected $website = '//option[contains(.,"%s")]';
24 
31  public function isWebsiteVisible($websiteName)
32  {
33  return $this->_rootElement->find(sprintf($this->website, $websiteName), Locator::SELECTOR_XPATH)->isVisible();
34  }
35 }