/**
  * @param Admin $I
  */
 public function selectingAModuleDoesHighlightIt(Admin $I)
 {
     $I->seeNumberOfElements('#web .typo3-module-menu-item-link', [2, 20]);
     $I->wantTo('check that the second element has no "active" class\'');
     $I->cantSeeElement('#web #web_list.active');
     $I->click('#web #web_list .typo3-module-menu-item-link');
     $I->wantTo('see that the second element has an "active" class');
     $I->canSeeElement('#web #web_list.active');
 }
 /**
  * @param Admin $I
  */
 public function searchAndTestIfAutocompletionWorks(Admin $I)
 {
     $I->cantSeeElement(self::$topBarModuleSelector . ' ' . Topbar::$dropdownListSelector);
     $I->fillField('#live-search-box', 'adm');
     $I->waitForElementVisible(self::$topBarModuleSelector . ' ' . Topbar::$dropdownListSelector);
     $I->canSee('Backend user', self::$topBarModuleSelector);
     $I->click('.icon-status-user-admin', self::$topBarModuleSelector);
     $I->switchToIFrame("content");
     $I->waitForElementVisible('#EditDocumentController');
     $I->canSee('Edit Backend user "admin" on root level');
 }
 /**
  * @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;
 }
 /**
  * @depends checkIfInstallingAnExtensionWithBackendModuleAddsTheModuleToTheModuleMenu
  * @param Admin $I
  */
 public function checkIfUninstallingAnExtensionWithBackendModuleRemovesTheModuleFromTheModuleMenu(Admin $I)
 {
     $I->switchToIFrame();
     $I->canSeeElement('#system_BeuserTxBeuser');
     $I->switchToIFrame('content');
     $I->fillField('Tx_Extensionmanager_extensionkey', 'beuser');
     $I->waitForElementVisible('//*[@id="typo3-extension-list"]/tbody/tr[@id="beuser"]');
     $I->click('a[data-original-title="Deactivate"]', '//*[@id="typo3-extension-list"]/tbody/tr[@id="beuser"]');
     $I->waitForElementVisible('#Tx_Extensionmanager_extensionkey ~button.close', 1);
     $I->click('#Tx_Extensionmanager_extensionkey ~button.close');
     $I->switchToIFrame();
     $I->cantSeeElement('#system_BeuserTxBeuser');
 }