{"action":"closed","issue":{"url":"https://api.github.com/repos/xolvio/meteor-cucumber/issues/175","labels_url":"https://api.github.com/repos/xolvio/meteor-cucumber/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/xolvio/meteor-cucumber/issues/175/comments","events_url":"https://api.github.com/repos/xolvio/meteor-cucumber/issues/175/events","html_url":"https://github.com/xolvio/meteor-cucumber/issues/175","id":97590951,"number":175,"title":"Error with todos example app and example tests","user":{"login":"liangsun","id":1264873,"avatar_url":"https://avatars.githubusercontent.com/u/1264873?v=3","gravatar_id":"","url":"https://api.github.com/users/liangsun","html_url":"https://github.com/liangsun","followers_url":"https://api.github.com/users/liangsun/followers","following_url":"https://api.github.com/users/liangsun/following{/other_user}","gists_url":"https://api.github.com/users/liangsun/gists{/gist_id}","starred_url":"https://api.github.com/users/liangsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liangsun/subscriptions","organizations_url":"https://api.github.com/users/liangsun/orgs","repos_url":"https://api.github.com/users/liangsun/repos","events_url":"https://api.github.com/users/liangsun/events{/privacy}","received_events_url":"https://api.github.com/users/liangsun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"Sanjo","id":727955,"avatar_url":"https://avatars.githubusercontent.com/u/727955?v=3","gravatar_id":"","url":"https://api.github.com/users/Sanjo","html_url":"https://github.com/Sanjo","followers_url":"https://api.github.com/users/Sanjo/followers","following_url":"https://api.github.com/users/Sanjo/following{/other_user}","gists_url":"https://api.github.com/users/Sanjo/gists{/gist_id}","starred_url":"https://api.github.com/users/Sanjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sanjo/subscriptions","organizations_url":"https://api.github.com/users/Sanjo/orgs","repos_url":"https://api.github.com/users/Sanjo/repos","events_url":"https://api.github.com/users/Sanjo/events{/privacy}","received_events_url":"https://api.github.com/users/Sanjo/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-07-28T01:10:49Z","updated_at":"2015-07-28T02:33:14Z","closed_at":"2015-07-28T02:33:14Z","body":"When starting the todos example app with the example tests the following error can happen:\r\n\r\n```\r\nError: Promise was fulfilled but got rejected with the following reason: Error: stale element reference: element is not attached to the page document\r\n  at new ErrorHandler.CommandError (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/utils/ErrorHandler.js:86:12)\r\n  at Object.<anonymous> (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/commands/waitUntil.js:94:22)\r\n  at Object.safeExecute (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/utils/safeExecute.js:22:24)\r\n  at Object.WebdriverIO.resolve (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/webdriverio.js:73:29)\r\n  at /Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/webdriverio.js:193:32\r\n  at _rejected (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:830:24)\r\n  at /Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:856:30\r\n  at Promise.when (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:1108:31)\r\n  at Promise.promise.promiseDispatch (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:774:41)\r\n  at /Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:590:44\r\n  at runSingle (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:123:13)\r\n  at flush (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:111:13)\r\n  at process._tickDomainCallback (node.js:486:13)\r\n```\r\n\r\nHerer is how to reproduce the bug\r\n\r\n```\r\nmeteor create --example todos\r\ncd todos\r\nmeteor add xolvio:cucumber\r\nVELOCITY_DEBUG=1 meteor\r\n```\r\nThen click the `Add Sample Test` at the web and restart the meteor app.\r\n\r\nThe above error will show.\r\n\r\n\r\nThe console output:\r\n\r\n```\r\nliangsun@1iangMac$  VELOCITY_DEBUG=1 meteor\r\n[[[[[ ~/todos ]]]]]                           \r\n\r\n=> Started proxy.                             \r\n=> Started MongoDB.                           \r\nI20150728-08:56:52.360(8)? [velocity] adding velocity core\r\nI20150728-08:56:52.362(8)? [xolvio:cucumber] Cucumber hub is loading\r\nI20150728-08:56:52.362(8)? [velocity] Register framework cucumber with regex ^tests/cucumber/((?!node_modules/).)+\\.(feature|js|coffee|litcoffee|coffee\\.md)$\r\nI20150728-08:56:53.370(8)? [velocity] Server startup\r\nI20150728-08:56:53.371(8)? [velocity] app dir /Users/liangsun/todos\r\nI20150728-08:56:53.371(8)? [velocity] config = {\r\nI20150728-08:56:53.371(8)?   \"cucumber\": {\r\nI20150728-08:56:53.371(8)?     \"regex\": \"^tests/cucumber/((?!node_modules/).)+\\\\.(feature|js|coffee|litcoffee|coffee\\\\.md)$\",\r\nI20150728-08:56:53.371(8)?     \"name\": \"cucumber\",\r\nI20150728-08:56:53.371(8)?     \"_regexp\": {}\r\nI20150728-08:56:53.371(8)?   }\r\nI20150728-08:56:53.371(8)? }\r\nI20150728-08:56:53.372(8)? [velocity] resetting the world\r\nI20150728-08:56:53.372(8)? [velocity] frameworks with disable auto reset: []\r\nI20150728-08:56:53.377(8)? [velocity] Add paths to watcher [ '/Users/liangsun/todos/tests' ]\r\nI20150728-08:56:53.380(8)? [velocity] 1 mirror(s) requested\r\nI20150728-08:56:53.398(8)? [velocity] Mirror process forked with pid 79197\r\nI20150728-08:56:53.399(8)? [velocity] cucumber is starting a mirror at http://localhost:58791/.\r\nI20150728-08:56:53.402(8)? [velocity] File scan complete, now watching /tests\r\nI20150728-08:56:53.402(8)? [velocity] Triggering queued startup functions\r\nI20150728-08:56:53.418(8)? [velocity] You can see the mirror logs at: tail -f /Users/liangsun/todos/.meteor/local/log/cucumber.log\r\n=> Started your app.\r\n\r\n=> App running at: http://localhost:3000/\r\nI20150728-08:57:02.138(8)? [velocity] found  4 sample test files for cucumber\r\nI20150728-08:57:02.152(8)? [velocity] resetting cucumber\r\nI20150728-08:57:02.281(8)? [velocity] Search framework for path tests/cucumber/package.json\r\nI20150728-08:57:02.286(8)? [velocity] No framework registered for tests/cucumber/package.json\r\nI20150728-08:57:02.386(8)? [velocity] Search framework for path tests/cucumber/features/sample.feature\r\nI20150728-08:57:02.386(8)? [velocity] Target framework for tests/cucumber/features/sample.feature is cucumber\r\nI20150728-08:57:02.392(8)? [velocity] Search framework for path tests/cucumber/fixtures/my_fixture.js\r\nI20150728-08:57:02.394(8)? [velocity] Target framework for tests/cucumber/fixtures/my_fixture.js is cucumber\r\nI20150728-08:57:02.554(8)? [velocity] Search framework for path tests/cucumber/features/step_definitions/sample_steps.js\r\nI20150728-08:57:02.554(8)? [velocity] Target framework for tests/cucumber/features/step_definitions/sample_steps.js is cucumber\r\nI20150728-08:57:16.699(8)? [velocity] Mirror registered. Handshaking with mirror...\r\nI20150728-08:57:16.725(8)? [velocity] Connected to mirror, setting state to ready { framework: 'cucumber',\r\nI20150728-08:57:16.726(8)?   host: 'http://localhost:58791/',\r\nI20150728-08:57:16.726(8)?   port: '58791' }\r\nI20150728-08:57:25.868(8)? [velocity] Mirror registered. Handshaking with mirror...\r\nI20150728-08:57:25.883(8)? [velocity] Connected to mirror, setting state to ready { framework: 'cucumber',\r\nI20150728-08:57:25.883(8)?   host: 'http://localhost:58791/',\r\nI20150728-08:57:25.883(8)?   port: '58791' }\r\n```\r\n\r\ncontent of `.meteor/local/log/cucumber.log`\r\n\r\n```\r\nSpawn script arguments:\r\nparentPid: 79174\r\ntaskName: cucumber\r\ncommand: meteor\r\ncommandArguments: [ 'run',\r\n  '--test-app',\r\n  '--port',\r\n  '58791',\r\n  '--include-tests',\r\n  'cucumber/fixtures',\r\n  '--settings',\r\n  '/var/folders/fn/y1jvjgdn7v7g2y0ntvdtjwxc0000gn/T/tmp-79195V8yPso44neVc.tmp',\r\n  '--raw-logs',\r\n  '--release',\r\n  'velocity:METEOR@1.1.0.2_3' ]\r\npid: 79197\r\nchild.pid: 79198\r\n=> Using velocity:METEOR@1.1.0.2_3 as requested (overriding Meteor 1.1.0.2)\r\n\r\n[[[[[ ~/todos ]]]]]\r\n\r\n=> Started proxy.\r\n[sanjo:long-running-child-process]: Exposing imports for testing purposes\r\n[velocity] adding velocity core\r\n[xolvio:cucumber] Mirror server is initializing\r\n[xolvio:cucumber] Starting Chimp\r\n[xolvio:cucumber] Screenshots dir is /Users/liangsun/todos/tests/cucumber/.screenshots\r\n[xolvio:cucumber] Starting Chimp with /Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/bin/chimp [ '/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/bin/chimp',\r\n  '-r',\r\n  '/Users/liangsun/todos/tests/cucumber/features',\r\n  '--snippets',\r\n  '--ddp=http://localhost:58791/',\r\n  '--log=error',\r\n  '--debug',\r\n  '--screenshotsPath=/Users/liangsun/todos/tests/cucumber/.screenshots',\r\n  '--tags=@dev',\r\n  '--server',\r\n  '--serverPort=8866' ] { cwd: '/Users/liangsun/todos/tests/cucumber',\r\n  stdio: 'inherit',\r\n  env: \r\n   { METEOR_SHELL_DIR: '/private/var/folders/fn/y1jvjgdn7v7g2y0ntvdtjwxc0000gn/T/meteor-test-run1qrl6zu/.meteor/local/shell',\r\n     TERM_PROGRAM: 'Apple_Terminal',\r\n     rvm_bin_path: '/Users/liangsun/.rvm/bin',\r\n     MIRROR_PORT: '58791',\r\n     SHELL: '/bin/bash',\r\n     TERM: 'xterm-256color',\r\n     IS_MIRROR: 'true',\r\n     HOST: 'http://localhost:58791/',\r\n     CLICOLOR: '1',\r\n     TMPDIR: '/var/folders/fn/y1jvjgdn7v7g2y0ntvdtjwxc0000gn/T/',\r\n     Apple_PubSub_Socket_Render: '/private/tmp/com.apple.launchd.viccC0IZcl/Render',\r\n     TERM_PROGRAM_VERSION: '343.7',\r\n     HANDSHAKE: 'true',\r\n     OLDPWD: '/Users/liangsun/.meteor/packages/velocity_meteor-tool/1.1.3_4/mt-os.osx.x86_64',\r\n     MOBILE_DDP_URL: 'http://localhost:58791',\r\n     TERM_SESSION_ID: '8F31EC75-E884-4918-9E7D-381B5602D1EA',\r\n     GIT_EDITOR: 'vim',\r\n     USER: 'liangsun',\r\n     _system_type: 'Darwin',\r\n     RBENV_ROOT: '/usr/local/var/rbenv',\r\n     rvm_path: '/Users/liangsun/.rvm',\r\n     TERM_SESSION_CLASS_ID: '360A3622-5A50-4943-AACC-9B564A5F6158',\r\n     SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.4LyULiBi4K/Listeners',\r\n     __CF_USER_TEXT_ENCODING: '0x1F5:0x0:0x0',\r\n     rvm_prefix: '/Users/liangsun',\r\n     PATH: '/Users/liangsun/.meteor/packages/velocity_meteor-tool/.1.1.3_4.1981n91++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin:/Users/liangsun/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin:/usr/local/var/rbenv/shims:/usr/local/heroku/bin:/usr/local/var/rbenv/shims:/usr/local/heroku/bin:/usr/local/var/rbenv/shims:/usr/local/heroku/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/usr/texbin:/Users/liangsun/.rvm/bin:/Users/liangsun/.rvm/bin:/Users/liangsun/.rvm/bin:/Users/liangsun/.rvm/bin',\r\n     METEOR_SETTINGS: '{\"title\":\"test todos\"}',\r\n     PWD: '/Users/liangsun/todos',\r\n     PARENT_URL: 'http://localhost:3000/',\r\n     MONGO_URL: 'mongodb://127.0.0.1:3001/cucumber',\r\n     EDITOR: 'vim',\r\n     LANG: 'en_US.UTF-8',\r\n     PYTHONSTARTUP: '/Users/liangsun/.pythonrc.py',\r\n     NODE_PATH: '',\r\n     XPC_FLAGS: '0x0',\r\n     _system_arch: 'x86_64',\r\n     NODE_ENV: 'development',\r\n     _system_version: '10.10',\r\n     ROOT_URL: 'http://localhost:58791/',\r\n     APP_ID: 'cboji614b18u11hgvhfz',\r\n     XPC_SERVICE_NAME: '0',\r\n     rvm_version: '1.26.11 (latest)',\r\n     METEOR_PARENT_PID: '79198',\r\n     SHLVL: '1',\r\n     HOME: '/Users/liangsun',\r\n     VELOCITY_DEBUG: '1',\r\n     METEOR_PRINT_ON_LISTEN: 'true',\r\n     LOGNAME: 'liangsun',\r\n     FRAMEWORK: 'cucumber',\r\n     HTTP_FORWARDED_COUNT: '2',\r\n     PORT: '24301',\r\n     MONGO_OPLOG_URL: 'mongodb://127.0.0.1:3001/local',\r\n     VELOCITY_MAIN_APP_PATH: '/Users/liangsun/todos',\r\n     ROOT_URL_PATH: '',\r\n     SECURITYSESSIONID: '186a5',\r\n     _system_name: 'OSX',\r\n     MOBILE_ROOT_URL: 'http://localhost:58791' } }\r\n[xolvio:cucumber] Chimp process forked with pid 79228\r\n=> Started your app.\r\n\r\n=> App running at: http://localhost:58791/\r\n[velocity] Mirror started. Connecting via DDP to parent\r\n[velocity] Mirror connected to parent. Registering mirror...\r\nSpawn script arguments:\r\nparentPid: 79198\r\ntaskName: Chimp_8866\r\ncommand: /Users/liangsun/.meteor/packages/velocity_meteor-tool/.1.1.3_4.1981n91++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node\r\ncommandArguments: [ '/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/bin/chimp',\r\n  '-r',\r\n  '/Users/liangsun/todos/tests/cucumber/features',\r\n  '--snippets',\r\n  '--ddp=http://localhost:58791/',\r\n  '--log=error',\r\n  '--debug',\r\n  '--screenshotsPath=/Users/liangsun/todos/tests/cucumber/.screenshots',\r\n  '--tags=@dev',\r\n  '--server',\r\n  '--serverPort=8866' ]\r\npid: 79228\r\nchild.pid: 79229\r\n[velocity] Established connection with Velocity.\r\n[chimp] Running /Users/liangsun/.meteor/packages/velocity_meteor-tool/.1.1.3_4.1981n91++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm install\r\n[chimp] stdout: underscore@1.8.3 node_modules/underscore\r\n\r\n[chimp] stderr: \r\n[chimp] Chimp server is running on port 8866 http://localhost:58791/\r\n[sanjo:long-running-child-process]: Exposing imports for testing purposes\r\n[velocity] adding velocity core\r\n[xolvio:cucumber] Mirror server is initializing\r\n[xolvio:cucumber] Starting Chimp\r\n[xolvio:cucumber] Chimp is already running in server mode. Initting\r\n[xolvio:cucumber] Connecting to hub\r\n[xolvio:cucumber] Connected to hub.\r\n=> Meteor server restarted\r\n[velocity] Mirror started. Connecting via DDP to parent\r\n[velocity] Mirror connected to parent. Registering mirror...\r\n[chimp] Handshaking with DDP server\r\n[xolvio:cucumber] Received handshake from Chimp.\r\n[xolvio:cucumber] Connecting to hub\r\n[chimp] Handshake complete, closing DDP connection\r\n[velocity] Established connection with Velocity.\r\n[xolvio:cucumber] Connected to hub.\r\n[xolvio:cucumber] Find and run triggered { '0': \r\n   { name: 'sample_steps.js',\r\n     absolutePath: '/Users/liangsun/todos/tests/cucumber/features/step_definitions/sample_steps.js',\r\n     relativePath: 'tests/cucumber/features/step_definitions/sample_steps.js',\r\n     targetFramework: 'cucumber',\r\n     lastModified: 1438045022554,\r\n     _id: '/Users/liangsun/todos/tests/cucumber/features/step_definitions/sample_steps.js' } }\r\n[xolvio:cucumber] Running in batch-features mode.\r\n[xolvio:cucumber] Cucumber is running\r\n[chimp] interrupting\r\n[chimp] no processes to interrupt\r\n[xolvio:cucumber] Find and run triggered { '0': \r\n   { name: 'sample_steps.js',\r\n     absolutePath: '/Users/liangsun/todos/tests/cucumber/features/step_definitions/sample_steps.js',\r\n     relativePath: 'tests/cucumber/features/step_definitions/sample_steps.js',\r\n     targetFramework: 'cucumber',\r\n     lastModified: 1438045022554,\r\n     _id: '/Users/liangsun/todos/tests/cucumber/features/step_definitions/sample_steps.js' } }\r\n[xolvio:cucumber] Running in batch-features mode.\r\n[xolvio:cucumber] Cucumber is running\r\n[chimp] rerunning\r\n[chimp] Running...\r\n[chimp] interrupting\r\n[chimp] no processes to interrupt\r\n[chimp][selenium] Selenium object created\r\n[chimp][selenium] Start\r\n[chimp][selenium] Installing Selenium + drivers if needed\r\n[chimp] interrupting\r\n[chimp] 2 processes to interrupt\r\n[chimp][cucumber] interrupting cucumber\r\n[chimp][cucumber] no child to interrupt\r\n[chimp][selenium] interrupt called\r\n[chimp][selenium] interrupt is not killing selenium because clean-selenium-server not set\r\n[chimp] Finished interrupting processes\r\n[chimp] rerunning\r\n[chimp] Running...\r\n[chimp] interrupting\r\n[chimp] no processes to interrupt\r\n[chimp][selenium] Selenium object already exists, not creating a new one\r\n[chimp][selenium] Start\r\n[chimp][selenium] Installing Selenium + drivers if needed\r\n\r\n[chimp][selenium] hub can be seen at http://localhost:59021/wd/hub\r\n\r\n[chimp][selenium] hub can be seen at http://localhost:59021/wd/hub\r\n[chimp] Finished running async processes with errors\r\n[chimp] finished rerun\r\n[xolvio:cucumber] Bad response from Chimp server. [TypeError: Cannot read property 'message' of null]\r\n[chimp] interrupting\r\n[chimp] 2 processes to interrupt\r\n[chimp][cucumber] interrupting cucumber\r\n[chimp][cucumber] no child to interrupt\r\n[chimp][selenium] interrupt called\r\n[chimp][selenium] interrupt is not killing selenium because clean-selenium-server not set\r\n[chimp] Finished interrupting processes\r\n[chimp][session-manager] options are { port: '59021', browser: 'chrome', deviceName: undefined }\r\n[chimp][session-manager] created a new SessionManager { port: '59021', browser: 'chrome', deviceName: undefined }\r\n[chimp][cucumber] Running with [ 'node',\r\n  '/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/.bin/cucumber.js',\r\n  '-r',\r\n  'features',\r\n  '-r',\r\n  '/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/lib/cucumberjs/world.js',\r\n  '-r',\r\n  '/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/lib/cucumberjs/hooks.js',\r\n  '-r',\r\n  '/Users/liangsun/todos/tests/cucumber/features',\r\n  '--snippets',\r\n  'true',\r\n  '--tags',\r\n  '@dev',\r\n  '--format',\r\n  'pretty' ]\r\n[chimp][world] creating DDP connection\r\n\r\n[chimp][hooks] Starting BeforeFeatures\r\n\r\n[chimp][world] getting browser\r\n\r\n[chimp][session-manager] options are { port: '59021', browser: 'chrome', deviceName: undefined }\r\n\r\n[chimp][session-manager] created a new SessionManager { port: '59021', browser: 'chrome', deviceName: undefined }\r\n\r\n[chimp][world] custom chimp.js not found, loading defaults\r\n\r\n[chimp][world] webdriverOptions are  {\"waitforTimeout\":10000,\"desiredCapabilities\":{\"browserName\":\"chrome\",\"platform\":\"ANY\",\"name\":\"\"},\"host\":\"localhost\",\"port\":\"59021\",\"logLevel\":\"silent\"}\r\n\r\n[chimp][session-manager] creating webdriver remote \r\n\r\n[chimp][session-manager] checking connection to selenium server\r\n\r\n[chimp][session-manager] requesting sessions from http://localhost:59021/wd/hub/sessions\r\n\r\n[chimp][session-manager] received data {\"sessionId\":null,\"status\":0,\"state\":\"success\",\"value\":[],\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1406035614}\r\n\r\n[chimp][session-manager] Did not find any open selenium sessions, not reusing a session\r\n\r\n[chimp][session-manager] monkey patching the browser object\r\n\r\n[chimp][hooks] init browser\r\n\r\n[chimp][session-manager] initializing browser\r\n\r\n[chimp][hooks] setup DDP\r\n\r\n[chimp][hooks] connecting via DDP to http://localhost:58791/\r\n\r\n[chimp][hooks] init browser callback\r\n\r\n[chimp][hooks] set timeoutsAsyncScript\r\n\r\n[chimp][hooks] Finished BeforeFeatures\r\n[chimp][hooks] User-defined BeforeFeatures not found, finishing up\r\n\r\n\r\nFeature: One-liner description of this feature\r\n\r\n\r\n  As a [role]\r\n  I want [feature]\r\n  So that [benefit]\r\n\r\n  The story above is to set context for the reader. It doesn't actually have any impact on the test\r\n  itself. The phrases inside the scenarios are ties to test code using regex, which you can see in\r\n  /tests/features/step_definitions/steps.js\r\n\r\n  In this textual part of the file, you can include context about this feature, you can add links to\r\n  external documents and whatever is needed to create the full specification.\r\n\r\n\r\n[chimp][world] setting up world\r\n\r\n  @dev\r\n  Scenario: This scenario will run on both dev and CI   # features/sample.feature:20\r\n\r\n    Given I am a new user                               # features/sample.feature:16\r\n\r\n    When I navigate to \"/\"                              # features/sample.feature:21\r\n\r\n    Then I should see the title \"intentional failure\"   # features/sample.feature:22\r\n      Error: Promise was fulfilled but got rejected with the following reason: Error: stale element reference: element is not attached to the page document\r\n        at new ErrorHandler.CommandError (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/utils/ErrorHandler.js:86:12)\r\n        at Object.<anonymous> (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/commands/waitUntil.js:94:22)\r\n        at Object.safeExecute (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/utils/safeExecute.js:22:24)\r\n        at Object.WebdriverIO.resolve (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/webdriverio.js:73:29)\r\n        at /Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/webdriverio.js:193:32\r\n        at _rejected (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:830:24)\r\n        at /Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:856:30\r\n        at Promise.when (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:1108:31)\r\n        at Promise.promise.promiseDispatch (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:774:41)\r\n        at /Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:590:44\r\n        at runSingle (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:123:13)\r\n        at flush (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:111:13)\r\n        at process._tickDomainCallback (node.js:486:13)\r\n\r\n\r\n\r\n\r\n(::) failed steps (::)\r\n\r\nError: Promise was fulfilled but got rejected with the following reason: Error: stale element reference: element is not attached to the page document\r\n  at new ErrorHandler.CommandError (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/utils/ErrorHandler.js:86:12)\r\n  at Object.<anonymous> (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/commands/waitUntil.js:94:22)\r\n  at Object.safeExecute (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/utils/safeExecute.js:22:24)\r\n  at Object.WebdriverIO.resolve (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/webdriverio.js:73:29)\r\n  at /Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/webdriverio.js:193:32\r\n  at _rejected (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:830:24)\r\n  at /Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:856:30\r\n  at Promise.when (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:1108:31)\r\n  at Promise.promise.promiseDispatch (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:774:41)\r\n  at /Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:590:44\r\n  at runSingle (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:123:13)\r\n  at flush (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:111:13)\r\n  at process._tickDomainCallback (node.js:486:13)\r\n\r\n\r\nFailing scenarios:\r\n/Users/liangsun/todos/tests/cucumber/features/sample.feature:20 # Scenario: This scenario will run on both dev and CI\r\n\r\n1 scenario (1 failed)\r\n3 steps (1 failed, 2 passed)\r\n[chimp][hooks] Starting AfterFeatures\r\n[chimp][hooks] Ending browser session\r\n[chimp][session-manager] watch / server mode are true, not killing session\r\n[chimp][hooks] Ended browser sessions\r\n[chimp][hooks] Finished AfterFeatures\r\n\r\n[chimp][cucumber] Closed with code 2\r\n[chimp] finished rerun\r\n[chimp] Finished running async processes with errors\r\nError: Promise was fulfilled but got rejected with the following reason: Error: stale element reference: element is not attached to the page document\r\n  at new ErrorHandler.CommandError (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/utils/ErrorHandler.js:86:12)\r\n  at Object.<anonymous> (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/commands/waitUntil.js:94:22)\r\n  at Object.safeExecute (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/utils/safeExecute.js:22:24)\r\n  at Object.WebdriverIO.resolve (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/webdriverio.js:73:29)\r\n  at /Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/lib/webdriverio.js:193:32\r\n  at _rejected (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:830:24)\r\n  at /Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:856:30\r\n  at Promise.when (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:1108:31)\r\n  at Promise.promise.promiseDispatch (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:774:41)\r\n  at /Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:590:44\r\n  at runSingle (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:123:13)\r\n  at flush (/Users/liangsun/.meteor/packages/xolvio_cucumber/.0.12.3.kt41ck++os+web.browser+web.cordova/npm/node_modules/chimp/node_modules/webdriverio/node_modules/q/q.js:111:13)\r\n  at process._tickDomainCallback (node.js:486:13)\r\n\r\nstream error Network error: ws://localhost:3000/websocket: connect ECONNREFUSED\r\nstream error Network error: ws://localhost:3000/websocket: connect ECONNREFUSED\r\nstream error Network error: ws://localhost:3000/websocket: connect ECONNREFUSED\r\nstream error Network error: ws://localhost:3000/websocket: connect ECONNREFUSED\r\nParent process ( 79174 ) is dead! Exiting cucumber\r\n```\r\n\r\ncontent of `.meteor/versions`\r\n\r\n```\r\naccounts-base@1.2.0\r\naccounts-password@1.1.1\r\namplify@1.0.0\r\nautoupdate@1.2.1\r\nbase64@1.0.3\r\nbinary-heap@1.0.3\r\nblaze@2.1.2\r\nblaze-tools@1.0.3\r\nboilerplate-generator@1.0.3\r\ncallback-hook@1.0.3\r\ncheck@1.0.5\r\ncoffeescript@1.0.6\r\nddp@1.1.0\r\ndeps@1.0.7\r\nejson@1.0.6\r\nemail@1.0.6\r\nfastclick@1.0.3\r\ngeojson-utils@1.0.3\r\nhtml-tools@1.0.4\r\nhtmljs@1.0.4\r\nhttp@1.1.0\r\nid-map@1.0.3\r\ninsecure@1.0.3\r\niron:core@0.3.4\r\niron:dynamic-template@0.4.1\r\niron:layout@0.4.1\r\niron:router@0.9.4\r\njquery@1.11.3_2\r\njson@1.0.3\r\nlaunch-screen@1.0.2\r\nless@1.0.14\r\nlivedata@1.0.13\r\nlocalstorage@1.0.3\r\nlogging@1.0.7\r\nmeteor@1.1.6\r\nmeteor-platform@1.2.2\r\nminifiers@1.1.5\r\nminimongo@1.0.8\r\nmobile-status-bar@1.0.3\r\nmongo@1.1.0\r\nnpm-bcrypt@0.7.8_2\r\nobserve-sequence@1.0.6\r\nordered-dict@1.0.3\r\npackage-version-parser@3.0.3\r\npracticalmeteor:chai@1.9.2_3\r\npracticalmeteor:loglevel@1.1.0_3\r\nrandom@1.0.3\r\nreactive-dict@1.1.0\r\nreactive-var@1.0.5\r\nreload@1.1.3\r\nretry@1.0.3\r\nroutepolicy@1.0.5\r\nsanjo:long-running-child-process@1.1.1\r\nsanjo:meteor-files-helpers@1.1.0_7\r\nsanjo:meteor-version@1.0.0\r\nservice-configuration@1.0.4\r\nsession@1.1.0\r\nsha@1.0.3\r\nspacebars@1.0.6\r\nspacebars-compiler@1.0.6\r\nsrp@1.0.3\r\ntemplating@1.1.1\r\ntracker@1.0.7\r\nui@1.0.6\r\nunderscore@1.0.3\r\nurl@1.0.4\r\nvelocity:chokidar@1.0.3_1\r\nvelocity:core@0.7.1\r\nvelocity:html-reporter@0.7.3\r\nvelocity:meteor-internals@1.1.0_7\r\nvelocity:shim@0.1.0\r\nwebapp@1.2.0\r\nwebapp-hashing@1.0.3\r\nxolvio:cucumber@0.12.3\r\n```\r\n\r\ncontent of `.meteor/packages`\r\n\r\n```\r\n# Meteor packages used by this project, one per line.\r\n# Check this file (and the other files in this directory) into your repository.\r\n#\r\n# 'meteor add' and 'meteor remove' will edit this file for you,\r\n# but you can also edit it by hand.\r\n\r\nmeteor-platform\r\ninsecure\r\nless\r\niron:router@0.9.4\r\naccounts-password\r\nxolvio:cucumber\r\n```"}}