{"action":"created","issue":{"url":"https://api.github.com/repos/sitespeedio/sitespeed.io/issues/793","labels_url":"https://api.github.com/repos/sitespeedio/sitespeed.io/issues/793/labels{/name}","comments_url":"https://api.github.com/repos/sitespeedio/sitespeed.io/issues/793/comments","events_url":"https://api.github.com/repos/sitespeedio/sitespeed.io/issues/793/events","html_url":"https://github.com/sitespeedio/sitespeed.io/issues/793","id":123114354,"number":793,"title":"Selenium web-driver timeouts","user":{"login":"jurajseffer","id":2191852,"avatar_url":"https://avatars.githubusercontent.com/u/2191852?v=3","gravatar_id":"","url":"https://api.github.com/users/jurajseffer","html_url":"https://github.com/jurajseffer","followers_url":"https://api.github.com/users/jurajseffer/followers","following_url":"https://api.github.com/users/jurajseffer/following{/other_user}","gists_url":"https://api.github.com/users/jurajseffer/gists{/gist_id}","starred_url":"https://api.github.com/users/jurajseffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jurajseffer/subscriptions","organizations_url":"https://api.github.com/users/jurajseffer/orgs","repos_url":"https://api.github.com/users/jurajseffer/repos","events_url":"https://api.github.com/users/jurajseffer/events{/privacy}","received_events_url":"https://api.github.com/users/jurajseffer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-19T22:28:53Z","updated_at":"2015-12-28T00:39:35Z","closed_at":null,"body":"Is there anything that can be done to address timeouts during page loading? The page may appear largely OK to the user but some of the assets may be blocked. Is there a way to still get the timings within the results?\r\n\r\nI tried using `--waitScript 'if (window.performance && window.performance.timing){ return ((window.performance.timing.requestStart > 0) && ((new Date).getTime() - window.performance.timing.requestStart > 10000 ));} else { return true;}'` but no luck.\r\n\r\n```\r\nChromeDriver 2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b)\r\nGoogle Chrome 46.0.2490.71 \r\nMozilla Firefox 41.0.2\r\nStarting Xvfb ...\r\nStarting Selenium server ... access it at http://127.0.0.1:4444/wd/hub\r\ninfo: OS: 'linux 3.16.0-4-amd64', Node.js: 'v4.2.1', sitespeed.io: '3.11.1', PhantomJS: '1.9.8', java: '1.7.0_79', browsertime: '0.12.0'\r\ninfo: Will analyze 1 page\r\ninfo: Running YSlow for https://url [phantomjs]\r\nStarting proxy on port 2001, will wait at most 15000 ms\r\ninfo: Queueing browsertime for https://url firefox\r\ninfo: Running browsertime for firefox https://url\r\nFetching https://url (1 of 10)\r\n{ [TimeoutError: Timed out waiting for page load.]\r\n  code: 21,\r\n  state: 'timeout',\r\n  message: 'Timed out waiting for page load.',\r\n  name: 'TimeoutError',\r\n  stack: 'TimeoutError: Timed out waiting for page load.\\n    at new bot.Error (/usr/lib/node_modules/sitespeed.io/node_modules/browsertime/node_modules/selenium-webdriver/lib/atoms/error.js:108:18)\\n    at Object.bot.response.checkResponse (/usr/lib/node_modules/sitespeed.io/node_modules/browsertime/node_modules/selenium-webdriver/lib/atoms/response.js:109:9)\\n    at /usr/lib/node_modules/sitespeed.io/node_modules/browsertime/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:379:20\\n    at promise.ControlFlow.runInFrame_ (/usr/lib/node_modules/sitespeed.io/node_modules/browsertime/node_modules/selenium-webdriver/lib/goog/../webdriver/promise.js:1857:20)\\n    at goog.defineClass.notify (/usr/lib/node_modules/sitespeed.io/node_modules/browsertime/node_modules/selenium-webdriver/lib/goog/../webdriver/promise.js:2448:25)\\n    at promise.Promise.notify_ (/usr/lib/node_modules/sitespeed.io/node_modules/browsertime/node_modules/selenium-webdriver/lib/goog/../webdriver/promise.js:564:12)\\n    at Array.forEach (native)\\n    at promise.Promise.notifyAll_ (/usr/lib/node_modules/sitespeed.io/node_modules/browsertime/node_modules/selenium-webdriver/lib/goog/../webdriver/promise.js:553:15)\\n    at goog.async.run.processWorkQueue (/usr/lib/node_modules/sitespeed.io/node_modules/browsertime/node_modules/selenium-webdriver/lib/goog/async/run.js:130:15)\\n    at process._tickCallback (node.js:366:9)' }\r\nerror: Error running browsertime: { [TimeoutError: Timed out waiting for page load.]\r\n```"},"comment":{"url":"https://api.github.com/repos/sitespeedio/sitespeed.io/issues/comments/167450931","html_url":"https://github.com/sitespeedio/sitespeed.io/issues/793#issuecomment-167450931","issue_url":"https://api.github.com/repos/sitespeedio/sitespeed.io/issues/793","id":167450931,"user":{"login":"jurajseffer","id":2191852,"avatar_url":"https://avatars.githubusercontent.com/u/2191852?v=3","gravatar_id":"","url":"https://api.github.com/users/jurajseffer","html_url":"https://github.com/jurajseffer","followers_url":"https://api.github.com/users/jurajseffer/followers","following_url":"https://api.github.com/users/jurajseffer/following{/other_user}","gists_url":"https://api.github.com/users/jurajseffer/gists{/gist_id}","starred_url":"https://api.github.com/users/jurajseffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jurajseffer/subscriptions","organizations_url":"https://api.github.com/users/jurajseffer/orgs","repos_url":"https://api.github.com/users/jurajseffer/repos","events_url":"https://api.github.com/users/jurajseffer/events{/privacy}","received_events_url":"https://api.github.com/users/jurajseffer/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T00:39:35Z","updated_at":"2015-12-28T00:39:35Z","body":"@cgoldberg \"some of the assets may be blocked\" means that the site and sitespeed.io runs in China where many things such as tracking/social are blocked. I suspect that the site works OK for the user as they're loaded async etc. but if browsertime/selenium has to wait for all assets to finish loading, I will never get the results. Finding which assets exactly are timing out is quite difficult as they're often dynamic.\r\n\r\nIdeally, I'd like to get a report from sitespeed for what was loaded until a custom set timeout occurs. In other words, I'd be fine with sitespeed reporting it took for example 200ms for backend, 1s to start painting etc with the full page render being equal to my custom set timeout."}}