gemini icon indicating copy to clipboard operation
gemini copied to clipboard

Gemini incompatible with latest firefox v50

Open rahuldpi opened this issue 7 years ago • 29 comments

I was trying to run the test using gemini on firefox (v50.0.2), although the firefox browser opened successfully, it didn't open the url in the address bar. Then in the terminal I saw this error message:

Cannot launch browser firefox: [init({"browserName":"firefox"})] The environment you requested was unavailable.

Command:

sudo gemini update test.js

Code:

module.exports = {
    rootUrl: 'http://example.com',
    gridUrl: 'http://127.0.0.1:4444/wd/hub',

    browsers: {
        chrome: {
           desiredCapabilities: {
              browserName: 'chrome'
           }
        },
		'firefox-latest': {
			desiredCapabilities: {
                browserName: "firefox"
            }
		}
    }
};

The test runs successfully on chrome browser. I'm running MacOSX Sierra.

In the below link its mentioned that "Firefox v48+ requires Mozilla's geckodriver". Is it possible to install geckodriver with gemini? And can someone show how we can use it along with gemini?

https://groups.google.com/forum/#!topic/selenium-users/kDsWkujq0Y4

rahuldpi avatar Dec 08 '16 09:12 rahuldpi

hi. there was broken changes with FF driver. And wd tool doesn't support it yet. Try to use lower version, pls (for example, 46)

sipayRT avatar Dec 19 '16 15:12 sipayRT

the same - https://github.com/gemini-testing/gemini/issues/643

sipayRT avatar Dec 19 '16 15:12 sipayRT

The same issue also exist on Safari Version 10.0.1.

rahuldpi avatar Dec 20 '16 11:12 rahuldpi

@sipayRT Hi guys, are you going to do something about it? Firefox 48+ is no supported by gemini.

leonsabr avatar Aug 09 '17 13:08 leonsabr

@sipayRT Hi guys, is there any chance to fix this issue in the near future, as Firefox has reached version 55?

florinalex24 avatar Aug 29 '17 13:08 florinalex24

main problem it's wd old version. We are going to drop support [email protected] and update wd to the latest version

sipayRT avatar Aug 31 '17 14:08 sipayRT

@sipayRT is there any ticket and ETA for this issue with wd version? same problems with FF :(

bobanko avatar Nov 23 '17 18:11 bobanko

unfortunately firefox still broken in wd - https://github.com/admc/wd/issues/495

sipayRT avatar Nov 24 '17 07:11 sipayRT

Chrome is also broken?

campside avatar Dec 06 '17 13:12 campside

no. Chrome should work fine

sipayRT avatar Dec 06 '17 13:12 sipayRT

module.exports = {
    rootUrl: 'http://yandex.ru',
    gridUrl: 'http://127.0.0.1:4444/wd/hub',

    browsers: {
        chrome: {
            desiredCapabilities: {
                browserName: 'chrome'
            }
        }
    }
};
gemini.suite('yandex-search', (suite) => {
    suite.setUrl('/')
        .setCaptureElements('.home-logo')
        .capture('plain');
});

gemini test --reporter flat

I get http://prntscr.com/hjvefz and then: http://prntscr.com/hjvern

campside avatar Dec 06 '17 14:12 campside

@campside hello. Are you sure that you run selenium standalone before running tests?

DudaGod avatar Dec 06 '17 14:12 DudaGod

@DudaGod Yes, chrome would not start at all otherwise, http://prntscr.com/hjw0c0, I run webdriverio tests with it, gemini version is latest available 5.0

campside avatar Dec 06 '17 14:12 campside

can you provide chrome and chrome-driver(from selenium-standalone) versions?

sipayRT avatar Dec 07 '17 08:12 sipayRT

Latest available: 62.0.3202.94 64bit selenium-standalone, also latest available through install: http://prntscr.com/hk7jvz MacOs: 10.12.6

campside avatar Dec 07 '17 08:12 campside

hm...

MacOs: 10.12.6
[email protected]
[email protected]
chrome 63.0.3239.84
[email protected] with 2.33-x64-chromedriver

works fine for me

sipayRT avatar Dec 07 '17 08:12 sipayRT

will check everything one more time

campside avatar Dec 07 '17 08:12 campside

same configuration, reinstalled modules same thing: green screen on running chrome then failure.

Is it possible that something could be missing in quick-start description? My colleague has the same result.

campside avatar Dec 07 '17 09:12 campside

We have found the problem, we added: calibrate: false in .gemini.js

module.exports = {
    rootUrl: 'http://yandex.ru',
    gridUrl: 'http://127.0.0.1:4444/wd/hub',

    calibrate: false,

    browsers: {
        chrome: {
            desiredCapabilities: {
                browserName: 'chrome'
            }
        }
    }
};

campside avatar Dec 07 '17 09:12 campside

but it's wrong solution - gemini should work with calibrate too

sipayRT avatar Dec 07 '17 14:12 sipayRT

We have not found another way to run it

campside avatar Dec 07 '17 16:12 campside

Is it possible in this case to update README and reflect the fact, that Firefox support is limited by older browsers?

betalb avatar Feb 01 '18 22:02 betalb

I have build a docker image which support firefox 47.0.1, you could have a try here: https://github.com/Kenith/ta-visual-lib, and you could also get the samples.

Hope could be the help

Kenith avatar Apr 18 '18 17:04 Kenith

Looks like this wd library is abandoned by maintainers. There is an open PR fixing that with no reaction for half a year https://github.com/admc/wd/pull/494

@sipayRT How do you feel about considering alternatives (webdriver.io or something else)?

Hypnosphi avatar May 10 '18 15:05 Hypnosphi

@Hypnosphi, the latest commit in wd repo was 11 days ago. Firefox example works fine at http://webdriver.io/guide.html.

generalov avatar May 11 '18 17:05 generalov

the latest commit in wd repo was 11 days ago

OK, I'll try to summon the maintainer in that PR

Firefox example works fine at http://webdriver.io/guide.html

Yes, that's on of the reasons why I've suggested webdriver.io as an alternative

Hypnosphi avatar May 11 '18 17:05 Hypnosphi

It seems like wd fixed it in https://github.com/admc/wd/pull/533.

kennyw12 avatar Aug 01 '18 00:08 kennyw12

Gemini still fails for me with FF 61 and wd 1.10.1:

Cannot launch browser firefox:
Could not calibrate. This could be due to calibration page has failed to open properly.

Hypnosphi avatar Aug 02 '18 16:08 Hypnosphi

@sipayRT Please have a look at #928, seems similar.

ghost avatar Aug 23 '18 07:08 ghost