I am new to Behat. I am currently using the Mink Extension and the Selenium2 driver and I would like to know how to specify that the test should hover over an element as part of the Scenario.
For example, here is my scenario:
Scenario: Testing that the Contact Us submenu appears
Given I am on "/"
When I hover over "About"
Then I should see "Contact Us"
I figured it out, based on this answer https://stackoverflow.com/a/17217598 and just replaced the click() with mouseOver().
Here is my FeatureContext code:
I have to pass the css selector when I use it, so usage looks like: