Use a select outside of a form with CasperJS
I want to select an entry into a select. How I can do that with CasperJS. Some information you need to know : I can't modify the page. My task is only to write the test. The select markup is not included in a form. I cannot use the document.querySelector(MY_SELECT).selectedIndex = X; method because changing the select (with normal behaviour) throw some event I need, and they are not thrown with simple affectation. Do you want to just simulate the normal behaviour? That's right in some issue manipulate the DOM isn't sufficient (the events are not thrown and so you can't send your form because