{"action":"created","issue":{"url":"https://api.github.com/repos/casperjs/casperjs/issues/1629","repository_url":"https://api.github.com/repos/casperjs/casperjs","labels_url":"https://api.github.com/repos/casperjs/casperjs/issues/1629/labels{/name}","comments_url":"https://api.github.com/repos/casperjs/casperjs/issues/1629/comments","events_url":"https://api.github.com/repos/casperjs/casperjs/issues/1629/events","html_url":"https://github.com/casperjs/casperjs/issues/1629","id":161936467,"number":1629,"title":"Casperjs not work with react.js","user":{"login":"ccjar","id":20111324,"avatar_url":"https://avatars.githubusercontent.com/u/20111324?v=3","gravatar_id":"","url":"https://api.github.com/users/ccjar","html_url":"https://github.com/ccjar","followers_url":"https://api.github.com/users/ccjar/followers","following_url":"https://api.github.com/users/ccjar/following{/other_user}","gists_url":"https://api.github.com/users/ccjar/gists{/gist_id}","starred_url":"https://api.github.com/users/ccjar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccjar/subscriptions","organizations_url":"https://api.github.com/users/ccjar/orgs","repos_url":"https://api.github.com/users/ccjar/repos","events_url":"https://api.github.com/users/ccjar/events{/privacy}","received_events_url":"https://api.github.com/users/ccjar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-23T14:27:26Z","updated_at":"2016-06-23T14:31:26Z","closed_at":null,"body":"I have an issue, when in the page html exits a div with react.js  Casperjs not found this div.\r\n\r\nMy  part of the code : \r\n\r\n\r\n casper.waitForSelector(\".add-anchor.add_button.btn.btn-primary.btn-xs\",\r\n       function success() {\r\n           test.assertExists(\".add-anchor.add_button.btn.btn-primary.btn-xs\");\r\n           this.click(\".add-anchor.add_button.btn.btn-primary.btn-xs\");\r\n       },\r\n       function fail() {\r\n           test.assertExists(\".add-anchor.add_button.btn.btn-primary.btn-xs\");\r\n   });\r\n\r\n\r\n   casper.then(function(){\r\n\t   \r\n\t   this.echo(\" URL\" + this.getCurrentUrl());\r\n\t   this.capture(\"diag2.png\");  // the picture created is blank! not load react.js\r\n\t   \r\n   });\r\n  \r\n \r\n   casper.waitForSelector(x(\"//*[@id='crudForm']\"),\r\n       function success() {\r\n           test.assertExists(x(\"//*[@id='crudForm']\"));\r\n          // this.click(\"#headingPromotions span\");\r\n       },\r\n       function fail() {\r\n           test.assertExists(x(\"//*[@id='crudForm']\"));\r\n   });\r\n\r\n\r\n\r\n\r\nHTML : \r\n\r\n<div id=\"crm\">\r\n<div data-reactid=\".0\">\r\n**<div data-reactid=\".0.$nodeFactory\">\r\n<form id=\"crudForm\" class=\"form-horizontal\" data-reactid=\".0.$crmForm\" accept-charset=\"utf-8\"** enctype=\"multipart/form-data\" method=\"post\" action=\"http://admiral.hub.trafficgenerationltd.com/crm/index/insert\" role=\"form\">\r\n<div id=\"myModal\" data-reactid=\".0.$modal\"></div>\r\n</div>\r\n</div>\r\n\r\n\r\nResult : \r\n\r\n\r\nPASS Find an element matching: .add-anchor.add_button.btn.btn-primary.btn-xs\r\nPASS Find an element matching: xpath selector: //*[@id='crm']/div\r\nPASS Find an element matching: xpath selector: //*[@id='page-wrapper']/script[1]\r\nFAIL Find an element matching: xpath selector: //*[@id='crudForm']\r\n#    type: assertExists\r\n#    file: admin2.js\r\n#    subject: false\r\n#    selector: {\"type\":\"xpath\",\"path\":\"//*[@id='crudForm']\"}\r\nFAIL 10 tests executed in 18.503s, 9 passed, 1 failed, 1 dubious, 0 skipped.    \r\n\r\nDetails for the 2 failed tests:\r\n"},"comment":{"url":"https://api.github.com/repos/casperjs/casperjs/issues/comments/228068575","html_url":"https://github.com/casperjs/casperjs/issues/1629#issuecomment-228068575","issue_url":"https://api.github.com/repos/casperjs/casperjs/issues/1629","id":228068575,"user":{"login":"ccjar","id":20111324,"avatar_url":"https://avatars.githubusercontent.com/u/20111324?v=3","gravatar_id":"","url":"https://api.github.com/users/ccjar","html_url":"https://github.com/ccjar","followers_url":"https://api.github.com/users/ccjar/followers","following_url":"https://api.github.com/users/ccjar/following{/other_user}","gists_url":"https://api.github.com/users/ccjar/gists{/gist_id}","starred_url":"https://api.github.com/users/ccjar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccjar/subscriptions","organizations_url":"https://api.github.com/users/ccjar/orgs","repos_url":"https://api.github.com/users/ccjar/repos","events_url":"https://api.github.com/users/ccjar/events{/privacy}","received_events_url":"https://api.github.com/users/ccjar/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T14:31:26Z","updated_at":"2016-06-23T14:31:26Z","body":"![selection_010](https://cloud.githubusercontent.com/assets/20111324/16306971/e683452a-395f-11e6-9548-f788c45e80d2.png)\r\n"}}
{"actor":{"display_login":"ccjar"}}