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

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

    return newName



    saveButtonSelector  = "#{saveAsModalSelector} .kddialog-buttons span.button-title"

    @openNewFile(browser)

    if text
      @setTextToEditor browser, text

    @openContextMenu(browser)

    browser
