Hi All,
I am looking for ways to permit selenium to fill in
a file upload field in a form on a remote system. I've looked at previous posts
pertaining to this subject, and also looked on the web. It seems that this is
possible in Firefox, and possibly not possible in IE. I am wondering if
anyone has any concrete solutions to this problem that he or she could
share with us.
The following other issues are related to the
above, and at the risk of trying to cover too many topics in a post, here they
are:
1. When trying out the recently posted selenium
test editor extension for Firefox, I noticed that the following code worked for
uploading a file:
<td>type</td><td>xpath=//[EMAIL PROTECTED]"file"]</td><td>path/to/file</td>
--code for clickling on on submit button
---
because of this, and because this test editor
supports "walking through" a test by double-clicking on each succesive test
step, I attempted to add "run" support to this test editor, with pretty dismal
results. Would someone more familiar with this test editor be able to offer the
code for an added method to the STETestEditor class that would
perform this test "run". In addition, if anyone has info on how this test
editor allows file uploads, this would be very helpful
2. After having failed at my attempt at modifying
the test editor, I then tried creating a xul file to be able to run selenium
against remote servers. This is what my simple brain could come up
with:
<?xml version="1.0"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" > <iframe src="" flex="1" /> </window> This seems to at least allow me to "open" a file on
a remote server, but as soon as I try to use a "type" command, my test that
usually passes now fails. Any suggestions on how to modify my xul to allow my
tests to run? And again, anyone know how I can then allow file uploads once my
xul is running?
3. Does anyone know of a way to allow file uploads
in the above scenario when using an .hta file in IE?
Thanks in advance for any advice
Britt Hibbert
|
_______________________________________________ Selenium-users mailing list Selenium-users@lists.public.thoughtworks.org http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users