Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
RefreshPageStep.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Client\BrowserInterface;
10 use Magento\Mtf\TestStep\TestStepInterface;
11 
15 class RefreshPageStep implements TestStepInterface
16 {
22  private $browser;
23 
29  private $refresh;
30 
36  public function __construct(BrowserInterface $browser, $refresh = false)
37  {
38  $this->browser = $browser;
39  $this->refresh = $refresh;
40  }
41 
47  public function run()
48  {
49  if ($this->refresh) {
50  $this->browser->refresh();
51  }
52  }
53 }
__construct(BrowserInterface $browser, $refresh=false)