[Wtr-general] Issue WTR-108 - file_field.set not working
Doyle
forum-watir-users at openqa.org
Fri Dec 15 11:29:05 EST 2006
Similar problem. Here are the requisite fragments:
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0 Transitional//EN" >
<html>
<head>
<title>Title</title>
</head>
<body class="contentbackgroundcolor" leftMargin="0" topMargin="0">
<form name="frmUploadPage" method="post" action="UploadPage.aspx" id="frmUploadPage" onsubmit="return DoUpload();">
<TABLE class="spl" cellSpacing="5" cellPadding="0" width="100%" align="center" border="0">
<TR class="lblTextCol" vAlign="top" align="left">
<TD class="lblTextCol">File :</TD>
<TD class="lblTextCol" align="left"><input name="fileUpload" type="file" id="fileUpload" class="inputTextW400" size="63" /> <span class="lblTextColRed"> *</span>
</TD>
</TR>
</TABLE>
</body>
</html>
WATIR
$ie2 = Watir::IE.attach(:title, 'Title')
$ie2.fileField(:name, "fileUpload").set("C:/setup.log")
I ran the unit tests that came with Watir and they demonstrated a similar error. The text box is just not populating.
Thanks,
mypetrock
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5766&messageID=16244#16244
More information about the Wtr-general
mailing list