Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
PrintOrderOnFrontendStep.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Sales\Test\Page\SalesGuestView;
10 use Magento\Mtf\Client\BrowserInterface;
11 use Magento\Mtf\TestStep\TestStepInterface;
12 
16 class PrintOrderOnFrontendStep implements TestStepInterface
17 {
23  protected $salesGuestView;
24 
30  protected $browser;
31 
37  public function __construct(SalesGuestView $salesGuestView, BrowserInterface $browser)
38  {
39  $this->salesGuestView = $salesGuestView;
40  $this->browser = $browser;
41  }
42 
48  public function run()
49  {
50  $this->salesGuestView->getActionsToolbar()->clickLink('Print');
51  $this->browser->selectWindow();
52  }
53 }
__construct(SalesGuestView $salesGuestView, BrowserInterface $browser)