         .waitForElementVisible   paneSelector + ' .terminal.active', 20000 # Assertion
         .pause 6000 # required for the Connecting...
         .assert.containsText     terminalTextAssertSelector, userName # Assertion
+        .pause 10, -> callback()
 
 
-  terminateAll: (browser) ->
+  terminateAll: (browser, callback = ->) ->
 
     @openNewTerminalMenu(browser)
 


    browser
      .assert.elementNotPresent   'li.terminate-all' # Assertion

      browser
        .moveToElement           'li.new-session', 25, 20
        .click                   'li.new-session'
        .pause 6000, -> callback null # required
    else
      browser
        .moveToElement           sessionLink, 5, 5
        .waitForElementVisible   openNewTerminal, 20000
        .click                   openNewTerminal
        .pause                   2500, -> callback null #wait for terminal to be displayed

  createTerminalSession: (browser, user, callback = ->) ->

    userName                   = user.username
    notActiveTerminalSelector  = paneSelector + ' .terminal:not(.active)'
