     browser.url(url)
     browser.maximizeWindow()
 
-    browser.execute 'KD.isTesting = true;'
+    browser.execute ->
+      window.KD ?= {}
+      window.KD.isTesting = yes
 
     @attemptLogin(browser, user)
 


    @doLogin browser, user

    browser.execute 'KD.isTesting = true;'

    return user


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