How to handle modal popup dialogs?

21 posts, 0 answers
  1. Joakim Nilsson
    Joakim Nilsson avatar
    6 posts
    Member since:
    Dec 2009

    Posted 19 May 2010 Link to this post

    Hi,

    When recording, how do I get the recorder to record actions taken in a modal popup dialog?

    Thanks

    /Joakim
  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 19 May 2010 Link to this post

    Hello Joakim Nilsson,

    It's supposed to happen automatically. There isn't anything special you need to do for actions to be recorded in an IE modal popup window. When the popup first opens while recording you should get a dialog prompt asking you if you want to automate the popup. Do you get this prompt? When you answer Yes, all actions on that popup are supposed to be recorded. Is there anything different or really unusual about this popup that we need to know about?

    Greetings,
    Cody
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Joakim Nilsson
    Joakim Nilsson avatar
    6 posts
    Member since:
    Dec 2009

    Posted 19 May 2010 Link to this post

    Hi Cody,

    I did not get any prompt to automate my popup.

    The popup is created using showmodalpopup() I believe.

    /Joakim
  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 19 May 2010 Link to this post

    Hello Joakim Nilsson,

    I should have tested it before my last response. It turns out we have a regression bug. This feature is no longer working as it should. Thank you for reporting this issue! We'll get it fixed ASAP.

    I've marked this ticket and will update it when we have it fixed. Do you want an internal build containing the fix? In the meantime would running an older build that doesn't have this problem be acceptable to you?

    Sincerely yours,
    Cody
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Joakim Nilsson
    Joakim Nilsson avatar
    6 posts
    Member since:
    Dec 2009

    Posted 19 May 2010 Link to this post

    An internal build containing the fix would be very nice. Using an earlier build might be problematic as the latest release contained bug fixes that help me with other problems I had.

    As always thank you for the fast responses.

    /Joakim
  6. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 21 May 2010 Link to this post

    Hello Joakim Nilsson,

    Great news. We have a build with this regression fixed. You can download the version you need from either of these links:

    http://www.telerik.com/download/TestStudio/Telerik.WebUI.TestStudio.QA.2010.1.521.msi

    http://www.telerik.com/download/TestStudio/Telerik.WebUI.TestStudio.Dev.2010.1.521.msi

    Thank you for your patience as we work to resolve issues like this.

    Greetings,
    Cody
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  7. Joakim Nilsson
    Joakim Nilsson avatar
    6 posts
    Member since:
    Dec 2009

    Posted 24 May 2010 Link to this post

    Hi again,

    Tried out the new build. I still get no response when recording steps in modal dialogs. And i dont get any prompt asking me to handle the popup or not.

    One more thing. Are you having any performance issues when using Windows XP? Everything feels very slow, even the GUI. When testing on Vista the slowness is gone.

    Thanks for all the help, must be hard to release a product that is targeted to testers... ;)

    /Joakim
  8. Ken Cox
    Ken Cox avatar
    100 posts
    Member since:
    Oct 2002

    Posted 24 May 2010 Link to this post

    >Telerik.WebUI.TestStudio.QA.2010.1.521.msi

    I'm not seeing this build on the internal builds page. The page reports:

    "No internal builds for WebUI Test Studio Developer Edition 2010.1 518 have been uploaded recently. "

    BTW, the 521 build won't install over my 518 build. It wants me to uninstall everything, which is unusual.

    Thanks,

    Ken

  9. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 24 May 2010 Link to this post

    @Ken Cox,

    Yes that build was targeted at Joakim specifically.

    @Joakim

    That is strange. I installed the 5.21 build myself and it's recording just fine for me. Can you open a support ticket on this problem so we can track it better please? Also can we schedule a GoToMeeting where I can look at this problem on your computer?

    Kind regards,
    Cody
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  10. Joakim Nilsson
    Joakim Nilsson avatar
    6 posts
    Member since:
    Dec 2009

    Posted 26 May 2010 Link to this post

    Hi Cody,

    I will try to create an example that illustrates the problem, might take a few days as I am very busy at work this week.

    /Joakim
  11. Suman Rayabharapu
    Suman Rayabharapu avatar
    3 posts
    Member since:
    Jul 2009

    Posted 26 May 2010 Link to this post

    Is this modal popups and child windows from silverlight application, where you can get a prompt asking whether or not to handle the pop ups ?
  12. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 26 May 2010 Link to this post

    Hi Joakim Nilsson,

    Thanks. I look forward to the sample. Also I must correct myself. When an IE Modal popup window opens, we don't actually prompt if you want to record it. We automatically add a Connect to popup step without prompting and start recording it. We do prompt for non-Modal IE popup windows.

    Suman does raise a good question. If this is a Silverlight popup, then we have to treat it very differently. but if it's being opened via showmodalpopup() as you stated earlier, it should be working just fine.

    Greetings,
    Cody
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  13. Totti
    Totti avatar
    10 posts
    Member since:
    Sep 2010

    Posted 09 Sep 2010 Link to this post

    Hi,
    My sub form is a type of ChildWindow as "addForm", I pop up this sub form by  addForm.Show()
    But WebUI studio seems that can't record action as well as steps after.
    Have the way to record this situation by configuration ? 
    I'm using WebUI studio: WebUI_TestStudio_Developer_2010_2_830_Trial.

    Thanks.
  14. Totti
    Totti avatar
    10 posts
    Member since:
    Sep 2010

    Posted 09 Sep 2010 Link to this post

    //
    My sub form is a type of ChildWindow as "addForm", I pop up this sub form by  addForm.Show()
    But WebUI studio seems that can't record action as well as steps after.
    Have the way to record this situation by configuration ? 
    I'm using WebUI studio: WebUI_TestStudio_Developer_2010_2_830_Trial.
    //

    Please help, I need to know Does WebUI_TestStudio support this ?
    (My application is a silverlight application)
  15. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 10 Sep 2010 Link to this post

    Hi Totti,

    The ChildWindows are now automatically handled by WebUI Test Studio. Along with the latest release you will only need to install the latest Silverlight v4 update on your end as described on the blogs.

    All the best,
    Konstantin Petkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  16. Arvind Dhiman
    Arvind Dhiman avatar
    6 posts
    Member since:
    Apr 2010

    Posted 18 Feb 2013 Link to this post

    Hi Cody

    I am facing similar issue, I am using modal pop-up with Telerik Rad grid control and Test studio is recording the actions but not able to playback the same. This is a kind of showstopper for us. Please let me know how to handle the modal pop-up and its events.

    Thanks,
    Arvind Dhiman
  17. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 19 Feb 2013 Link to this post

    Hello Arvind,

    Is this a Silverlight modal pop up? Test Studio automatically detect them and record actions without any problems.

    I recorded a short video as a demonstration.

    If you haven't done so already please calibrate your browsers as seen in this article.

    In order to help you best please elaborate a bit more on your scenario.

    1. Is the pop up the same as in my video?

    2. What is the exact issue you are experiencing, give as much as possible information?

    3. Please record a short video to show us the issue you are experiencing. Jing is great for this.

    4. Please send us the test project and give us a direct access to the application so we can reproduce your issue on our end and give you a working solution.


    Hope to hear from you soon.

    Kind regards,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  18. Arvind Dhiman
    Arvind Dhiman avatar
    6 posts
    Member since:
    Apr 2010

    Posted 20 Feb 2013 Link to this post

    Hi Boyan

    Thanks for the reply. I have already calibrated my browsers according to the article as provided by you. Also, the modal pop-up that we are using is not of silverlight. I can not provide any video on Jing because of security issue. I am providing you snapshot of the pop-up and also the logs of the error shown by Test studio. Actually, the main issue is test studio opens the modal pop-up on playback but it is not able to set focus/ perform any of the recorded action on the pop-up.

    Below is the error as shown in the test studio log file:-

    20-02-2013 16:19:00' - 'Fail' : 23. Enter text '*org*' in 'CpHolderTxtEntityFilterText'
    ------------------------------------------------------------
    Failure Information: 
    ~~~~~~~~~~~~~~~
    Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:name=PopUp_mwpWindowManager1361356870765,src=http://192.16.2.144/MYApp/General/WebGridSelector.aspx,UseQuery:False]' timed out. Error: Wait for condition has timed out
    InnerException:
    System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:name=PopUp_mwpWindowManager1361356870765,src=http://172.16.3.154/MYApp/General/WebGridSelector.aspx,UseQuery:False]' timed out. Error: Wait for condition has timed out
       at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
    ------------------------------------------------------------
    '20-02-2013 16:19:00' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.

    Snap shot for the test case and modal pop-up is attached.
    Please let me know in case of any other information/issue.
















  19. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 21 Feb 2013 Link to this post

    Hi Arvind,

    This issue is often due to a dynamic frame Id or Name. 

    Please double check whether the Name or Src are constants.

    If not this is remedied by using the tilde (~) character to indicate a partial match. This can be used in the BaseURL, Id, and Name fields. If the Src string contains a dynamic query, set UseQuery to False. 

    Please follow this article in order to get detailed instructions on how overcome this issue.

    Hope this helps.

    Greetings,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  20. Nisar
    Nisar avatar
    1 posts
    Member since:
    Jun 2015

    Posted 11 Jun 2015 Link to this post

    Hello, 

     I am having an issue with an IE modal window popup.  I open the modal popup in IE.  Click a link to select an item.  Then the application automatically goes back to the main window.  When I try to run the test in IE, it fails every time with the following error:

     ------------------------------------------------------------
    Failure Information: 
    ~~~~~~~~~~~~~~~
    Wait for condition has timed out
    InnerException:
    System.TimeoutException: Wait for condition has timed out
       at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
       at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
       at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
       at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
       at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
       at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
       at ArtOfTest.WebAii.Core.Actions.Click(Element targetElement)
       at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click()
       at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click(Boolean isClosing)
       at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.ClickActionDescriptor.Execute(Browser browser)
       at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

     I've checked UseStepWaitOnElementTimeOut, I've added execution delays, I've googled and read up and down the forums, but I can't figure this step out.  Every time the modal pop up closes and the application goes back to the main window, and then after a few seconds IE just closes and I get this error in Telerik.  I am updated to the latest update as well.

     Please help.

     Thanks,

    Nisar

  21. Arvind Dhiman
    Arvind Dhiman avatar
    6 posts
    Member since:
    Apr 2010

    Posted 15 Jun 2015 Link to this post

    Hi Nisar,

    Have you verified that if your pop-up too have random ID being assigned each time it is opened? As I had faced this issue and by using '~' as mentioned above in same forum, I was able to proceed further. Also, if you have used the wait command on any element, does that element exists in pop-up, may be Test Studio is not able to find it. You can try the 'Find Expressions' of Test Studio of finding any element over pop-up.

     May be this is of any help to you, as it was to me.

    Regards,

    Arvind Dhiman

Back to Top