       .click                 deleteSelector
       .waitForElementVisible confirmSelector, 20000
       .click                 confirmSelector
- 
+
   clickAddVMButton: (browser) ->
 
     sidebarTitle = '[testpath=main-sidebar] .activity-sidebar .vms .sidebar-title'

              assert.notEqual res,name, "Snapshot present when not expected to be"
            else
              assert.equal res,name
      
  
  createSnapshotIfNotFound: (browser, callback) ->
    
    browser.element 'css selector', ".kdlistview .kdlistitemview-snapshot", (result) ->
      name = null
      if result.status is not 0
        name = environmentHelpers.createSnapshot(browser)
      
      callback(name)
 

  deleteSnapshot: (browser) ->


  openAdvancedSettings: (browser, vmName) ->

    @openVmSettingsModal browser, vmName, '.advanced'

  openSnapshotsSettings: (browser,vmName) ->

    @openVmSettingsModal browser, vmName, '.snapshots'

  attemptCreateSnapshot: (browser) ->

    buttonSelector   = '.snapshots .add-button'

    @openSnapshotsSettings(browser)
