原文
can't seem to use Selenium Core to upload a file; when I try to type in the file upload text field, nothing happens!
Unfortunately, this is yet another JavaScript security restriction; JS is not allowed to modify the value of <input type="file"> form fields. You can work around this by running your tests under Selenium IDE or under Selenium RC running in the experimental "*chrome" mode for Firefox, but at present there is no way to do this on any other browser. This is filed as bug SEL-63, but there may be no way to fix it in Selenium Core.作者: Mr.Lee 时间: 2010-6-9 17:19
我就是在Selenium RC下export 成python文件执行的,一样的效果,他默认的就是chrome浏览。
郁闷啊。作者: 云层 时间: 2010-6-9 17:39
我刚才试了试,换成firefox就好了,我以前用IE的,希望你对你有用处