<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

namespace Magento\Tax\Test\Block\Adminhtml\Rule\Edit;

use Magento\Mtf\Block\Form as FormInterface;

/**
 * Tax rate block.
 */
class TaxRate extends FormInterface
{
    /**
     * 'Save' button on dialog window for creating new tax rate.
     *
     * @var string
     */
    protected $saveTaxRate = '.action-save';

    /**
     * Clicking 'Save' button on dialog window for creating new tax rate.
     *
     * @return void
     */
    public function saveTaxRate()
    {
        $this->_rootElement->find($this->saveTaxRate)->click();
    }
}
