# Testing file open in Selenium

**URL:** <https://discourse.elm-lang.org/t/testing-file-open-in-selenium/5394>\
**Category:** Learn\
**Created:** [March 31, 2020, 6:16am UTC](https://discourse.elm-lang.org/t/testing-file-open-in-selenium/5394 "2020-03-31T06:16:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deimos](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/deimos/32/2359_2.png) [@Deimos](https://discourse.elm-lang.org/u/Deimos)\
**Post date:** [March 31, 2020, 6:16am UTC](https://discourse.elm-lang.org/t/testing-file-open-in-selenium/5394/1 "2020-03-31T06:16:54Z")

</div>

Greetings,  
I’m trying to test my Elm SPA using Selenium. My application supports saving JSON files to the user’s computer (using elm/file’s `Download` module) & opening them again with elm/file’s `Select` module.

The problem is, elm/file creates an `input` node, but does not put it in the DOM (cf. [File.js line 119](https://github.com/elm/file/blob/master/src/Elm/Kernel/File.js#L119)) so Selenium cannot see it.

Would you have any idea how I could open the JSON file from Selenium?

---

<div class="post-metadata">

**Author:** ![francescortiz](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/francescortiz/32/1721_2.png) [@francescortiz](https://discourse.elm-lang.org/u/francescortiz)\
**Post date:** [April 3, 2020, 8:29pm UTC](https://discourse.elm-lang.org/t/testing-file-open-in-selenium/5394/2 "2020-04-03T20:29:44Z")

</div>

If that is the case, I think you should either create a port to report information to selenium, or open an issue in elm/file github.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [April 13, 2020, 8:29pm UTC](https://discourse.elm-lang.org/t/testing-file-open-in-selenium/5394/3 "2020-04-13T20:29:46Z")

</div>

Closed on April 13, 2020, 8:29pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
