Open & Close Browser



  • I want to have 'OPEN Browser' before a set of 3 actions and 'CLOSE Browser' at the end of these 3 actions .. and then let SLEEP for 20 minutes before the 3 actions starts again.

    (Inside each of these 3 actions - there are already some browser loading commands)

    My purpose is to rest the browser for 20 minutes to save computer resources.

    I got error message:
    Thread ended with message "NetworkAccessManager is not accessible, try to create new browser with open browser command"

    What is the problem?



  • @Hifive, the message you've received means you SHOULD have a browser window and you shouldn't сlose it.



  • @AldeX

    http://take.ms/E9wTY

    my intention is to let the bot sleeps for 5 minutes before it starts all over again.

    If Open & Close Browsers do not work this way, then how to use these 2 functions?



  • @Hifive actions Open and Close the browser put into function



  • @Fox

    I don't understand how to put into function.
    Can you give an example?

    If this is my script, how to put open/close browser into function?
    http://take.ms/lKJFc





  • @Fox

    http://take.ms/fa2hP

    http://take.ms/JyNLm

    After I added Open browser & Close browser in each of the 3 functions, there was no more error messages.

    When the first set of 3 functions completed .. the bot went into sleeping for the number of minutes i specified .. waiting for the run of the next 3 functions.

    I noticed that the browser boxes remained in the screen .. when I clicked the boxes, all the blank browsers appeared.
    Does this mean that the browsers were not closed properly and are still open?

    Inside the 3 functions, i have also called for many other functions. Do i have to open/close browsers for each of these 'inner' called functions?



  • @Hifive

    I noticed that the browser boxes remained in the screen .. when I clicked the boxes, all the blank browsers appeared.

    This is normal. Here is a test script.

    Inside the 3 functions, i have also called for many other functions. Do i have to open/close browsers for each of these 'inner' called functions?

    If errors do not appear when starting the script, then do not.



  • @Hifive This means, that you are using action, which needs browser(load page, set proxy , etc) before you created it, or after you delete it.
    Here is a project which does what you want

    open-close-browser.xml


Log in to reply
 

  • 2
  • 4
  • 2
  • 1
  • 2
  • 4
  • 2
  • 7