From: José R. | I. S.L. <jr...@id...> - 2017-08-10 13:16:44
|
Regarding the "file" type, I could not find any. Only this: <form action="/images/upload-image-auth.php" method="post" class="dropzone dz-clickable dz-started" drop-zone="" id="photoUploader" enctype="multipart/form-data"> The multipart is the only thing related to files I can see here... 2017-08-10 9:26 GMT+02:00 Ronald Brill <rb...@rb...>: > On Wed, 9 Aug 2017 18:58:31 +0200 José Román | Idiria S.L. wrote: > > > >1.- Open the selection dialog (or simulate it). > >2.- Make JS process the selected files. > > > Without have access to the real page an answer is not that simple. > > >1.- Open the selection dialog (or simulate it). > Usuall there is a input control with type 'file' somewhere on the page. > This is more or less the only way to add files to a form to upload them. > You have to find that control > and use setValueAttribute with the absolute path of the file. > > >2.- Make JS process the selected files. > As always there is nothing special - there is no need to deal with the js > itselt. Simply do the same you do in the real browser e.g. click the submit > button. HtmlUnit tries to do > exactyl the same js processing as real browsers. > > > RBRi > -------------------------- > WETATOR > Smart web application testing > http://www.wetator.org > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > -- *José Román Bilbao Castro* Ingeniero Consultor +34 901009188 *jr...@id... <jr...@id...>**http://idiria.com <http://www.idiria.com/>* <*http:// <http://%20%20/>idiria.com/ <http://idiria.com/>*> -- Idiria Sociedad Limitada - Aviso legal Este mensaje, su contenido y cualquier fichero transmitido con él está dirigido únicamente a su destinatario y es confidencial. Por ello, se informa a quien lo reciba por error ó tenga conocimiento del mismo sin ser su destinatario, que la información contenida en él es reservada y su uso no autorizado, por lo que en tal caso le rogamos nos lo comunique por la misma vía o por teléfono (+ 34 690207492), así como que se abstenga de reproducir el mensaje mediante cualquier medio o remitirlo o entregarlo a otra persona, procediendo a su borrado de manera inmediata. Idiria Sociedad Limitada se reserva las acciones legales que le correspondan contra todo tercero que acceda de forma ilegítima al contenido de cualquier mensaje externo procedente del mismo. Para información y consultas visite nuestra web http://www.idiria.com Idiria Sociedad Limitada - Disclaimer This message, its content and any file attached thereto is for the intended recipient only and is confidential. If you have received this e-mail in error or had access to it, you should note that the information in it is private and any use thereof is unauthorised. In such an event please notify us by e-mail or by telephone (+ 34 690207492). Any reproduction of this e-mail by whatsoever means and any transmission or dissemination thereof to other persons is prohibited. It should be deleted immediately from your system. Idiria Sociedad Limitada reserves the right to take legal action against any persons unlawfully gaining access to the content of any external message it has emitted. For additional information, please visit our website http://www.idiria.com |