/** * @param Admin $I * @return Admin */ public function createASchedulerTask(Admin $I) { $I->see('No tasks defined yet'); $I->click('//a[contains(@title, "Add task")]', '.module-docheader'); $I->cantSeeElement('#task_SystemStatusUpdateNotificationEmail'); $I->selectOption('#task_class', 'System Status Update'); $I->seeElement('#task_SystemStatusUpdateNotificationEmail'); $I->selectOption('#task_type', 'Single'); $I->fillField('#task_SystemStatusUpdateNotificationEmail', '*****@*****.**'); $I->click('button.dropdown-toggle', '.module-docheader'); $I->wantTo('Click "Save and close"'); $I->click("//a[contains(@data-value,'saveclose')]"); $I->waitForText('The task was added successfully.'); return $I; }