       .moveToElement           '.context-list-wrapper li.new-terminal', 25, 20
 
 
-  openTerminal: (browser, openSessionTerminal = no) ->
+  openTerminal: (browser, openSessionTerminal = no, callback = ->) ->
 
     sessionLink     = '.kdlistview-contextmenu ul:nth-of-type(1) .has-sub-items'
     openNewTerminal = '.kdlistview-contextmenu.default .open'


    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)'
