Recently I began working with Behat and Selenium for website test automation. One issue I've encountered is that some CSS selectors work in Chrome but not in Firefox.
For instance, in my Behat code:
Then I press ".topmember-resultList .resultListItem .resultListInteractions div:nth-child(1)"
The 'Ipress' method looks for an element using the selector and clicks on it.
While this works perfectly in Chrome, the tests fail in Firefox because the element cannot be found. This problem seems to occur specifically when using nth-child, even though Firefox (48.0) should support it according to my knowledge.