Was this page helpful?

How to keep browser open when scenario ends

    Table of contents

     

    You may keep the browser open when a scenario ends in WTC or RIA scenarios.

    For WTC scenarios

    Browsers launched via Newtest are closed after performing the command END since the NTBR/Probe version 7.5 in WTC

    To keep the browser open, you could:

    • use breakpoint (F9) and execute your scenario in debug mode, but within this mode, you could not modify your scenario
    • use Setweboption("WEB_NO_CLOSE_ON_END", "",1)

     

    For RIA scenarios

    In RIA scenarios, browsers are launched by AppExec() function so they will be closed when AppClose() command is executed. However, if another AppExec() try to launch a new web window, the old browser window will be closed.

     

    We suggest you to use ScenarioExec() inside a parent scenario if you have several scenarios which need the same browser window.

     

    Please note that AppExec() should only appear once in your scenario. If you would like to jump to another URL in your scenario, please use LoadUrl() function. In case that you need to execute another application in the same scenario, you could use AppExec2() to launch another process.

    To keep he browser open, you could:

    • use breakpoint (F9) and execute your scenario in debug mode, but within this mode, you could not modify your scenario
    • put un END before AppClose()

     

     

    Was this page helpful?
    Tag page (Edit tags)
    • No tags
    Page statistics
    2037 view(s), 3 edit(s) and 1667 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments