I'm currently running osx 10.9.2, protractor version 0.21.0, selenium-server-standalone version 2.40.0, and chromedriver version 2.9.
I have encountered some issues that I believe are related to a window focusing problem.
When I execute my end-to-end test using protractor, the browser window appears but my terminal remains in focus. This is evident from the fact that "Terminal" is displayed in my menu bar instead of "Chrome" (which indicates which application is active on OSX).
I attempted to resolve this by trying the following without success:
browser.driver.getAllWindowHandles().then(function(handles) {
console.log(handles[0]);
browser.driver.switchTo().window(handles[0]);
});
This issue results in certain tests failing. For instance, tests that involve clicking on a field with a bootstrap datepicker do not display the calendar, causing the test to be unable to interact with the datepicker.
The problem is exacerbated when using Firefox. In Firefox, dropdown menus do not appear when clicked if the browser is not in focus.
Interestingly, manually clicking on the browser window after it initially appears allows the tests to run normally.
Attempting the tests on a freshly installed Debian Linux system yielded similar behavior as described above.
Here are links to my configuration files: https://gist.github.com/giosakti/ca24a13705d15f4374b0