Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TemplateForm.php
Go to the documentation of this file.
1 <?php
7 
8 use Magento\Mtf\Block\Form;
9 use Magento\Mtf\Client\Locator;
10 
15 class TemplateForm extends Form
16 {
17  private $loadButton = '#load';
18 
22  public function clickLoadTemplate()
23  {
24  $element = $this->_rootElement->find($this->loadButton, Locator::SELECTOR_CSS); // locate the Load button
25  $element->click(); // click the load button
26  }
27 }
$element
Definition: element.phtml:12