payload: {"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/1912","repository_url":"https://api.github.com/repos/Codeception/CodeceptJS","labels_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/1912/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/1912/comments","events_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/1912/events","html_url":"https://github.com/Codeception/CodeceptJS/issues/1912","id":498709776,"node_id":"MDU6SXNzdWU0OTg3MDk3NzY=","number":1912,"title":"accessing elements inside an iframe with puppeteer 1.20","user":{"login":"medtoure18","id":46603792,"node_id":"MDQ6VXNlcjQ2NjAzNzky","avatar_url":"https://avatars2.githubusercontent.com/u/46603792?v=4","gravatar_id":"","url":"https://api.github.com/users/medtoure18","html_url":"https://github.com/medtoure18","followers_url":"https://api.github.com/users/medtoure18/followers","following_url":"https://api.github.com/users/medtoure18/following{/other_user}","gists_url":"https://api.github.com/users/medtoure18/gists{/gist_id}","starred_url":"https://api.github.com/users/medtoure18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medtoure18/subscriptions","organizations_url":"https://api.github.com/users/medtoure18/orgs","repos_url":"https://api.github.com/users/medtoure18/repos","events_url":"https://api.github.com/users/medtoure18/events{/privacy}","received_events_url":"https://api.github.com/users/medtoure18/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-09-26T07:30:29Z","updated_at":"2019-10-04T08:03:12Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"#### What are you trying to achieve?\r\nI am trying fill an input field inside an iframe with  puppeteer 1.20 and codecptjs 2.32\r\n\r\n#### What do you get instead?\r\nwith  puppeteer 1.20 codeceptjs does not find the input inside the iframe. with puppeteer 1.19, it's working perfectly\r\n\r\n####  test source code\r\n\r\n```js\r\n    I.amOnPage('https://pac.com/');\r\n    await within({frame: \"#pac-card-field-cardNumber > iframe\"}, () => {\r\n        I.fillField(\"input[name=\\\"cardnumber\\\"]\", \"4012001037484447\");\r\n    });\r\n```\r\n\r\n# result with puppeteer 1.19\r\n```bash\r\n> codeceptjs-c@1.0.0 pacon /home/mtoure/workspace/nr-stage\r\n> codeceptjs run --grep @pacon --verbose\r\n\r\nheadless=false\r\nenv=stage\r\nbrowser=chrome\r\nCodeceptJS v2.3.2\r\nUsing test root \"/home/mtoure/workspace/nr-stage\"\r\nHelpers: Puppeteer, REST, Mochawesome, FileSystem, puppeteerHelper, fileHelper\r\nPlugins: screenshotOnFail, stepByStepReport, retryFailedStep, allure\r\n\r\nProvider pacON @pacon --\r\n    [1] Starting recording promises\r\n    Emitted | suite.before ([object Object])\r\n › [Session] Starting singleton browser session\r\n  Transaction by api Hpacment with a VISA @visa\r\n    Emitted | test.before ([object Object])\r\n › [Dir] /home/mtoure/workspace/nr-stage\r\n    Emitted | test.start ([object Object])\r\n    Emitted | step.before (I am on page \"https://pac.com/\")\r\n    Emitted | step.after (I am on page \"https://pac.com/\")\r\n    Emitted | step.start (I am on page \"https://pac.com/\")\r\n    I am on page \"https://pac.com/\"\r\n    › [Url] https://pac.com/\r\n    › [Browser:Log] pac Javascript SDK v1.9.1JSHandle:pac Javascript SDK v1.9.1\r\n    › Screenshot is saving to /home/mtoure/workspace/nr-stage/output/record_6d0d1ad42898ab0fd80d8b4babbb14c7/0000.png\r\n    Emitted | step.passed (I am on page \"https://pac.com/\")\r\n    Emitted | step.finish (I am on page \"https://pac.com/\")\r\n    [1] Starting <within> session\r\n    Emitted | step.before (I fill field \"input[name=\"cardnumber\"]\", \"4012001037484447\")\r\n    Emitted | step.after (I fill field \"input[name=\"cardnumber\"]\", \"4012001037484447\")\r\n    Emitted | step.start (I fill field \"input[name=\"cardnumber\"]\", \"4012001037484447\")\r\n    Emitted | step.comment (Within \"{\"frame\":\"#pac-card-field-cardNumber > iframe\"}\" )\r\n    Within \"{\"frame\":\"#pac-card-field-cardNumber > iframe\"}\"\r\n      I fill field \"input[name=\"cardnumber\"]\", \"4012001037484447\"\r\n      › Screenshot is saving to /home/mtoure/workspace/nr-stage/output/record_6d0d1ad42898ab0fd80d8b4babbb14c7/0001.png\r\n    Emitted | step.passed (I fill field \"input[name=\"cardnumber\"]\", \"4012001037484447\")\r\n    Emitted | step.finish (I fill field \"input[name=\"cardnumber\"]\", \"4012001037484447\")\r\n    [1] <within> Finalize <within> session\r\n    Emitted | test.passed ([object Object])\r\n    Emitted | test.finish ([object Object])\r\n  ✔ OK in 7853ms\r\n\r\n    Emitted | test.after ([object Object])\r\n  › [Session] cleaning cookies and localStorage\r\n    Emitted | suite.after ([object Object])\r\n\r\n  OK  | 1 passed   // 10s\r\nProcess finished with exit code 0\r\n```\r\n\r\n# result with puppeteer 1.20\r\n```bash\r\n> codeceptjs-c@1.0.0 pacon /home/mtoure/workspace/nr-stage\r\n> codeceptjs run --grep @pacon --verbose\r\n\r\nheadless=false\r\nenv=stage\r\nbrowser=chrome\r\nCodeceptJS v2.3.2\r\nUsing test root \"/home/mtoure/workspace/nr-stage\"\r\nHelpers: Puppeteer, REST, Mochawesome, FileSystem, puppeteerHelper, fileHelper\r\nPlugins: screenshotOnFail, stepByStepReport, retryFailedStep, allure\r\n\r\nProvider pacON @pacon --\r\n    [1] Starting recording promises\r\n    Emitted | suite.before ([object Object])\r\n › [Session] Starting singleton browser session\r\n  Transaction by api Hpacment with a VISA @visa\r\n    Emitted | test.before ([object Object])\r\n › [Dir] /home/mtoure/workspace/nr-stage\r\n    Emitted | test.start ([object Object])\r\n    Emitted | step.before (I am on page \"https://pac.com/\")\r\n    Emitted | step.after (I am on page \"https://pac.com/\")\r\n    Emitted | step.start (I am on page \"https://pac.com/\")\r\n    I am on page \"https://pac.com/\"\r\n    › [Url] https://pac.com/\r\n    › [Browser:Log] pac Javascript SDK v1.9.1JSHandle:pac Javascript SDK v1.9.1\r\n    › [Url]\r\n    › [Url] https://libs.pac.com/hostedfields/index.html#type=carousel&element=carousel&instanceId=714712&referrer=https://pac.com\r\n    › [Url]\r\n    › [Url]\r\n    › [Url]\r\n    › [Url]\r\n    › [Url]\r\n    › Screenshot is saving to /home/mtoure/workspace/nr-stage/output/record_6d0d1ad42898ab0fd80d8b4babbb14c7/0000.png\r\n    › [Url] https://libs.pac.com/hostedfields/index.html#type=card&element=controller&instanceId=862569&referrer=https://pac.com\r\n    › [Url] https://libs.pac.com/hostedfields/index.html#type=card&element=cardHolder&instanceId=862569&referrer=https://pac.com\r\n    › [Url] https://libs.pac.com/hostedfields/index.html#type=card&element=cardNumber&instanceId=862569&referrer=https://pac.com\r\n    › [Url] https://libs.pac.com/hostedfields/index.html#type=card&element=expiryDate&instanceId=862569&referrer=https://pac.com\r\n    Emitted | step.passed (I am on page \"https://pac.com/\")\r\n    Emitted | step.finish (I am on page \"https://pac.com/\")\r\n    [1] Starting <within> session\r\n    Emitted | step.before (I fill field \"input[name=\"cardnumber\"]\", \"4012001037484447\")\r\n    Emitted | step.after (I fill field \"input[name=\"cardnumber\"]\", \"4012001037484447\")\r\n › [Url] https://libs.pac.com/hostedfields/index.html#type=card&element=cvc&instanceId=862569&referrer=https://pac.com\r\n    Emitted | step.start (I fill field \"input[name=\"cardnumber\"]\", \"4012001037484447\")\r\n    Emitted | step.comment (Within \"{\"frame\":\"#pac-card-field-cardNumber > iframe\"}\" )\r\n    Within \"{\"frame\":\"#pac-card-field-cardNumber > iframe\"}\"\r\n      I fill field \"input[name=\"cardnumber\"]\", \"4012001037484447\"\r\n    [1] <within> Retrying... Attempt #2\r\n    [1] <within> Retrying... Attempt #3\r\n    [1] <within> Retrying... Attempt #4\r\n    [1] <within> Retrying... Attempt #5\r\n    [1] <within> Retrying... Attempt #6\r\n    [1] <within> Error | Error: Field \"input[name=\"cardnumber\"]\" was not found by text|CSS|XPath\r\n    Emitted | step.failed (I fill field \"input[name=\"cardnumber\"]\", \"4012001037484447\")\r\n      › Screenshot is saving to /home/mtoure/workspace/nr-stage/output/record_6d0d1ad42898ab0fd80d8b4babbb14c7/0001.png\r\n    Emitted | step.finish (I fill field \"input[name=\"cardnumber\"]\", \"4012001037484447\")\r\n    [1] <within> Error | Error: Field \"input[name=\"cardnumber\"]\" was not found by text|CSS|XPath\r\n    [1] <within> Error | Error: Field \"input[name=\"cardnumber\"]\" was not found by text|CSS|XPath\r\n    [1] <within> Starting <teardown> session\r\n    Emitted | test.failed ([object Object])\r\n    Emitted | test.finish ([object Object])\r\n    [1] <teardown> Stopping recording promises\r\n  › <screenshotOnFail> Test failed, saving screenshot\r\n  › Screenshot is saving to /home/mtoure/workspace/nr-stage/output/Transactio_1569482685.failed.png\r\n  ✖ FAILED in 10346ms\r\n\r\n    [2] Starting recording promises\r\n    Emitted | test.after ([object Object])\r\n  › [Session] cleaning cookies and localStorage\r\n    Emitted | suite.after ([object Object])\r\n\r\n-- FAILURES:\r\n\r\n  1) Provider pacON @pacon\r\n       Transaction by api Hpacment with a VISA @visa:\r\n     Field \"input[name=\"cardnumber\"]\" was not found by text|CSS|XPath\r\n\r\n  Scenario Steps:\r\n\r\n  - I.fillField(\"input[name=\"cardnumber\"]\", \"4012001037484447\") at within (tests/Acceptance/Providers/pacon.js:28:11)\r\n  - I.amOnPage(\"https://pac.com/\") at Test.Scenario (tests/Acceptance/Providers/pacon.js:26:3)\r\n\r\n  Error: Field \"input[name=\"cardnumber\"]\" was not found by text|CSS|XPath\r\n      at new ElementNotFound (node_modules/codeceptjs/lib/helper/errors/ElementNotFound.js:14:11)\r\n      at assertElementExists (node_modules/codeceptjs/lib/helper/Puppeteer.js:2266:11)\r\n      at Puppeteer.fillField (node_modules/codeceptjs/lib/helper/Puppeteer.js:1071:5)\r\n      at process._tickCallback (internal/process/next_tick.js:68:7)\r\n\r\n\r\n  FAIL  | 0 passed, 1 failed   // 13s\r\n    Emitted | global.result ([object Object])\r\n◉ Step-by-step preview: file:///home/mtoure/workspace/nr-stage/output/records.html\r\n    Emitted | global.after ([object Object])\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! codeceptjs-c@1.0.0 pacon: `codeceptjs run --grep @pacon --verbose`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the codeceptjs-c@1.0.0 pacon script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /home/mtoure/.npm/_logs/2019-09-26T07_24_49_116Z-debug.log\r\n\r\nProcess finished with exit code 1\r\n\r\n```\r\n\r\n\r\n\r\n### Details\r\n\r\n* CodeceptJS version:2.32\r\n* Operating System: Ubuntu 18\r\n* Puppeteer: 1.20\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/comments/538291481","html_url":"https://github.com/Codeception/CodeceptJS/issues/1912#issuecomment-538291481","issue_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/1912","id":538291481,"node_id":"MDEyOklzc3VlQ29tbWVudDUzODI5MTQ4MQ==","user":{"login":"samaysimantbarik","id":44022711,"node_id":"MDQ6VXNlcjQ0MDIyNzEx","avatar_url":"https://avatars1.githubusercontent.com/u/44022711?v=4","gravatar_id":"","url":"https://api.github.com/users/samaysimantbarik","html_url":"https://github.com/samaysimantbarik","followers_url":"https://api.github.com/users/samaysimantbarik/followers","following_url":"https://api.github.com/users/samaysimantbarik/following{/other_user}","gists_url":"https://api.github.com/users/samaysimantbarik/gists{/gist_id}","starred_url":"https://api.github.com/users/samaysimantbarik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samaysimantbarik/subscriptions","organizations_url":"https://api.github.com/users/samaysimantbarik/orgs","repos_url":"https://api.github.com/users/samaysimantbarik/repos","events_url":"https://api.github.com/users/samaysimantbarik/events{/privacy}","received_events_url":"https://api.github.com/users/samaysimantbarik/received_events","type":"User","site_admin":false},"created_at":"2019-10-04T08:03:12Z","updated_at":"2019-10-04T08:03:12Z","author_association":"NONE","body":"@PeterNgTr : Does that snippet work?\r\nI wanted to run the same but got error.\r\n\r\n  \r\n![image](https://user-images.githubusercontent.com/44022711/66191198-1e27f800-e6d1-11e9-9f56-0c188c052f61.png)\r\n\r\n![image](https://user-images.githubusercontent.com/44022711/66191225-326bf500-e6d1-11e9-8a2b-18f9b4f85de6.png)\r\n\r\n\r\n"}}
other: {"actor":{"display_login":"samaysimantbarik"}}