{"action":"opened","issue":{"url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/975","repository_url":"https://api.github.com/repos/serenity-bdd/serenity-core","labels_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/975/labels{/name}","comments_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/975/comments","events_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/975/events","html_url":"https://github.com/serenity-bdd/serenity-core/issues/975","id":266129564,"number":975,"title":"Unable to click on a link having link javascript:void(0)","user":{"login":"khalistan","id":16721438,"avatar_url":"https://avatars1.githubusercontent.com/u/16721438?v=4","gravatar_id":"","url":"https://api.github.com/users/khalistan","html_url":"https://github.com/khalistan","followers_url":"https://api.github.com/users/khalistan/followers","following_url":"https://api.github.com/users/khalistan/following{/other_user}","gists_url":"https://api.github.com/users/khalistan/gists{/gist_id}","starred_url":"https://api.github.com/users/khalistan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khalistan/subscriptions","organizations_url":"https://api.github.com/users/khalistan/orgs","repos_url":"https://api.github.com/users/khalistan/repos","events_url":"https://api.github.com/users/khalistan/events{/privacy}","received_events_url":"https://api.github.com/users/khalistan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-17T13:42:38Z","updated_at":"2017-10-17T13:42:38Z","closed_at":null,"author_association":"NONE","body":"Hallo i am trying to click on a link which have href=\"javascript:void(0)\" but somehow click function is not working. I tried to click with native javascript click` ((JavascriptExecutor) driver).executeScript(\"arguments[0].click()\", element);`\r\nI have also tried to do click with event \r\n```\r\nString onClickScript = \"if(document.createEvent){var evObj = document.createEvent('MouseEvents');evObj.initEvent('click',true, false); arguments[0].dispatchEvent(evObj);} else if(document.createEventObject){ arguments[0].fireEvent('onclick');}\";\r\n\t\t((JavascriptExecutor) driver).executeScript(onClickScript, element);\r\n```\r\nBut still can't click on element. As normal user (human), I can click on link but with ```\r\nWebElementFacade element = $(\"css: selector\");\r\nelement.click();\r\n```\r\nElement is in view so really don't know what to do.\r\n----------Thanks"}}
{"actor":{"display_login":"khalistan"}}