protected function assertElementUnclickable(NodeElement
$element): void
{ try { $element->
click();
$tag_name =
$element->
getTagName();
$this->
fail(new FormattableMarkup("@tag_name was clickable when it shouldn't have been",
['@tag_name' =>
$tag_name]));
} catch (\Exception
$e) { $this->
assertTrue(JSWebAssert::
isExceptionNotClickable($e));
} } /**
* Asserts that forms, links, and iframes in preview are non-interactive.
*
* @internal
*/
protected function assertLinksFormIframeNotInteractive(): void
{ $assert_session =
$this->
assertSession();
$page =
$this->
getSession()->
getPage();