function 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::assertElementUnclickable in core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ LayoutBuilderDisableInteractionsTest.php  - Checks if element is unclickable.
 
File
- 
              core/
tests/ Drupal/ FunctionalJavascriptTests/ JSWebAssert.php, line 512  
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.