public function DeleteAllThemes(CallbacksTester $I) { //Удаление всех тем колбеков $I->amOnPage("/admin/components/run/shop/callbacks/themes"); $I->comment("{$this->rows}"); while ($this->rows > 0) { $I->comment("{$this->rows}"); $I->click(CallbacksPage::DeleteThemeButtonLine('1')); $I->wait('2'); $this->rows--; $I->comment("{$this->rows}"); } $rowsNo = $I->grabTagCount($I, "tbody tr"); $I->comment($rowsNo); $I->assertEquals($rowsNo, '0'); }