{"action":"created","issue":{"url":"https://api.github.com/repos/geb/geb/issues/98","labels_url":"https://api.github.com/repos/geb/geb/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/geb/geb/issues/98/comments","events_url":"https://api.github.com/repos/geb/geb/issues/98/events","html_url":"https://github.com/geb/geb/pull/98","id":65651738,"number":98,"title":"When an option cannot be selected, include the available values in the exception message","user":{"login":"jochenberger","id":370733,"avatar_url":"https://avatars.githubusercontent.com/u/370733?v=3","gravatar_id":"","url":"https://api.github.com/users/jochenberger","html_url":"https://github.com/jochenberger","followers_url":"https://api.github.com/users/jochenberger/followers","following_url":"https://api.github.com/users/jochenberger/following{/other_user}","gists_url":"https://api.github.com/users/jochenberger/gists{/gist_id}","starred_url":"https://api.github.com/users/jochenberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jochenberger/subscriptions","organizations_url":"https://api.github.com/users/jochenberger/orgs","repos_url":"https://api.github.com/users/jochenberger/repos","events_url":"https://api.github.com/users/jochenberger/events{/privacy}","received_events_url":"https://api.github.com/users/jochenberger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-01T10:15:34Z","updated_at":"2015-04-01T10:49:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/geb/geb/pulls/98","html_url":"https://github.com/geb/geb/pull/98","diff_url":"https://github.com/geb/geb/pull/98.diff","patch_url":"https://github.com/geb/geb/pull/98.patch"},"body":"Currently, if an option cannot be selected from a `select` element, you get a trace like\r\n```\r\njava.lang.IllegalArgumentException: couldn't select option with text or value: foo\r\n\tat geb.navigator.NonEmptyNavigator.setSelectValue(NonEmptyNavigator.groovy:738)\r\n\tat geb.navigator.NonEmptyNavigator.setInputValue(NonEmptyNavigator.groovy:690)\r\n\tat geb.navigator.NonEmptyNavigator.setInputValues_closure42(NonEmptyNavigator.groovy:684)\r\n\tat groovy.lang.Closure.call(Closure.java:423)\r\n\tat groovy.lang.Closure.call(Closure.java:439)\r\n\tat geb.navigator.NonEmptyNavigator.setInputValues(NonEmptyNavigator.groovy:683)\r\n\tat geb.navigator.NonEmptyNavigator.value(NonEmptyNavigator.groovy:441)\r\n\tat geb.content.TemplateDerivedPageContent.value(TemplateDerivedPageContent.groovy:27)\r\n```\r\nIt would help if the select's available option values were included in the error message."},"comment":{"url":"https://api.github.com/repos/geb/geb/issues/comments/88437481","html_url":"https://github.com/geb/geb/pull/98#issuecomment-88437481","issue_url":"https://api.github.com/repos/geb/geb/issues/98","id":88437481,"user":{"login":"erdi","id":205451,"avatar_url":"https://avatars.githubusercontent.com/u/205451?v=3","gravatar_id":"","url":"https://api.github.com/users/erdi","html_url":"https://github.com/erdi","followers_url":"https://api.github.com/users/erdi/followers","following_url":"https://api.github.com/users/erdi/following{/other_user}","gists_url":"https://api.github.com/users/erdi/gists{/gist_id}","starred_url":"https://api.github.com/users/erdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erdi/subscriptions","organizations_url":"https://api.github.com/users/erdi/orgs","repos_url":"https://api.github.com/users/erdi/repos","events_url":"https://api.github.com/users/erdi/events{/privacy}","received_events_url":"https://api.github.com/users/erdi/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T10:49:42Z","updated_at":"2015-04-01T10:49:42Z","body":"Can you please also include a test for this change, @jochenberger? It would go into `SelectControlSpec`."}}