Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page Object File Messaging Edit Page #3336

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
64 changes: 64 additions & 0 deletions tests/system/webdriver/Pages/Components/MessagingEditPage.php
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' => ''),
);

}