1 Reply Latest reply on Jun 24, 2013 2:57 AM by Dmitriy NameToUpdate

    During the execution of the script in TM ART the browser opens an empty child window that should not be

      123.jpg

      Hello everyone! Please tell me how to remove the opening child windows preventing the script.

        • 1. Re: During the execution of the script in TM ART the browser opens an empty child window that should not be

          Problem solved.

          solution:

          / / ------------------------------------------------ ----------------------

          / / Recorded 20.06.2013 by BMC TM ART Recorder v4.1.0.4553

          / / ------------------------------------------------ ----------------------

          @ codepage (1251)

           

          benchmark BMCTMARTRecorder

           

          use "WebAPI.bdh"

          use "BrowserAPI.bdh"

           

          dcluser

             user

               VUser

             transactions

               TInit: begin;

               TMain: 1;

           

          var

           

          dclrand

           

          dcltrans

             transaction TInit

             begin

               WebSetBrowser (WEB_BROWSER_MSIE8);

               WebModifyHttpHeader ("Accept-Language", "ru-RU");

               WebSetUserBehavior (WEB_USERBEHAVIOR_FIRST_TIME);

               WebSetDocumentCache (true, WEB_CACHE_CHECK_SESSION);

             end TInit;

           

             transaction TMain

             var

               wnd1, wnd2: number;

           

             begin

               BrowserStart (BROWSER_MODE_DISPLAY_VISIBLE);

           

               wnd1: = BrowserGetActiveWindow ("wnd1");

           

               BrowserActivateWindow (wnd1);

           

               wnd2: = BrowserGetActiveWindow ("wnd2");

           

               BrowserNavigate ("http://_ip_:8080/arsys/shared/login.jsp?/arsys/", "OPEN ARS");

           

               BrowserActivateWindow (wnd2);

          - - - - - - -

          code script

            - - - - - -

               BrowserCloseWindow (wnd2);

              

               BrowserStop ();

             end TMain;