Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SystemUpgrade.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Block\Block;
10 use Magento\Mtf\Client\Locator;
11 
15 class SystemUpgrade extends Block
16 {
20  protected $systemUpgradeMessage = 'start-updater';
21 
27  protected $upgrade = "[ng-click*='update']";
28 
34  public function getUpgradeMessage()
35  {
36  return $this->_rootElement->find($this->systemUpgradeMessage, Locator::SELECTOR_NAME)->getText();
37  }
38 
44  public function clickSystemUpgrade()
45  {
46  $this->_rootElement->find($this->upgrade, Locator::SELECTOR_CSS)->click();
47  }
48 }