It seems that with recent Chrome (v53) Key::TAB as used in here: https://github.com/minkphp/MinkSelenium2Driver/blob/master/src/Selenium2Driver.php#L681 will actually cause the character \t to be added into the input-box, instead of "hitting the tab key".
I can not reproduce it on a normal workstation setup (e.g. real desktop), but it does not work on a headless chrome setup (Ubuntu 15.10 / selenium-server-standalone-2.53.1.jar):
$ google-chrome-stable --version
Google Chrome 53.0.2785.92
$ chromedriver --version
ChromeDriver 2.23.409687 (c46e862757edc04c06b1bd88724d15a5807b84d1)
Can be reproduced (headless-browser) with the following snippet:
<?php
ini_set('display_errors', true);
error_reporting(E_ALL);
require 'vendor/autoload.php';
$driver = new \Behat\Mink\Driver\Selenium2Driver('chrome');
$session = new \Behat\Mink\Session($driver);
$session->start();
$session->visit('http://localhost/admin/login');
sleep(2);
$session->getPage()->fillField('email', 'test@test.test');
$session->getPage()->fillField('password', 'abcdef');
$session->getPage()->pressButton('login');
selenium-server is started like this:
screen -S selenium -d -m sh -c "DBUS_SESSION_BUS_ADDRESS=/dev/null xvfb-run -s '-screen 0 1024x768x24' -a java -jar /opt/selenium-server/selenium-server-standalone.jar > /home/bamboo/selenium.stdout.log 2> /home/bamboo/selenium.stderr.log"
$ java -version
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
Swapping out the browser from chrome to firefox (version 46.0.1) works, as well as removing that Key::TAB from the code above (however not sure if it is the right fix, as obviously it should be working?).
It seems that with recent Chrome (v53)
Key::TABas used in here: https://github.com/minkphp/MinkSelenium2Driver/blob/master/src/Selenium2Driver.php#L681 will actually cause the character\tto be added into the input-box, instead of "hitting the tab key".I can not reproduce it on a normal workstation setup (e.g. real desktop), but it does not work on a headless chrome setup (Ubuntu 15.10 / selenium-server-standalone-2.53.1.jar):
Can be reproduced (headless-browser) with the following snippet:
selenium-server is started like this:
Swapping out the browser from chrome to firefox (version 46.0.1) works, as well as removing that
Key::TABfrom the code above (however not sure if it is the right fix, as obviously it should be working?).