MediaWiki  REL1_19
SeleniumTestCase Class Reference
Inheritance diagram for SeleniumTestCase:

List of all members.

Public Member Functions

 __call ($method, $args)
 assertSeleniumAttributeEquals ($attribute, $value)
 assertSeleniumHTMLContains ($element, $text)
 clearWikiEditor ()
 clickEditLink ()
 clickSavePageBtn ()
 clickShowPreviewBtn ()
 createNewTestPage ($pagePrefix, $watchThis=false)
 Create a test page using date as part of the name so that it is unique.
 createTestPageIfMissing ($pageName=null)
 Create a test fixture page if one does not exist.
 getExistingPage ()
 getNewPage ($pageName)
 loadWikiEditor ()
 setUp ()
 tearDown ()

Protected Attributes

 $selenium

Detailed Description

Definition at line 4 of file SeleniumTestCase.php.


Member Function Documentation

SeleniumTestCase::__call ( method,
args 
)

Definition at line 16 of file SeleniumTestCase.php.

SeleniumTestCase::assertSeleniumAttributeEquals ( attribute,
value 
)

Definition at line 20 of file SeleniumTestCase.php.

SeleniumTestCase::assertSeleniumHTMLContains ( element,
text 
)

Definition at line 25 of file SeleniumTestCase.php.

Referenced by MediawikiCoreSmokeTestCase\testImageUpload().

Here is the caller graph for this function:

SeleniumTestCase::createNewTestPage ( pagePrefix,
watchThis = false 
)

Create a test page using date as part of the name so that it is unique.

Parameters:
$pagePrefixThe prefix to use for the page name. The current date will be appended to this to make it unique
$watchThisWhether to add the page to my watchlist. Defaults to false.

Definition at line 60 of file SeleniumTestCase.php.

References SeleniumTestConstants\BUTTON_SAVE, SeleniumTestConstants\BUTTON_SEARCH, SeleniumTestConstants\INPUT_SEARCH_BOX, SeleniumTestConstants\LINK_START, SeleniumTestConstants\TEXT_EDITOR, SeleniumTestConstants\TEXT_PAGE_HEADING, and SeleniumTestConstants\WIKI_TEST_WAIT_TIME.

Referenced by MyWatchListTestCase\testMyWatchlist(), and MyContributionsTestCase\testRecentChangesAvailability().

Here is the caller graph for this function:

Definition at line 88 of file SeleniumTestCase.php.

Referenced by PreviewPageTestCase\testPreviewPage(), and SavePageTestCase\testSavePage().

Here is the caller graph for this function:

Definition at line 7 of file SeleniumTestCase.php.

References Selenium\getInstance().

Here is the call graph for this function:

Definition at line 12 of file SeleniumTestCase.php.


Member Data Documentation

SeleniumTestCase::$selenium [protected]

Definition at line 5 of file SeleniumTestCase.php.


The documentation for this class was generated from the following file: