Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CmsGrid.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Client\Element\SimpleElement;
11 
15 class CmsGrid extends DataGrid
16 {
22  protected $selectAction = '.action-select';
23 
29  protected $filters = [
30  'block_id_from' => [
31  'selector' => '[name="block_id[from]"]',
32  ],
33  'block_id_to' => [
34  'selector' => '[name="block_id[to]"]',
35  ],
36  'title' => [
37  'selector' => '[name="title"]',
38  ],
39  'identifier' => [
40  'selector' => '[name="identifier"]',
41  ],
42  'store_id' => [
43  'selector' => '[name="store_id"]',
44  'input' => 'simplifiedselect'
45  ],
46  'is_active' => [
47  'selector' => '//label[span[text()="Status"]]/following-sibling::div',
48  'strategy' => 'xpath',
49  'input' => 'dropdownmultiselect',
50  ],
51  'creation_time_from' => [
52  'selector' => '[name="creation_time[from]"]',
53  ],
54  'creation_time_to' => [
55  'selector' => '[name="creation_time[to]"]',
56  ],
57  'update_time_from' => [
58  'selector' => '[name="update_time[from]"]',
59  ],
60  'update_time_to' => [
61  'selector' => '[name="update_time[to]"]',
62  ],
63  ];
64 
71  protected function clickEditLink(SimpleElement $rowItem)
72  {
73  $rowItem->find($this->selectAction)->click();
74  $rowItem->find($this->editLink)->click();
75  }
76 }