{"action":"created","issue":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/2371","repository_url":"https://api.github.com/repos/SeleniumHQ/selenium","labels_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/2371/labels{/name}","comments_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/2371/comments","events_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/2371/events","html_url":"https://github.com/SeleniumHQ/selenium/issues/2371","id":162252559,"number":2371,"title":"Click done but the related action never happens on phantomjs. Works with chrome.","user":{"login":"bhuvnesh2703","id":10293569,"avatar_url":"https://avatars.githubusercontent.com/u/10293569?v=3","gravatar_id":"","url":"https://api.github.com/users/bhuvnesh2703","html_url":"https://github.com/bhuvnesh2703","followers_url":"https://api.github.com/users/bhuvnesh2703/followers","following_url":"https://api.github.com/users/bhuvnesh2703/following{/other_user}","gists_url":"https://api.github.com/users/bhuvnesh2703/gists{/gist_id}","starred_url":"https://api.github.com/users/bhuvnesh2703/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhuvnesh2703/subscriptions","organizations_url":"https://api.github.com/users/bhuvnesh2703/orgs","repos_url":"https://api.github.com/users/bhuvnesh2703/repos","events_url":"https://api.github.com/users/bhuvnesh2703/events{/privacy}","received_events_url":"https://api.github.com/users/bhuvnesh2703/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-25T00:16:29Z","updated_at":"2016-06-28T21:07:42Z","closed_at":"2016-06-28T21:02:33Z","body":"## Problem:\r\nA Button is selected correctly with the CSS selector used, and then a click is performed on it. The event is marked as done as seen in the selenium logs, however if successful a new page must be rendered which does not happen.\r\nThe same piece of code works in chrome.\r\n\r\n## Environment:\r\nWDIO version: v4.0.9\r\nNode: 6.2.0\r\nWDIO testrunning\r\nSynchronous test.\r\nselenium-server-standalone-2.53.0.jar\r\n\r\n## Details\r\n```bash\r\n      CommonElements.clickNext();\r\n      browser.saveScreenshot('test1.jpg');\r\n      browser.pause(5000);\r\n      CommonElements.clickConfirmationOk();\r\n      browser.pause(5000);\r\n      // On Page 3\r\n      browser.saveScreenshot('test.jpg');\r\n      CommonElements.clickComplete();\r\n```\r\n\r\nIn the above code snippet\r\nclickNext() opens up a popup which has 2 buttons Cancel and Ok.\r\nclickConfirmationOk() should click on the Ok button and move on to the next page\r\nclickComplete() marks the completion on the new page.\r\n\r\nHowever, clickConfirmationOk() is succesful as per the logs and it moves on to clickComplete(). However it keeps waiting for the element to exist, but it never comes up as actually its still on the pop which shows Ok and Cancel.\r\n\r\nThe CSS selector used to identify the button is correct, as verified by getHTML and other css selectors tools online.\r\n\r\nCode Snippet\r\n```bash\r\n    clickConfirmationOk: {\r\n        value: function () {\r\n            var okSelector = '.modal-footer .btn.btn-success';\r\n            browser.waitForExist(okSelector);\r\n            console.log(browser.getHTML(okSelector));\r\n            browser.waitForEnabled(okSelector, 100000);\r\n            browser.click(okSelector);\r\n        }\r\n    },\r\n    clickComplete: {\r\n        value: function () {\r\n            var completeSelector = '#common-progress-page .btn.btn-success.pull-right';\r\n            browser.waitForExist(completeSelector);\r\n            console.log(browser.isEnabled(completeSelector));\r\n            browser.waitForEnabled(completeSelector, 900000);\r\n            browser.click(completeSelector);\r\n        }\r\n    }\r\n```\r\n\r\n## Logs\r\nSelenium Logs https://gist.github.com/bhuvnesh2703/aec82bea06debf92f9a4f6e4da93c2ea:\r\nTest Results Output: https://gist.github.com/bhuvnesh2703/076af36f5931c8fdae4a81db612bf4b7"},"comment":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/comments/229183932","html_url":"https://github.com/SeleniumHQ/selenium/issues/2371#issuecomment-229183932","issue_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/2371","id":229183932,"user":{"login":"bhuvnesh2703","id":10293569,"avatar_url":"https://avatars.githubusercontent.com/u/10293569?v=3","gravatar_id":"","url":"https://api.github.com/users/bhuvnesh2703","html_url":"https://github.com/bhuvnesh2703","followers_url":"https://api.github.com/users/bhuvnesh2703/followers","following_url":"https://api.github.com/users/bhuvnesh2703/following{/other_user}","gists_url":"https://api.github.com/users/bhuvnesh2703/gists{/gist_id}","starred_url":"https://api.github.com/users/bhuvnesh2703/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhuvnesh2703/subscriptions","organizations_url":"https://api.github.com/users/bhuvnesh2703/orgs","repos_url":"https://api.github.com/users/bhuvnesh2703/repos","events_url":"https://api.github.com/users/bhuvnesh2703/events{/privacy}","received_events_url":"https://api.github.com/users/bhuvnesh2703/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T21:07:42Z","updated_at":"2016-06-28T21:07:42Z","body":"After click on Ok. [Essentially stays on the same page]\r\n![after](https://cloud.githubusercontent.com/assets/10293569/16432390/95db0b3e-3d39-11e6-97f5-e05c406a05b9.jpg)\r\n\r\nSelenium logs says that the item is clicked.\r\n```bash\r\n14:05:36.810 INFO - Executing: [take screenshot])\r\n14:05:37.053 INFO - Done: [take screenshot]\r\n14:05:37.185 INFO - Executing: [find elements: By.cssSelector: .modal-footer .btn.btn-success])\r\n14:05:37.197 INFO - Done: [find elements: By.cssSelector: .modal-footer .btn.btn-success]\r\n14:05:37.206 INFO - Executing: [find element: By.cssSelector: .modal-footer .btn.btn-success])\r\n14:05:37.217 INFO - Done: [find element: By.cssSelector: .modal-footer .btn.btn-success]\r\n14:05:37.222 INFO - Executing: [click: 11 [[PhantomJSDriver: phantomjs on OS X 10.11 (0ce7b030-3d74-11e6-897d-cbd676d907c0)] -> css selector: .modal-footer .btn.btn-success]])\r\n14:05:37.256 INFO - Done: [click: 11 [[PhantomJSDriver: phantomjs on OS X 10.11 (0ce7b030-3d74-11e6-897d-cbd676d907c0)] -> css selector: .modal-footer .btn.btn-success]]\r\n14:05:37.266 INFO - Executing: [take screenshot])\r\n14:05:37.389 INFO - Done: [take screenshot]\r\n```"}}
{"actor":{"display_login":"bhuvnesh2703"}}