     saveButtonSelector  = "#{saveAsModalSelector} .kddialog-buttons span.button-title"
 
     @openNewFile(browser)
+
+    if text
+      @setTextToEditor browser, text
+
     @openContextMenu(browser)
 
     browser

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


