Cannot record screen with Browse file control

5 posts, 0 answers
  1. Totti
    Totti avatar
    10 posts
    Member since:
    Sep 2010

    Posted 11 Feb 2011 Link to this post

    Hi,
    On my screen has Browse file control, I cannot simulate step of select a file at browsing files.
    Does WebUI Test studio support this one ? , How is the way to resolve this issue ?

    Thanks
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 11 Feb 2011 Link to this post

    Hi Totti,
        could you give me some more info on the control in question. What kind of control is it (Silverlight, ASP .NET etc.) ?

    Any of the following will be useful in analyzing the issue:
    -screenshots
    -a video demonstrating the (Jing is great)
    -a link to a publicly-available demo of this type of control

    Hope to hear from you soon!

    All the best,
    Stoich
    the Telerik team
    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  3. Totti
    Totti avatar
    10 posts
    Member since:
    Sep 2010

    Posted 14 Feb 2011 Link to this post

    Hi,

    I use the OpenFileDialog on button click event.
    Here is the code :

    BrowseCommand = new DelegateCommand<object>(BrowseFile);
    public void BrowseFile(object o)
            {
                var openFileDialog = new OpenFileDialog();
                var result = openFileDialog.ShowDialog();
                if (result.HasValue && result.Value)
                {
                    using (var stream = (Stream)openFileDialog.File.OpenRead())
                    {
                        byte[] bytes = new byte[stream.Length];
                        stream.Read(bytes, 0, (int)stream.Length);
                        //PictureFile.ImageTitle = openFileDialog.File.Name;
                        NewItem.Flag = bytes;
                    }
                }
            }


    After the step "Button click", the OpenFileDialog is open but nothing happened, no file is browsed. And this test is stop until I browse file manual.

    best regards !
  4. Totti
    Totti avatar
    10 posts
    Member since:
    Sep 2010

    Posted 15 Feb 2011 Link to this post

    Hi ,

    I have found a solution with FileUploadDialogHandler. It's working well.

    Thanks for all supports !

    best regards !
  5. Sandhya
    Sandhya avatar
    4 posts
    Member since:
    Mar 2014

    Posted 19 Mar 2014 in reply to Totti Link to this post

    Can you post the solution you found.
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!