minkphp / MinkSelenium2Driver

Selenium2 (webdriver) driver for Mink framework
MIT License
507 stars 163 forks source link

"change" is fired twice #285

Closed hchonov closed 6 years ago

hchonov commented 6 years ago

I am testing with chrome version 67.0.3396.87, ChromeDriver 2.37.544337 and Selenium 2.31.0.

One of my tests is failing because of the "change" event being fired twice for an <input type="text"> element.

I've found that this happens because of the additional call $this->trigger($xpath, 'change'); added to \Behat\Mink\Driver\Selenium2Driver::setValue() in #244 .

I have a lot of tests and they all seem to pass when I simply remove the additional triggering of the "change" event.