Unfortunately Behat never throws any exceptions at all. I have my debugging set to the maximum as this is just a development workstation, but no errors about connecting to Selenium.
Behat goes though all tests:
c:\Projects\mcleanj\Moodle 2\...\moodle>vendor\bin\behat --
config D:\moodle2_local_behat_dataroot\behat\behat.yml
...F--------...F---------...F---------------.F--------.F-------------. 70
F------...F-----------...F-------------...F--------...F----------...F- 140
-...F----------------------....F------------------------------...F---- 210
---------------...F-------------------------------------------...F---- 280
[...snipped...]
-----------.F-----.F----------...F-----------...F-----------.F-------- 3430
-.F---------------.F----------.F--------------.F---------------------- 3500
---------.F--------------------...F---------------------...F---------- 3570
-----------
Then Behat throws a heap of errors:
(: failed steps (:
01. Link matching locator "'Login'" not found.
In step `And I log in as "teacher1"'. # behat_auth::i_log_in_as()
From scenario background. # C:\Projects\mcleanj\Mood
le 2\...\moodle\blocks\comments\tests\behat\add_comment.feature:7
Of feature `Add a comment to the comments block'. # C:\Projects\mcleanj\Mood
le 2\...\moodle\blocks\comments\tests\behat\add_comment.feature
02. Link matching locator "'Login'" not found.
In step `And I log in as "teacher1"'. # behat_auth::i_log_in_as()
From scenario background. # C:\Projects\mcleanj\Mood
le 2\...\moodle\blocks\comments\tests\behat\add_comment.feature:7
Of feature `Add a comment to the comments block'. # C:\Projects\mcleanj\Mood
le 2\...\moodle\blocks\comments\tests\behat\add_comment.feature
[...snipped...]
177. Link matching locator "'Login'" not found.
In step `And I log in as "admin"'.
# behat_auth::i_log_in_as()
From scenario `Show section greyed-out to students when completion conditions are not satisfied'. # C:\Projects\mcleanj\Moodle 2\...\moodle\completion\tests\behat\restrict_section_availability.feature:8
Of feature `Restrict sections availability through completion conditions'.
# C:\Projects\
mcleanj\Moodle 2\...\moodle\completion\tests\behat\restrict_section_availability.feature
177 scenarios (177 failed)
3581 steps (420 passed, 2984 skipped, 177 failed)
61m32.791s
So, perhaps Behat isn't installed correctly?