‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Mouse Class Reference

Public Member Functions

 __construct (ApplicationTester $I)
 
 dragAndDrop (string $source, string $target)
 
 dragTo (string $source, string $target, bool $release=true)
 
 release ()
 

Private Member Functions

 findElement (string $selector)
 
 getMouse ()
 

Private Attributes

ApplicationTester $tester
 

Detailed Description

Several mouse actions for Backend usage.

Definition at line 34 of file Mouse.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Mouse::__construct ( ApplicationTester  $I)

Definition at line 38 of file Mouse.php.

Member Function Documentation

◆ dragAndDrop()

TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Mouse::dragAndDrop ( string  $source,
string  $target 
)

Perform drag and drop from source to target destination.

Performs a normal "drag nd drop" operation from the given source element to the given target destination. Additionally, checks whether the current drag & drop node is displayed on the page.

[!] Note that only CSS selectors or xpath are valid for both $source and $target.

Parameters
string$source‪Drag source, must be a valid CSS selector or xpath
string$target‪Drop target, must be a valid CSS selector or xpath

Definition at line 55 of file Mouse.php.

References TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Mouse\$tester, TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Mouse\dragTo(), and TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Mouse\release().

Referenced by TYPO3\CMS\Core\Tests\Acceptance\Application\PageTree\PageCreationWithDragAndDropCest\dragAndDropNewPageAndLeavePageTitleEmpty(), and TYPO3\CMS\Core\Tests\Acceptance\Application\PageTree\PageCreationWithDragAndDropCest\dragAndDropNewPageAndQuitPageCreation().

◆ dragTo()

TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Mouse::dragTo ( string  $source,
string  $target,
bool  $release = true 
)

Drag source element to target destination.

Uses the mouse to drag the given source element to the given target destination. If $release is set to true, the mouse is released afterwards. In this case, a normal "drag and drop" action is performed.

[!] Note that only CSS selectors or xpath are valid for both $source and $target.

Parameters
string$source‪Drag source, must be a valid CSS selector or xpath
string$target‪Drag target, must be a valid CSS selector or xpath
bool$releasetrue if mouse should be released (default), false otherwise

Definition at line 76 of file Mouse.php.

References TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Mouse\findElement(), TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Mouse\getMouse(), and TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Mouse\release().

Referenced by TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Mouse\dragAndDrop().

◆ findElement()

TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Mouse::findElement ( string  $selector)
private

◆ getMouse()

TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Mouse::getMouse ( )
private

◆ release()

TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Mouse::release ( )

Member Data Documentation

◆ $tester