Forum Discussion

ḥari's avatar
ḥari
Frequent Contributor
2 years ago

Warning in Log file

Hi Team, After execution in log file, it returns the warning message as " The browser is already running" because the browser in already opened so it's throwing warning message.   How can I overco...
  • rraghvani's avatar
    2 years ago

    See the example in Log.Enabled Property and Typical Event Handler Tasks (Blocking Log Messages)

     

    My preference would be to use the following,

     

    function BrowserTest()
    {
        if (!Sys.WaitBrowser("chrome").Exists) {
            Browsers.Item("chrome").Run("http://smartbear.com/");
        } else {
            Browsers.Item("chrome").Navigate("https://www.w3schools.com/");
        }
    }