   renameTerminalTab: (browser) ->
 
     name            = helpers.getFakeText().split(' ')[0]
-    tabSelector     = ".kdtabhandle.terminal"
-    optionsSelector = tabSelector + " .options"
+    tabSelector     = "#{paneSelector} .kdtabhandle.terminal"
+    optionsSelector = "#{tabSelector} .options"
     renameSelector  = ".kdcontextmenu.terminal-context-menu .rename"
-    editSelector    = tabSelector + ".edit-mode .hitenterview.tab-handle-input"
-    tabNameSelector = tabSelector + " .tab-handle-text"
+    editSelector    = "#{tabSelector}.edit-mode .hitenterview.tab-handle-input"
+    tabNameSelector = "#{tabSelector} .tab-handle-text"
 
     user = helpers.beginTest(browser)
     helpers.waitForVMRunning(browser)



module.exports =
  
  terminateAll: (browser) ->

    user = helpers.beginTest(browser)

      .waitForElementVisible    renameSelector, 20000
      .click                    renameSelector
      .waitForElementPresent    editSelector, 20000
      .clearValue               editSelector
      .setValue                 editSelector, [name,browser.Keys.RETURN]
      .waitForElementNotPresent editSelector, 20000
      .assert.containsText      tabNameSelector, name #Assertion
