Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to run selenium tests on elm/file #24

Open
francescortiz opened this issue Apr 17, 2020 · 3 comments
Open

Impossible to run selenium tests on elm/file #24

francescortiz opened this issue Apr 17, 2020 · 3 comments

Comments

@francescortiz
Copy link

Selenium tests needs access to the html input but elm/file never places its input element in the dom.

What approach do you use/suggest?

Thanks in advance.

@francescortiz
Copy link
Author

I just found that I can trick the window manager with auxiliary OS tools, but I wonder if there is a workaround you know of.

@francescortiz
Copy link
Author

With headless selenium the OS tools don't have any effect, so I came out with a hack to do it:

https://discourse.elm-lang.org/t/showcasing-how-to-do-tests-for-elm-file-with-selenium/5574

But I think that a cleaner fix would still be needed.

@JonnieCache
Copy link

JonnieCache commented Jun 28, 2022

This is causing me problems as well, and the above fix is too hacky for me.

What would be ideal tbh is if the file input element was appended invisibly to the document body and then removed again at the end of the change callback here but I can see that may not be viable.

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

No branches or pull requests

2 participants