You are here

public function ThunderJavascriptTestBase::clickButtonDrupalSelector in Thunder 8.5

Same name and namespace in other branches
  1. 8.2 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::clickButtonDrupalSelector()
  2. 8.3 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::clickButtonDrupalSelector()
  3. 8.4 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::clickButtonDrupalSelector()
  4. 6.2.x tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::clickButtonDrupalSelector()
  5. 6.0.x tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::clickButtonDrupalSelector()
  6. 6.1.x tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::clickButtonDrupalSelector()

Click on Button based on Drupal selector (data-drupal-selector).

Parameters

\Behat\Mink\Element\DocumentElement $page: Current active page.

string $drupalSelector: Drupal selector.

bool $waitAfterAction: Flag to wait for AJAX request to finish after click.

4 calls to ThunderJavascriptTestBase::clickButtonDrupalSelector()
MediaGalleryModifyTest::testAddRemove in tests/src/FunctionalJavascript/MediaGalleryModifyTest.php
Test add/remove Images in Gallery.
MediaImageModifyTest::testRemoveAdd in tests/src/FunctionalJavascript/MediaImageModifyTest.php
Test add/remove image in image paragraph.
ModuleIntegrationTest::testDiffModule in tests/src/FunctionalJavascript/ModuleIntegrationTest.php
Testing integration of "diff" module.
RiddleTest::testRiddle in tests/src/FunctionalJavascript/Integration/RiddleTest.php
Testing integration of "thunder_riddle" module.

File

tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php, line 198

Class

ThunderJavascriptTestBase
Base class for Thunder Javascript functional tests.

Namespace

Drupal\Tests\thunder\FunctionalJavascript

Code

public function clickButtonDrupalSelector(DocumentElement $page, $drupalSelector, $waitAfterAction = TRUE) {
  $this
    ->clickButtonCssSelector($page, '[data-drupal-selector="' . $drupalSelector . '"]', $waitAfterAction);
}