File Upload Issue

3 posts, 1 answers
  1. Sudarshan
    Sudarshan avatar
    22 posts
    Member since:
    Feb 2013

    Posted 05 Apr 2013 Link to this post

    Hi,

    How to upload a file? I have attached a pic showing the scenario. On clicking upload photo a window opens, how to give the File name in that text box?
    Thanks
    Sudarshan 
  2. Answer
    Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 05 Apr 2013 Link to this post

    Hi Sudarshan,

    Please try out this code:

    using ArtOfTest.WebAii.Win32.Dialogs;


    FileUploadDialog 
    dialog = new FileUploadDialog(ActiveBrowser, @"PathToYourPhoto", DialogButton.OPEN);
    Manager.DialogMonitor.Start();
    Manager.DialogMonitor.AddDialog(dialog);
    Button.Click(); //Click on the upload photo button.  
    dialog.WaitUntilHandled(10000);
     
    I recorded a short video as a demonstration.

    Let me know if this helps.

    Kind regards,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Sudarshan
    Sudarshan avatar
    22 posts
    Member since:
    Feb 2013

    Posted 08 Apr 2013 Link to this post

    Hi,

    It worked. Thank u for the continued support.

    Thanks 
    Sudarshan
Back to Top