I'm trying to test whether navigating with the tab key works on my system. Here is my code:
define('TAB_CHARCODE', 9);
define('NO_MODIFIER', '');
// ....
$this->getSession()->getPage()->find('css', ':focus')->keyPress(TAB_CHARCODE, NO_MODIFIER);
This yields: "The pseudo-class focus is unsupported" How does one obtain, in Behat, the currently focused element? Cheers,
Albert