Adding an exception when the file you are trying to attach is not found
I was trying to attach a file to a field and the step "passed" then I saw that the file was actually not attached, after a quick check I figured out that the file was deleted but I got the step "passing". I've decided that it will be a good idea to add an exception when the file you are trying to attach is not found.
This is realted to 'attachFileToField' function.
What if you're using SauceLabs, where Selenium isn't running locally and you can't really check that file exists?
It has nothing to do with Selenium/PhantomJS. The check is performed on the environment from where Behat is started.
Shouldn't we move the check deeper into the code, so that no matter how upload is invoked we still check, that does exist? Maybe into Mink code itself?
I'm open for any suggestions.