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

Connect to new window in IE8

5 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Clive
Top achievements
Rank 1
Clive asked on 13 May 2011, 11:18 AM
Hi,
My test opens a K2 Workflow (if that means anything to you) window in IE8, then clicks on an item which launches another window.
When recording the test WebUI asks if I want to connect to this window.
On playback it fails to connect and gives the error "Exception occured waiting for the new browser to connect.
InnerException:
System.OperationCanceledException: Exception occured waiting for the new browser to connect. ---> System.TimeoutException: Wait for condition has timed out"

The code that opens the second window is

function OpenApplication(winName,winHeight,winWidth,appURL) {

   

    var features = 'scrollbars=yes,resizable=yes';

   

    var w = 1024, h = 734;

 

    if (document.all) {

        w = screen.availWidth;

        h = screen.availHeight;

    }

 

    var leftPos = (w - winWidth) / 2, topPos = (h - winHeight) / 2;

 

    window.open(appURL,winName,'width=' + screen.availWidth + ',height=' + screen.availHeight +  ',left=' + 0 +  ',top=' + 0 + ',' + features);

      

}


Thanks

Clive

5 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 13 May 2011, 02:27 PM
Hi Clive,
   I understand the problem. We would like to take a look at this popup and examine why automation is failing. Would it be possible for you to provide a sample app containing this kind of popup. Alternatively you can grant us access to the popup in your application. If you consider any data you wish to share with us sensitive please go ahead and open a support ticket and attach it there. Unlike forum posts support tickets are completely confidential.

Regards,
Stoich
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Clive
Top achievements
Rank 1
answered on 13 May 2011, 03:13 PM
Hi Stoich,
I'm unable to supply an app, but a Go To Meeting would be ok.

Clive
0
Stoich
Telerik team
answered on 16 May 2011, 11:21 AM
Hello Clive,
     what version of Test Studio are you using? The brand new R1 release of Test Studio includes a fix for a recorder connection issue that sounds very much like what you're experiencing. I didn't mention this earlier because it was brought to my attention just recently during a meeting with a different customer. With that being said please try upgrading to the latest version of Test Studio. You can download it here:
http://www.telerik.com/downloads/nightbuildfiles/bcte/Telerik.TestStudio.2011.1.511_Trial.msi

Try connecting to your popup with the latest version. If the problem persists we'll proceed to a GoToMeeting

Regards,
Stoich
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Clive
Top achievements
Rank 1
answered on 23 May 2011, 04:37 PM
Hi,
I've downloaded the trial version of 2011.1.52.0, but I still get the same message, even after re-recording the test.
In addition other scripts give a 'sandbox' error, but I'll put in a new post for that.

Clive
0
Clive
Top achievements
Rank 1
answered on 24 May 2011, 03:54 PM
Hi,
I think this is because the URL of the pop-up window changes every time.
The part up to the '=' sign is always the same but the rest changes each time.
http://ncldevk2.ncldev.co.uk/ncl.SuccessManagement.web.1/Review.aspx?SN=42183_31&ActivityType=Reviewer%20Acceptance&ReviewGUID=bc536c9e-6060-4ec5-a443-8c202c057b4b

I've truncated the url in the Connect to pop up window step, and ticked the IsUrlPartial checkbox, and the test now continues on the new window.

Thanks for you help.

Clive
Tags
General Discussions
Asked by
Clive
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Clive
Top achievements
Rank 1
Share this question
or