 
   turnOffVm: (browser) ->
 
-    linkSelector = modalSelector + ' .statustoggle .input-wrapper'
+    modalSelector = '.activity-modal.vm-settings'
+    linkSelector  = modalSelector + ' .statustoggle .input-wrapper'
 
     helpers.beginTest(browser)
     helpers.waitForVMRunning(browser)


  openVmDomain: (browser) ->

    linkSelector = modalSelector + ' .assigned-url .custom-link-view'

    helpers.beginTest(browser)
    helpers.waitForVMRunning(browser)

helpers = require '../helpers/helpers.js'
assert  = require 'assert'

openVmSettingsModal = (browser, vmName) ->

  modalSelector = '.activity-modal.vm-settings'

  if not vmName
    vmName = 'koding-vm-0'
