Skip to content
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
mgol opened this issue Dec 11, 2014 · 3 comments
Closed

Firefox gets focus in the address bar #1627

mgol opened this issue Dec 11, 2014 · 3 comments

Comments

@mgol
Copy link
Member

mgol commented Dec 11, 2014

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('/');
    },
@mgol
Copy link
Member Author

mgol commented Dec 11, 2014

@hankduan
Copy link
Contributor

I reported it here already: https://code.google.com/p/selenium/issues/detail?id=8180

@hankduan
Copy link
Contributor

Closing this as duplicate: #1511

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants