{"action":"created","issue":{"url":"https://api.github.com/repos/angular/protractor/issues/2879","labels_url":"https://api.github.com/repos/angular/protractor/issues/2879/labels{/name}","comments_url":"https://api.github.com/repos/angular/protractor/issues/2879/comments","events_url":"https://api.github.com/repos/angular/protractor/issues/2879/events","html_url":"https://github.com/angular/protractor/issues/2879","id":129362460,"number":2879,"title":"Calling \"click()\" or \"isDisplayed()\" on checkboxes fails","user":{"login":"jrharshath","id":85807,"avatar_url":"https://avatars.githubusercontent.com/u/85807?v=3","gravatar_id":"","url":"https://api.github.com/users/jrharshath","html_url":"https://github.com/jrharshath","followers_url":"https://api.github.com/users/jrharshath/followers","following_url":"https://api.github.com/users/jrharshath/following{/other_user}","gists_url":"https://api.github.com/users/jrharshath/gists{/gist_id}","starred_url":"https://api.github.com/users/jrharshath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrharshath/subscriptions","organizations_url":"https://api.github.com/users/jrharshath/orgs","repos_url":"https://api.github.com/users/jrharshath/repos","events_url":"https://api.github.com/users/jrharshath/events{/privacy}","received_events_url":"https://api.github.com/users/jrharshath/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-28T07:08:06Z","updated_at":"2016-01-28T07:18:20Z","closed_at":"2016-01-28T07:17:45Z","body":"I believe this is a bug. Sample code:\r\n```\r\nvar cb = element(by.css('#my-checkbox'));\r\ncb.click(); // fails \r\nexpect(cb.isDisplayed()).toBeTruthy(); // fails\r\n```\r\nThe checkbox in question is definitely visible, and clickable. The failure I get is this:\r\n```\r\nFailed: {\r\n    \"errorMessage\":\"Element is not currently visible and may not be manipulated\",\r\n    \"request\":{\r\n        \"headers\":{\r\n            \"Accept-Encoding\":\"gzip,deflate\",\r\n            \"Connection\":\"Keep-Alive\",\r\n            \"Content-Length\":\"27\",\r\n            \"Content-Type\":\"application/json; charset=utf-8\",\r\n            \"Host\":\"localhost:17943\",\r\n            \"User-Agent\":\"Apache-HttpClient/4.5.1 (Java/1.7.0_67)\"\r\n        },\r\n        \"httpVersion\":\"1.1\",\r\n        \"method\":\"POST\",\r\n        \"post\":\"{\\\"id\\\":\\\":wdc:1453964990277\\\"}\",\r\n        \"url\":\"/click\",\r\n        \"urlParsed\": {\r\n            \"anchor\":\"\",\r\n            \"query\":\"\",\r\n            \"file\":\"click\",\r\n            \"directory\":\"/\",\r\n            \"path\":\"/click\",\r\n            \"relative\":\"/click\",\r\n            \"port\":\"\",\r\n            \"host\":\"\",\r\n            \"password\":\"\",\r\n            \"user\":\"\",\r\n            \"userInfo\":\"\",\r\n            \"authority\":\"\",\r\n            \"protocol\":\"\",\r\n            \"source\":\"/click\",\r\n            \"queryKey\":{},\r\n            \"chunks\":[\"click\"]\r\n        },\r\n        \"urlOriginal\":\"/session/17a8bb30-c58e-11e5-a29c-01cdb8dc52de/element/%3Awdc%3A1453964990277/click\"\r\n    }\r\n}\r\n```\r\n\r\nFor anyone else affected by this, my workaround so far has been this:\r\n\r\n```\r\nvar cb = element(by.css('#my-checkbox'));\r\nbrowser.actions().mouseMove(cb).click().perform(); \r\nexpect(cb.isSelected()).toBeTruthy(); \r\n\r\n```\r\nNote that `click()` and `isDisplayed()` is working with other elements like `<a>`s and `<button>`s. I haven't tested the same test code with other browsers yet."},"comment":{"url":"https://api.github.com/repos/angular/protractor/issues/comments/176026090","html_url":"https://github.com/angular/protractor/issues/2879#issuecomment-176026090","issue_url":"https://api.github.com/repos/angular/protractor/issues/2879","id":176026090,"user":{"login":"jrharshath","id":85807,"avatar_url":"https://avatars.githubusercontent.com/u/85807?v=3","gravatar_id":"","url":"https://api.github.com/users/jrharshath","html_url":"https://github.com/jrharshath","followers_url":"https://api.github.com/users/jrharshath/followers","following_url":"https://api.github.com/users/jrharshath/following{/other_user}","gists_url":"https://api.github.com/users/jrharshath/gists{/gist_id}","starred_url":"https://api.github.com/users/jrharshath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrharshath/subscriptions","organizations_url":"https://api.github.com/users/jrharshath/orgs","repos_url":"https://api.github.com/users/jrharshath/repos","events_url":"https://api.github.com/users/jrharshath/events{/privacy}","received_events_url":"https://api.github.com/users/jrharshath/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T07:18:20Z","updated_at":"2016-01-28T07:18:20Z","body":"Just realized this is actually a phantomjs issue, not protractor. Created an issue with phantomjs.\r\n\r\nhttps://github.com/ariya/phantomjs/issues/13956"}}