\AdminPage
Abstract Class that is the parent class for all back-end page classes A page class is designed to encapsulate the page-specific attributes and behaviors.
For example, page-specific HTML markup and functionality.
Synopsis
class AdminPage
{
- // members
- protected Webdriver $driver;
- protected SeleniumConfig $cfg;
- protected $waitForXpath;
- protected JoomlaWebdriverTestCase $test;
- public $toolbar;
- protected $url;
- public $visibleMenuText;
- public $allMenuLinks;
- public $moveToElementByAttribute;
- // methods
- public void __construct()
- public void __toString()
- public bool checkForNotices()
- public void clickButton()
- public void clickMenu()
- public void clickMenuByUrl()
- public void enterTextField()
- public void getAlertMessage()
- public array getAllMenuLinks()
- public void getErrorMessage()
- public void getSystemMessage()
- public array getVisibleMenuLinks()
- public void saveAndClose()
Hierarchy
Extended by
- InstallationPage
- AdminManagerPage
- GenericAdminPage
- GlobalConfigurationPage
- AdminLoginPage
- AdminEditPage
- ControlPanelPage
- GroupManagerPage
- LevelManagerPage
- UserEditPage
- GroupEditPage
- UserNotesEditPage
- UserNotesManagerPage
- UserManagerPage
- LevelEditPage
- PluginManagerPage
- PluginEditPage
- LanguageEditPage
- TemplateManagerPage
- LanguageManagerPage
- ModuleManagerPage
- ModuleEditPage
- TemplateEditPage
- MenuItemsManagerPage
- MenuManagerPage
- MenuEditPage
- MenuItemEditPage
- NewsFeedManagerPage
- RedirectEditPage
- PostinstallPage
- WeblinkEditPage
- ContactEditPage
- TagEditPage
- ContactManagerPage
- CategoryEditPage
- BannerEditPage
- WeblinkManagerPage
- CategoryManagerPage
- BannerManagerPage
- RedirectManagerPage
- NewsFeedEditPage
- TagManagerPage
- ArticleManagerPage
- ArticleEditPage
Members
protected
- $cfg — SeleniumConfig
- $driver — Webdriver
- $test — JoomlaWebdriverTestCase
- $url — string
- $waitForXpath — string
public
- $allMenuLinks — array
- $moveToElementByAttribute
—
string
This variable creates a JavaScript function called moveToElementByAttribute. - $toolbar — array
- $visibleMenuText — array
Methods
public
- __construct()
- __toString()
- checkForNotices() — Checks for notices on a page.
- clickButton()
- clickMenu()
- clickMenuByUrl()
- enterTextField()
- getAlertMessage()
- getAllMenuLinks() — Finds all menu links in the top menu of an admin screen
- getErrorMessage()
- getSystemMessage()
- getVisibleMenuLinks() — Gets array of visible links in the menu container This is normally the header menu for back-end manager screens
- saveAndClose()