Handling file save dialog in WPF

6 posts, 0 answers
  1. Ryan
    Ryan avatar
    4 posts
    Member since:
    Dec 2015

    Posted 15 Jan Link to this post

    I am attempting to enter a file name and click the save button for a save file dialog in a WPF application with the following 

             SaveAsDialog saveDlg = SaveAsDialog.CreateSaveAsDialog( Manager.ActiveApplication, DialogButton.SAVE,  @"C:\Temp\TelerikTestStudioTestDatabase" );
             Manager.DialogMonitor.AddDialog( saveDlg );
             Manager.DialogMonitor.Start();

             //Enter the code that triggers the dialog here...

             saveDlg.WaitUntilHandled( 30000 );
             Manager.DialogMonitor.Stop();
          
    When the test executes I get:

    '1/15/2016 1:12:18 PM' - 'Fail' : 11. [CodedStep] : CreationDialog
    ------------------------------------------------------------
    Failure Information: 
    ~~~~~~~~~~~~~~~
    Exception thrown executing coded step: '[CodedStep] : CreationDialog'.
    InnerException:
    System.TimeoutException: Timed out waiting '30000' msec. for any dialog to be handled '1'
       at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount)
       at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 handleCount, Int32 timeout, Boolean resetHandleCount)
       at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 timeout)
       at TestStudio.CreateNewTestDatabase.CreateNewTestDatabase_CodedStep() in C:\....
  2. Ryan
    Ryan avatar
    4 posts
    Member since:
    Dec 2015

    Posted 15 Jan Link to this post

    I will also mention that the dialog pops up (from the previous test step) and then when I am expecting it to begin typing into the file name textbox, it simply times out.

    Thanks
  3. Ryan
    Ryan avatar
    4 posts
    Member since:
    Dec 2015

    Posted 15 Jan Link to this post

    I have attached sample code demonstrating the issue I am facing.
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 20 Jan Link to this post

    Hi Devin,

    This is a duplicate of ticket number 1002288.

    Let's continue the discussion in the ticket please.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  5. chris
    chris avatar
    6 posts
    Member since:
    Dec 2015

    Posted 01 Mar in reply to Boyan Boev Link to this post

    How does one find the magical ticket 1002288?

    @boyan Boev

  6. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 03 Mar Link to this post

    Hi Chris,

    As I replied to your ticket 1015717, there was a regression with WPF 'SaveFile' dialog handling we recently found and fixed. You can check the public feedback item here. The fix is included in our latest internal build 2015.3.1429.

    Please go ahead and give that version a try and let me know if the issue persists. You can download it from your Telerik account.   

    Regards,
    Plamen
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top