You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use mink to interact with some javascript managed fields (with select2 jquery plugin for example).
I recently upgrade Behat 2.X to 3.X on a project. But some features are broken because of the setValue function :
if (in_array($elementName, array('input', 'textarea'))) {
$existingValueLength = strlen($element->attribute('value'));
// Add the TAB key to ensure we unfocus the field as browsers are triggering the change event only// after leaving the field.$value = str_repeat(Key::BACKSPACE . Key::DELETE, $existingValueLength) . $value . Key::TAB;
}
I use Mink to open the select field, search for a value and pick up one in the result. But the driver force a tabulation key press and the search is canceled.
Is it possible to change how the function working and allow user to not enforce unfocus when he set a field value ?
I look at the SahiDriver to make a comparison and this behaviour is not consistent with others drivers.
The text was updated successfully, but these errors were encountered:
I use mink to interact with some javascript managed fields (with select2 jquery plugin for example).
I recently upgrade Behat 2.X to 3.X on a project. But some features are broken because of the
setValue
function :I use Mink to open the select field, search for a value and pick up one in the result. But the driver force a tabulation key press and the search is canceled.
Is it possible to change how the function working and allow user to not enforce unfocus when he set a field value ?
I look at the SahiDriver to make a comparison and this behaviour is not consistent with others drivers.
The text was updated successfully, but these errors were encountered: