Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/JoomlaBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,28 @@ private function searchResultPluginName($pluginName)
return $path;
}

/**
* Function to Disable a Plugin
*
* @param String $pluginName Name of the Plugin
*
* @return void
*
* @since 3.0.0
*/
public function disablePlugin($pluginName)
{
$this->amOnPage('/administrator/index.php?option=com_plugins');
$this->debug('I check for Notices and Warnings');
$this->checkForPhpNoticesOrWarnings();
$this->searchForItem($pluginName);
$this->waitForElement($this->searchResultPluginName($pluginName), 30);
$this->checkExistenceOf($pluginName);
$this->click(['xpath' => "//input[@id='cb0']"]);
$this->click(['xpath' => "//div[@id='toolbar-unpublish']/button"]);
$this->see(' disabled', ['id' => 'system-message-container']);
}

/**
* Uninstall Extension based on a name
*
Expand Down