Hello,
I am using WatiN to run some UI automated tests on my application. I have been able to interact with most of telerik controls, except RadAsyncUpload.
Currently I am unable to upload a file using WatiN. I understand that telerik uses another testing platform, but I am looking to see if maybe someone in your team can help me figure out how to use WatiN to uplad a file via the RadAsynUpload control.
<telerik:RadAsyncUpload ID="upAttachment" runat="server" AllowedFileExtensions=".pdf,.jpg,.jpeg,.gif,.png,.bmp" TabIndex="9">
<Localization Select="Select File" />
</telerik:RadAsyncUpload>
[CodedStep(
@"readHeaders")]
public void requisitionScreen_CodedStep()
{
// read through the grid
WpfApplication app = Manager.ActiveApplication;
Assert.IsNotNull(app);
Telerik.Windows.Controls.GridView.GridView grid = app.MainWindow.Find.ByName<Telerik.Windows.Controls.GridView.GridView>(
"GridView");
Telerik.Windows.Controls.GridViewHeaderRow row = grid.HeaderRow;
int index=row.HeaderCells.Count;
Log.WriteLine(
"count "+index.ToString());
for (int i=0;i<index;i++){
row.HeaderCells[i].ToString();
}