Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CartItem.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Client\Locator;
10 
14 class CartItem extends \Magento\Checkout\Test\Block\Cart\CartItem
15 {
22  protected $priceFptBlock = './/td[@class="col price"]';
23 
29  protected $subtotalFptBlock = './/td[@class="col subtotal"]';
30 
36  public function getPriceFptBlock()
37  {
38  return $this->blockFactory->create(
39  \Magento\Weee\Test\Block\Cart\CartItem\Fpt::class,
40  ['element' => $this->_rootElement->find($this->priceFptBlock, Locator::SELECTOR_XPATH)]
41  );
42  }
43 
49  public function getSubtotalFptBlock()
50  {
51  return $this->blockFactory->create(
52  \Magento\Weee\Test\Block\Cart\CartItem\Fpt::class,
53  ['element' => $this->_rootElement->find($this->subtotalFptBlock, Locator::SELECTOR_XPATH)]
54  );
55  }
56 }