Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ProductPagination.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Block\Block;
10 use Magento\Mtf\Client\ElementInterface;
11 
15 class ProductPagination extends Block
16 {
22  protected $nextPageSelector = '.item.current + .item a';
23 
29  public function getNextPage()
30  {
31  $nextPageItem = $this->_rootElement->find($this->nextPageSelector);
32  if ($nextPageItem->isVisible()) {
33  return $nextPageItem;
34  } else {
35  return null;
36  }
37  }
38 }