public function _before(AcceptanceTester $I)
 {
     $I->wantTo('Install WPML');
     $I->loginAsAdmin();
     $I->amGoingTo('Activate WPML Plugins');
     $I->amOnPluginsPage();
     //In order that the activatePlugin() works, the webdriver needs to be in Plugins page
     $I->activatePlugin('wpml-multilingual-cms');
     $I->amGoingTo('Configure WPML');
     $I->click('No thanks, I will configure myself');
     $I->click('Next');
     //Let's English as Default language
     $I->checkOption('Greek');
     $I->wait(1);
     $I->click('Next');
     $I->wait(5);
     $I->checkOption('form input[name=icl_lang_sel_footer]');
     $I->waitForElement(".button-primary", 15);
     $I->wait(1);
     $I->click('Next');
     $I->wait(3);
     $I->waitForElement(".button-primary", 15);
     $I->click('Remind me later');
     $I->wait(5);
     $I->click('Finish');
 }
 public function _before(AcceptanceTester $I)
 {
     $I->wantTo('Install and Configure WC');
     $I->loginAsAdmin();
     //Only if Run this test Seperately
     $I->amGoingTo('Activate Woocommerce Plugin');
     $I->amOnPluginsPage();
     //In order that the activatePlugin() works, the webdriver needs to be in Plugins page
     $I->activatePlugin('woocommerce');
     $I->amGoingTo('Run Woocommerce Setup');
     $I->waitForElement(".button-primary", 20);
     $I->click("Let's Go!");
     $I->waitForElement(".button-primary", 15);
     $I->click("Continue");
     $I->wait(1);
     $I->click("Continue");
     $I->wait(1);
     $I->click("Continue");
     $I->wait(1);
     $I->checkOption('#woocommerce_enable_cod');
     $I->click("Continue");
     $I->waitForElement(".button-secondary", 15);
     $I->click("No thanks");
     $I->wait(1);
     $I->click("Return to the WordPress Dashboard");
 }
 public function _before(\AcceptanceTester $I)
 {
     $fixtures = __DIR__ . '/../_data/plugin_fixtures.php';
     if (file_exists($fixtures)) {
         $this->plugins = (require $fixtures);
     }
     $I->loginAsAdmin();
 }
 public function _before(AcceptanceTester $I)
 {
     $I->wantTo('Enable the ST, TM, MT Plugins');
     $I->loginAsAdmin();
     //Only if Run this test Seperately
     $I->amGoingTo('ST, TM, Media');
     $I->amOnPluginsPage();
     //In order that the activatePlugin() works, the webdriver needs to be in Plugins page
     $I->activatePlugin('wpml-string-translation');
     $I->wait(1);
     $I->activatePlugin('wpml-translation-management');
     $I->wait(1);
     $I->activatePlugin('wpml-media');
     //to be checked because it shows error
 }
 public function _before(AcceptanceTester $I)
 {
     $I->wantTo('Further Configure WC');
     $I->loginAsAdmin();
     //Only if Run this test Seperately
     //////////////////////
     $I->amGoingTo('Configure the Selling Country');
     $I->amOnPage('/wp-admin/admin.php?page=wc-settings');
     $I->click('#select2-chosen-2');
     $I->fillField('#s2id_autogen2_search', 'Αττική');
     $I->click('.select2-match');
     //////////////////////
     $I->amGoingTo('Configure the Default Currency');
     $I->click('#select2-chosen-7');
     $I->fillField('#s2id_autogen7_search', 'Euro');
     $I->click('.select2-result-label');
     $I->click('Save changes');
     //////////////////////
     $I->wait(3);
 }
 public function _before(\AcceptanceTester $I)
 {
     $I->loginAsAdmin();
 }
 public function _before(\AcceptanceTester $I)
 {
     // すべてのテストケース実施前にログインしておく
     // ログイン後は管理アプリのトップページに遷移している
     $I->loginAsAdmin();
 }
 public function systeminfo_セキュリティ管理ディレクトリ名(\AcceptanceTester $I)
 {
     $I->wantTo('EA0804-UC01-T02 セキュリティ管理 - ディレクトリ名変更');
     // 表示
     $config = Fixtures::get('config');
     $I->amOnPage('/' . $config['admin_route'] . '/setting/system/security');
     $I->see('システム設定セキュリティ管理', '#main .page-header');
     $I->fillField(['id' => 'admin_security_admin_route_dir'], 'test');
     $I->click('#aside_column div div div div div button');
     $I->loginAsAdmin('', '', 'test');
     $I->amOnPage('/test/setting/system/security');
     $I->fillField(['id' => 'admin_security_admin_route_dir'], $config['admin_route']);
     $I->click('#aside_column div div div div div button');
     $I->loginAsAdmin();
 }
<?php

$I = new AcceptanceTester($scenario);
$I->wantTo('activate a plugin');
$I->loginAsAdmin();
$I->amOnPluginsPage();
$I->activatePlugin('hello-dolly');
$I->seePluginActivated('hello-dolly');
$I->deactivatePlugin('hello-dolly');
$I->seePluginDeactivated('hello-dolly');