Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Can’t find element in firefox #923

Open
anechunaev opened this issue Jul 6, 2018 · 6 comments
Open

Can’t find element in firefox #923

anechunaev opened this issue Jul 6, 2018 · 6 comments

Comments

@anechunaev
Copy link

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
Copy link

Having same issue. Any news on that?

@anechunaev
Copy link
Author

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

@sipayRT
Copy link
Member

sipayRT commented Aug 3, 2018

hi

what firefox version do you use? maybe it's because of #688

@anechunaev
Copy link
Author

anechunaev commented Aug 3, 2018

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
Copy link

ghost commented Aug 3, 2018

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
Copy link

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

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

No branches or pull requests

4 participants