jcalderonzumba/MinkPhantomJSDriver

`TraversableElement::fillField()` function should also work for `select` type fields

Opened this issue · 4 comments

The TraversableElement::fillField()( which uses Driver::setValue() eventually) function should also work for _select_ type fields according to the PHPDocs. However it doesn't but using TraversableElement::selectFieldOption() (which uses Driver::selectOption() in turn) works for the same element and same arguments. It looks like there is a Bug here and it should be fixed.

Can you point me to the PHPDocs, i need to know where the bug appears, as you might know as a Mink Driver we "just" implement the driver interface so either this bug is on our interface implementation or in Mink itself.

Have you tried fillField with other Driver? if it works with other driver (Selenium perhaps) then it is definitely a bug with our implementation.

Here is the PHPdoc

I have not tried this with any other driver, as I can't use none-headless drivers (selenium), and phantomjs is the only one I have setup among the headless ones. I had the symfony one, but it had other problems.

Mink's PHPDocs are incoherent in the DriverInterface::setValue() with the way it uses it in TraversableElement::fillField(). So it's mostly them.

@thedamnedrhino thanks, probably setValue is the problem. They might expect to work with input, textarea and select. That might be the "bug", however there's no test or error on the driver test suite.
I'll see what i can do.