       .waitForElementVisible  '.kdlistview-contextmenu', 20000 # Assertion
 
 
-  createAndSaveNewFile: (browser) ->
+  createAndSaveNewFile: (browser, text) ->
 
     saveSelector        = '.kdlistview-contextmenu li.save'
     saveAsModalSelector = '.save-as-dialog'

helpers           = require './helpers.js'
tabHandleSelector = "#{panelSelector} .application-tab-handle-holder"

module.exports =

      .waitForElementVisible  filesTabSelector, 20000
      .assert.containsText    filesTabSelector, newName # Assertion

    if text
      browser.assert.containsText panelSelector, text

    return newName


