 
     @doLogin browser, user
 
-    browser.execute 'KD.isTesting = true;'
+    browser.execute ->
+      window.KD ?= {}
+      window.KD.isTesting = yes
 
     return user
 

    else
      return "http://#{url}"
      # return 'http://54.152.13.1:8090'
      # return 'https://koding:1q2w3e4r@sandbox.koding.com/'
    browser.url(url)
    browser.maximizeWindow()

    browser.execute ->
      window.KD ?= {}
      window.KD.isTesting = yes

    @attemptLogin(browser, user)

