{"action":"created","issue":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/812","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/812/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/812/comments","events_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/812/events","html_url":"https://github.com/webdriverio/webdriverio/issues/812","id":109901802,"number":812,"title":"Having trouble with .element()","user":{"login":"whasting","id":14317858,"avatar_url":"https://avatars.githubusercontent.com/u/14317858?v=3","gravatar_id":"","url":"https://api.github.com/users/whasting","html_url":"https://github.com/whasting","followers_url":"https://api.github.com/users/whasting/followers","following_url":"https://api.github.com/users/whasting/following{/other_user}","gists_url":"https://api.github.com/users/whasting/gists{/gist_id}","starred_url":"https://api.github.com/users/whasting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whasting/subscriptions","organizations_url":"https://api.github.com/users/whasting/orgs","repos_url":"https://api.github.com/users/whasting/repos","events_url":"https://api.github.com/users/whasting/events{/privacy}","received_events_url":"https://api.github.com/users/whasting/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-05T22:47:43Z","updated_at":"2015-10-05T22:53:05Z","closed_at":null,"body":"Hello! I'm new to automation and I'm having trouble with the `.click()` method. I'm able to find elements via the `.elements` method, but when I use `.element`, I'll get an error such as:\r\n\r\n    Error: no such element: Unable to locate element: {\"method\":\"id\",\"selector\":\"email\"}\r\n\r\nJust wondering what I'm doing wrong! Here's the code that's failing:      \r\n\r\n    this.When(/^When I click the login button$/, function () {\r\n      client.waitForExist('body');\r\n      client.click('[data-action=loginTest]');\r\n    });\r\n\r\nAnd here's the element I need to find:\r\n\r\n    <button data-action=\"loginTest\" type=\"submit\" class=\"Button--Md--Primary Button--Login\">login</button>"},"comment":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/comments/145691508","html_url":"https://github.com/webdriverio/webdriverio/issues/812#issuecomment-145691508","issue_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/812","id":145691508,"user":{"login":"christian-bromann","id":731337,"avatar_url":"https://avatars.githubusercontent.com/u/731337?v=3","gravatar_id":"","url":"https://api.github.com/users/christian-bromann","html_url":"https://github.com/christian-bromann","followers_url":"https://api.github.com/users/christian-bromann/followers","following_url":"https://api.github.com/users/christian-bromann/following{/other_user}","gists_url":"https://api.github.com/users/christian-bromann/gists{/gist_id}","starred_url":"https://api.github.com/users/christian-bromann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christian-bromann/subscriptions","organizations_url":"https://api.github.com/users/christian-bromann/orgs","repos_url":"https://api.github.com/users/christian-bromann/repos","events_url":"https://api.github.com/users/christian-bromann/events{/privacy}","received_events_url":"https://api.github.com/users/christian-bromann/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T22:53:05Z","updated_at":"2015-10-05T22:53:05Z","body":"That error gets thrown somewhere else. It can't find `#email`"}}