{"action":"opened","issue":{"url":"https://api.github.com/repos/prismagraphql/chromeless/issues/435","repository_url":"https://api.github.com/repos/prismagraphql/chromeless","labels_url":"https://api.github.com/repos/prismagraphql/chromeless/issues/435/labels{/name}","comments_url":"https://api.github.com/repos/prismagraphql/chromeless/issues/435/comments","events_url":"https://api.github.com/repos/prismagraphql/chromeless/issues/435/events","html_url":"https://github.com/prismagraphql/chromeless/issues/435","id":323707709,"number":435,"title":"Cannot run wait selector after using `.evaluate()`","user":{"login":"IAMtheIAM","id":13709948,"avatar_url":"https://avatars0.githubusercontent.com/u/13709948?v=4","gravatar_id":"","url":"https://api.github.com/users/IAMtheIAM","html_url":"https://github.com/IAMtheIAM","followers_url":"https://api.github.com/users/IAMtheIAM/followers","following_url":"https://api.github.com/users/IAMtheIAM/following{/other_user}","gists_url":"https://api.github.com/users/IAMtheIAM/gists{/gist_id}","starred_url":"https://api.github.com/users/IAMtheIAM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAMtheIAM/subscriptions","organizations_url":"https://api.github.com/users/IAMtheIAM/orgs","repos_url":"https://api.github.com/users/IAMtheIAM/repos","events_url":"https://api.github.com/users/IAMtheIAM/events{/privacy}","received_events_url":"https://api.github.com/users/IAMtheIAM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-16T17:02:18Z","updated_at":"2018-05-16T17:02:18Z","closed_at":null,"author_association":"NONE","body":"I confirm an issue with waiting for elements occurs after running `.evaluate`, The wait fails after\r\n\r\n```\r\n    const screenshot = await chromeless\r\n        .setViewport({width: 1920, height: 1080, scale: 1})\r\n         .goto('https://www.mylogin.com')\r\n         .evaluate(() => {            doSomething(); })    <---- comment this out and it works\r\n        .click('a.tv-header__link--signin')\r\n        .wait(2000)\r\n        .type('username', 'input[name=\"username\"]')\r\n        .type('password', 'input[name=\"password\"]')\r\n        .press(13)\r\n        .screenshot();\r\n\r\n```\r\n\r\nResults in \r\n\r\n`Error: wait(\"input[name=\"username\"]\") timed out after 10000ms`\r\n\r\nWith the evaluate line removed, the screenshot and whole express works fine."}}
{"actor":{"display_login":"IAMtheIAM"}}