       .pause                   3000 # wait for
       .setValue                'li.selected .rename-container .hitenterview', folderName + '\n'
       .pause                   3000 # required
-      .waitForElementPresent   folderSelector, 50000 # Assertion
+      .waitForElementPresent   folderSelector, 50000, false, callback() # Assertion
 
     data = {
       name: folderName


  openFolderContextMenu: (browser, user, folderName) ->

    webPath       = '/home/' + user.username + '/' + folderName
    webSelector   = "span[title='" + webPath + "']"

    @clickVMHeaderButton(browser)

    browser
      .click                   '.context-list-wrapper .refresh'
      .waitForElementVisible   webSelector, 50000
      .click                   webSelector
      .click                   webSelector + ' + .chevron'


  clickVMHeaderButton: (browser) ->

      .waitForElementVisible     '.delete-container', 20000
      .click                     '.delete-container button.clean-red'
      .waitForElementNotPresent  fileSelector, 2000
      .pause 10, -> callback()


  openChangeTopFolderMenu: (browser) ->
