From 194f9aa22babfd4f7f007859f8498948b0a66e5a Mon Sep 17 00:00:00 2001 From: Puneet Kala Date: Mon, 19 Mar 2018 15:51:03 +0530 Subject: [PATCH] Adding the Control Panel text --- src/JoomlaBrowser.php | 2 +- src/Locators/Locators.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/JoomlaBrowser.php b/src/JoomlaBrowser.php index b7825d4..82d4531 100644 --- a/src/JoomlaBrowser.php +++ b/src/JoomlaBrowser.php @@ -134,7 +134,7 @@ public function doAdministratorLogin($user = null, $password = null) $this->debug('I click Login button'); $this->click($this->locator->adminLoginButton); $this->debug('I wait to see Administrator Control Panel'); - $this->waitForText('Control Panel', 4, $this->locator->controlPanelLocator); + $this->waitForText($this->locator->adminControlPanelText, 4, $this->locator->controlPanelLocator); } /** diff --git a/src/Locators/Locators.php b/src/Locators/Locators.php index 02170b6..4970eb6 100644 --- a/src/Locators/Locators.php +++ b/src/Locators/Locators.php @@ -121,4 +121,12 @@ class Locators * @since 3.7.5 */ public $adminToolbarButtonApply = ['class' => 'button-apply']; + + /** + * Admin Control Panel Text + * + * @var array + * @since 3.7.5 + */ + public $adminControlPanelText = 'Control Panel'; }