function JSWebAssert::isExceptionNotClickable
Same name in other branches
- 9 core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php \Drupal\FunctionalJavascriptTests\JSWebAssert::isExceptionNotClickable()
- 11.x core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php \Drupal\FunctionalJavascriptTests\JSWebAssert::isExceptionNotClickable()
Determines if an exception is due to an element not being clickable.
Parameters
\WebDriver\Exception $exception: The exception to check.
Return value
bool TRUE if the exception is due to an element not being clickable, interactable or visible.
3 calls to JSWebAssert::isExceptionNotClickable()
- DrupalSelenium2Driver::click in core/
tests/ Drupal/ FunctionalJavascriptTests/ DrupalSelenium2Driver.php - DrupalSelenium2Driver::setValue in core/
tests/ Drupal/ FunctionalJavascriptTests/ DrupalSelenium2Driver.php - LayoutBuilderDisableInteractionsTest::assertElementNotClickable in core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ LayoutBuilderDisableInteractionsTest.php - Checks if element is not clickable.
File
-
core/
tests/ Drupal/ FunctionalJavascriptTests/ JSWebAssert.php, line 584
Class
- JSWebAssert
- Defines a class with methods for asserting presence of elements during tests.
Namespace
Drupal\FunctionalJavascriptTestsCode
public static function isExceptionNotClickable(Exception $exception) : bool {
return (bool) preg_match('/not (clickable|interactable|visible)/', $exception->getMessage());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.