This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Firefox gets focus in the address bar #1627
Closed
Description
I test in Chrome & Firefox. In Firefox (currently 34) the URL bar gets focus since the beginning of the test. I'm testing keyboard interaction with the app but pressing left
/right
via:
browser.actions().sendKeys(protractor.Key.RIGHT).perform();
browser.actions().sendKeys(protractor.Key.LEFT).perform();
just moves the cursor in the URL bar instead of sending the action to the page. My onPrepare
block:
onPrepare: function onPrepare() {
// TODO download results from API before tests, put them in some constant and use it in tests.
// Disable animations so e2e tests run more quickly
browser.addMockModule('disableNgAnimate', function disableNgAnimate() {
angular.module('disableNgAnimate', []).run(['$animate', function ($animate) {
$animate.enabled(false);
}]);
});
browser.driver.manage().window().setSize(1024, 768);
browser.get('/');
},