function LayoutBuilderIntegrationTest::movePointerTo
Moves mouse pointer to location of $selector.
Parameters
string $selector: CSS selector.
1 call to LayoutBuilderIntegrationTest::movePointerTo()
- LayoutBuilderIntegrationTest::testCustomBlock in core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ LayoutBuilderIntegrationTest.php - Tests if a custom can be in-place edited with Quick Edit.
File
-
core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ LayoutBuilderIntegrationTest.php, line 356
Class
- LayoutBuilderIntegrationTest
- @group quickedit @group legacy
Namespace
Drupal\Tests\quickedit\FunctionalJavascriptCode
protected function movePointerTo($selector) {
$driver_session = $this->getSession()
->getDriver()
->getWebDriverSession();
$element = $driver_session->element('css selector', $selector);
$driver_session->moveto([
'element' => $element->getID(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.