gemini icon indicating copy to clipboard operation
gemini copied to clipboard

Can’t find element in firefox

Open anechunaev opened this issue 6 years ago β€’ 6 comments

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

anechunaev avatar Jul 06 '18 08:07 anechunaev

Having same issue. Any news on that?

nongrata081 avatar Aug 02 '18 14:08 nongrata081

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

anechunaev avatar Aug 03 '18 07:08 anechunaev

hi

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

sipayRT avatar Aug 03 '18 09:08 sipayRT

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).

anechunaev avatar Aug 03 '18 12:08 anechunaev

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.

ghost avatar Aug 03 '18 19:08 ghost

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

parmeet22 avatar Aug 23 '18 11:08 parmeet22