gemini-testing / gemini

💀💀💀[DEPRECATED] Use hermione
https://github.com/gemini-testing/hermione
MIT License
1.5k stars 149 forks source link

Can’t find element in firefox #923

Open anechunaev opened 6 years ago

anechunaev commented 6 years ago

Hi there. I have some troubles with test run in firefox. It seems that browser can’t find element or it return result in different format. Is it gemini or geckoDriver issue? Or maybe there is any other way to find element?

By the way, this test works as expected in chrome without any issues.

I start selenium grid with selenium-standalone package.

Gemini version: 5.7.2 GeckoDriver version: 0.20.1 Selenium-standalone version: 6.15.1 OS: MacOS High Sierra 10.13.5

Test source code:

gemini.suite('Button', function(suite) {
    suite
        .setUrl('/Button')
        .setCaptureElements('*[data-capture="plain"]')
        .before(function(_actions, find) {
            this.button = find("*[data-el='plain']");
        })
        .capture('plain')
        .capture('hovered', function(actions) {
            actions.mouseMove(this.button);
        })
        .capture('pressed', function(actions) {
            actions.mouseDown(this.button);
        })
        .capture('clicked', function(actions) {
            actions.mouseUp(this.button);
        })
});

Report:

✓ Alert plain [chrome]
✓ Alert plain [firefox]
✓ Button plain [chrome]
✓ Button hovered [chrome]
✓ Button plain [firefox]
✘ Button hovered [firefox]
[elementByCssSelector("*[data-el='plain']")] no ELEMENT in response value field.
✓ Button pressed [chrome]
✘ Button pressed [firefox]
[elementByCssSelector("*[data-el='plain']")] no ELEMENT in response value field.
✘ Button clicked [firefox]
[elementByCssSelector("*[data-el='plain']")] no ELEMENT in response value field.
✓ Button clicked [chrome]
Total: 10 Passed: 7 Failed: 3 Skipped: 0 Retries: 0
nongrata081 commented 6 years ago

Having same issue. Any news on that?

anechunaev commented 6 years ago

Not figured it out yet. I just skip tests in FF.

sipayRT commented 6 years ago

hi

what firefox version do you use? maybe it's because of https://github.com/gemini-testing/gemini/issues/688

anechunaev commented 6 years ago

I think it's kind of different. I can launch FF with geckoDriver, it's also possible to capture elements without interaction. It only fails when i try to find element with find function inside before or capture methods.

I have latest version installed (v.61 atm).

ghost commented 6 years ago

Might be related to a wd.js issue I'm having: I can't find elements with the latest wd.js and firefox (61) Error: [elementByCss("#username")] no ELEMENT in response value field.(I can clearly see its visible in screenshots)

The same code worked fine until I upgraded wd.js to 1.10.3 and to firefox 61.

parmeet22 commented 6 years ago

any workaround for this? facing the same issue on ff and ie