c# - How can I upload file using watin for asp.net mvc upload control -
i'm writing watin test , have upload file mvc control watin don't recognize mvc upload control.
here silverlight code:
<object type="application/x-silverlight-2" data="data:application/x-silverlight-2," id="contentplaceholder1_aspxuploadcontrol1_textbox0_sluploadhelper" width="70px" height="22px" style="position: absolute; background-color: transparent; top: -5000px; opacity: 0.01; left: 75px;" class=" contentplaceholder1_aspxuploadcontrol1_dxfitextboxhover" title=""><param name="source" value="/dxr.axd?r=1_1-c5nv6"><param name="background" value="transparent"><param name="windowless" value="true"><param name="minruntimeversion" value="3.0.40818.0"><param name="initparams" value="controlname=contentplaceholder1_aspxuploadcontrol1, inputindex=0, multiselect=true, allowedmaxfilesize=4194304, allowedfileextensions=.jpg;.jpeg;.jpe;.gif;.png, filter=*.jpg;*.jpeg;*.jpe;*.gif;*.png"><param name="onload" value="slonload_contentplaceholder1_aspxuploadcontrol1_textbox0_sluploadhelper"><param name="onerror" value="slonerror_contentplaceholder1_aspxuploadcontrol1_textbox0_sluploadhelper"></object>
the problem here , silverlight upload control object , watin don't know how convert fileupload. should control silverlight uploadfile watin.
watin framework provides typed access html of page. cannot work client plugins silverlight , flash. cannot convert silverlight object fileupload because not file upload. <object>
tag in html.
you have use framework, supports silverlight. more information in question: silverlight automation similar watin
Comments
Post a Comment