Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding code for Page Object Messaging Edit Page
- Loading branch information
1 parent
1fd4cee
commit 1f5b5ca
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
tests/system/webdriver/Pages/Components/MessagingEditPage.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php | ||
|
||
use SeleniumClient\By; | ||
use SeleniumClient\SelectElement; | ||
use SeleniumClient\WebDriver; | ||
use SeleniumClient\WebDriverWait; | ||
use SeleniumClient\DesiredCapabilities; | ||
use SeleniumClient\WebElement; | ||
|
||
/** | ||
* @package Joomla.Test | ||
* @subpackage Webdriver | ||
* | ||
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE | ||
*/ | ||
|
||
/** | ||
* Page class for the back-end menu items manager screen. | ||
* | ||
* @package Joomla.Test | ||
* @subpackage Webdriver | ||
* @since 3.2 | ||
*/ | ||
class MessagingEditPage extends AdminEditPage | ||
{ | ||
/** | ||
* XPath string used to uniquely identify this page | ||
* | ||
* @var string | ||
* @since 3.2 | ||
*/ | ||
protected $waitForXpath = "//form[@id='message-form']"; | ||
|
||
/** | ||
* URL used to uniquely identify this page | ||
* | ||
* @var string | ||
* @since 3.2 | ||
*/ | ||
protected $url = 'administrator/index.php?option=com_messages&view=message&layout=edit'; | ||
|
||
/** | ||
* Array of tabs present on this page | ||
* | ||
* @var array | ||
* @since 3.2 | ||
*/ | ||
public $tabs = array(''); | ||
|
||
/** | ||
* Array of all the field Details of the Edit page, along with the ID and tab value they are present on | ||
* | ||
* @var array | ||
* @since 3.2 | ||
*/ | ||
public $inputFields = array ( | ||
array('label' => 'Recipient', 'id' => 'jform_user_id_to', 'type' => 'input', 'tab' => ''), | ||
array('label' => 'Subject', 'id' => 'jform_subject', 'type' => 'input', 'tab' => ''), | ||
array('label' => 'Description', 'id' => 'jform_message_ifr', 'type' => 'textarea', 'tab' => ''), | ||
); | ||
|
||
} | ||
|