Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CustomAddress.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Block\Form;
10 use Magento\Mtf\Client\Locator;
11 
15 class CustomAddress extends Form
16 {
22  private $updateButtonSelector = '.action.action-update';
23 
29  private $select = "[name='billing_address_id']";
30 
36  public function clickUpdate()
37  {
38  $this->_rootElement->find($this->updateButtonSelector)->click();
39  }
40 
47  public function selectAddress($value)
48  {
49  $this->_rootElement->find($this->select, Locator::SELECTOR_CSS, 'select')->setValue($value);
50  }
51 }
$value
Definition: gender.phtml:16