Codeception\Module\WPBrowser::activatePlugin PHP Method

activatePlugin() public method

The method will presume the browser is in the plugin screen already.
public activatePlugin ( string $pluginSlug ) : void
$pluginSlug string The plugin slug, like "hello-dolly".
return void
    public function activatePlugin($pluginSlug)
    {
        $this->checkOption('//*[@data-slug="' . $pluginSlug . '"]/th/input');
        $this->selectOption('action', 'activate-selected');
        $this->click("doaction");
    }