Connect to new window in IE8

6 posts, 0 answers
  1. Clive
    Clive avatar
    21 posts
    Member since:
    Sep 2010

    Posted 13 May 2011 Link to this post

    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
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 13 May 2011 Link to this post

    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 >>

  3. Clive
    Clive avatar
    21 posts
    Member since:
    Sep 2010

    Posted 13 May 2011 Link to this post

    Hi Stoich,
    I'm unable to supply an app, but a Go To Meeting would be ok.

    Clive
  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 16 May 2011 Link to this post

    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 >>

  5. Clive
    Clive avatar
    21 posts
    Member since:
    Sep 2010

    Posted 23 May 2011 Link to this post

    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
  6. Clive
    Clive avatar
    21 posts
    Member since:
    Sep 2010

    Posted 24 May 2011 Link to this post

    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
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!