Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SitemapGrid.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Mtf\Client\Locator;
11 
16 class SitemapGrid extends Grid
17 {
23  protected $filters = [
24  'sitemap_filename' => [
25  'selector' => '#sitemapGrid_filter_sitemap_filename',
26  ],
27  'sitemap_path' => [
28  'selector' => '#sitemapGrid_filter_sitemap_path',
29  ],
30  'sitemap_id' => [
31  'selector' => '#sitemapGrid_filter_sitemap_id',
32  ],
33  ];
34 
40  protected $editLink = 'td[data-column="sitemap_id"]';
41 
47  protected $linkForGoogle = 'td[data-column="link"] a';
48 
54  protected $generate = 'td[data-column="action"] a';
55 
61  public function getLinkForGoogle()
62  {
63  return $this->_rootElement->find($this->linkForGoogle, Locator::SELECTOR_CSS)->getText();
64  }
65 
71  public function generate()
72  {
73  $this->_rootElement->find($this->generate, Locator::SELECTOR_CSS)->click();
74  }
75 }