gemini
gemini copied to clipboard
Canβt find element in firefox
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
Having same issue. Any news on that?
Not figured it out yet. I just skip tests in FF.
hi
what firefox version do you use? maybe it's because of https://github.com/gemini-testing/gemini/issues/688
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).
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.
any workaround for this? facing the same issue on ff and ie