{"action":"closed","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/2273","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/2273/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/2273/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/2273/events","html_url":"https://github.com/Codeception/Codeception/issues/2273","id":100648934,"number":2273,"title":"WebDriver not triggering JS events","user":{"login":"montogeek","id":1002461,"avatar_url":"https://avatars.githubusercontent.com/u/1002461?v=3","gravatar_id":"","url":"https://api.github.com/users/montogeek","html_url":"https://github.com/montogeek","followers_url":"https://api.github.com/users/montogeek/followers","following_url":"https://api.github.com/users/montogeek/following{/other_user}","gists_url":"https://api.github.com/users/montogeek/gists{/gist_id}","starred_url":"https://api.github.com/users/montogeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montogeek/subscriptions","organizations_url":"https://api.github.com/users/montogeek/orgs","repos_url":"https://api.github.com/users/montogeek/repos","events_url":"https://api.github.com/users/montogeek/events{/privacy}","received_events_url":"https://api.github.com/users/montogeek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-12T22:29:12Z","updated_at":"2015-08-13T22:13:54Z","closed_at":"2015-08-13T22:13:54Z","body":"Hi!\r\nI am writing a Acceptance test using the WebDriver, in one step I am clicking the submit button, which should trigger the following JS event but it doesn't.\r\n\r\n```javascript\r\n(function() {\r\n    var $horario = $('#horario');\r\n    var $inputHorario = $('input[name=\"horario_json\"]');\r\n    var $registro = $('#registro');\r\n    var selected = [];\r\n\r\n    $horario.selectable({\r\n        filter: '.selectable'\r\n    });\r\n\r\n    $registro.on('submit', function() {\r\n        $('.ui-selected', $horario).each(function(index, elemento) {\r\n            selected.push(elemento.dataset.dia + '|' + elemento.dataset.hora);\r\n        });\r\n        if(selected.length >= 1) {\r\n           // Attach the JSON representation to the hidden input.\r\n            $inputHorario.val(JSON.stringify(selected));\r\n        }\r\n    });\r\n})();\r\n```\r\n\r\nThanks!"}}