This is a migrated thread and some comments may be shown as answers.

Can't connect to HTML window from Silverlight Test

5 Answers 16 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Carson Dron
Top achievements
Rank 1
Carson Dron asked on 25 Feb 2014, 01:28 AM
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?

5 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 28 Feb 2014, 08:56 AM
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!
0
Robert
Top achievements
Rank 1
answered on 12 Jun 2014, 03:18 PM
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
0
Ivaylo
Telerik team
answered on 17 Jun 2014, 11:09 AM
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!
0
Michael
Top achievements
Rank 1
answered on 30 Jul 2019, 08:14 PM
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?
0
Plamen Mitrev
Telerik team
answered on 31 Jul 2019, 12:55 PM
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!
Tags
General Discussions
Asked by
Carson Dron
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Robert
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Plamen Mitrev
Telerik team
Share this question
or