Can't connect to HTML window from Silverlight Test

6 posts, 0 answers
  1. Carson Dron
    Carson Dron avatar
    3 posts
    Member since:
    Jul 2012

    Posted 24 Feb 2014 Link to this post

    We have a Silverlight application that opens a third party HTML application. I am trying to get our test to click a few buttons in this window to close it and then continue with the Silverlight test. I am able to record the steps required (when the new browser appears I use Record->Attach to), but when I run the test it times out trying to find the buttons in the new window to press. If I pause the test at this point, I can only locate the DOM for the Silverlight application and not the new browser window.

    What do I need to do to be able to get this to work?
  2. Ivaylo
    Admin
    Ivaylo avatar
    782 posts

    Posted 28 Feb 2014 Link to this post

    Hello Carson,

    As from your explanation I understand this is a separate browser that is opened. If yes I will have to disappoint you and say this is a quite normal behavior, we can work with one active browser only at a time. You can properly automate this scenario if the window opened is a pop up window for example or a modal window. But if you are launching a second independent browser this is an expected behavior. 
    If you can provide me wit access to the application you are testing and step by step instructions I would be glad to take a look and confirm.

    Looking forward to hearing from you.

    Regards,
    Ivaylo
    Telerik
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. Robert
    Robert avatar
    10 posts
    Member since:
    Oct 2008

    Posted 12 Jun 2014 in reply to Ivaylo Link to this post

    I'm trying to do something similar meaning a new window opens in a new tab (not a pop up or modal window).  So there is no way to interact with another window to verify it even opened correctly or grab anything like text fields, etc?  I tried connecting to it but that times out. 

    Rob
  4. Ivaylo
    Admin
    Ivaylo avatar
    782 posts

    Posted 17 Jun 2014 Link to this post

    Hello Rob,

    As I told you before you might be able to automate the new browser if opened as popup window. A new tab will not work in this case. 

    Thank you for your understanding.

    Regards,
    Ivaylo
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  5. Michael
    Michael avatar
    1 posts
    Member since:
    Jul 2019

    Posted 30 Jul in reply to Ivaylo Link to this post

    Hi ivaylo

    I have a similar problem. In my case, I was trying to automate a Silverlight application, but the application uses a WebBrowser control to load asp pages and we must automate the actions on the asp pages. I was recording a script but Test Studio does not recognize HTML elements.

    Is it possible in any way? Or is it the same problem because it is an external browser and it cannot be accessed by Test Studio?
  6. Plamen Mitrev
    Admin
    Plamen Mitrev avatar
    158 posts

    Posted 31 Jul Link to this post

    Hi Michael,

    It is hard for me to tell if that is the same issue or not, at this point. Could you, please, share a bit more details to help me understand what is the exact scenario and behavior? You can use the following topics as guidelines to share additional information.
    - Is the Silverlight application out of browser? If that is the case, you will not be able to combine it with a web test out of the box.
    - In case it is a browser based Silverlight application, I would like to know, where are the asp pages loaded? Do you see a new instance of the browser or a completely different browser open with that content? If it is a new instance of a browser, it is expected that Test Studio is not able to recognize it and continue recording and executing the test steps.
    - I will appreciate, if you can share more details and a sample runnable test that I can try on my end. This way I can check the behavior and investigate the scenario further.

    I am looking forward to hearing from you.

    Regards,
    Plamen Mitrev
    Progress Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top