{"action":"closed","issue":{"url":"https://api.github.com/repos/geb/issues-playground/issues/57","labels_url":"https://api.github.com/repos/geb/issues-playground/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/geb/issues-playground/issues/57/comments","events_url":"https://api.github.com/repos/geb/issues-playground/issues/57/events","html_url":"https://github.com/geb/issues-playground/issues/57","id":66382126,"number":57,"title":"Geb discards empty input value","user":{"login":"geb-bot","id":11801440,"avatar_url":"https://avatars.githubusercontent.com/u/11801440?v=3","gravatar_id":"","url":"https://api.github.com/users/geb-bot","html_url":"https://github.com/geb-bot","followers_url":"https://api.github.com/users/geb-bot/followers","following_url":"https://api.github.com/users/geb-bot/following{/other_user}","gists_url":"https://api.github.com/users/geb-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/geb-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geb-bot/subscriptions","organizations_url":"https://api.github.com/users/geb-bot/orgs","repos_url":"https://api.github.com/users/geb-bot/repos","events_url":"https://api.github.com/users/geb-bot/events{/privacy}","received_events_url":"https://api.github.com/users/geb-bot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geb/issues-playground/labels/Bug","name":"Bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/geb/issues-playground/milestones/4","html_url":"https://github.com/geb/issues-playground/milestones/0.6.0","labels_url":"https://api.github.com/repos/geb/issues-playground/milestones/4/labels","id":1053053,"number":4,"title":"0.6.0","description":null,"creator":{"login":"geb-bot","id":11801440,"avatar_url":"https://avatars.githubusercontent.com/u/11801440?v=3","gravatar_id":"","url":"https://api.github.com/users/geb-bot","html_url":"https://github.com/geb-bot","followers_url":"https://api.github.com/users/geb-bot/followers","following_url":"https://api.github.com/users/geb-bot/following{/other_user}","gists_url":"https://api.github.com/users/geb-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/geb-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geb-bot/subscriptions","organizations_url":"https://api.github.com/users/geb-bot/orgs","repos_url":"https://api.github.com/users/geb-bot/repos","events_url":"https://api.github.com/users/geb-bot/events{/privacy}","received_events_url":"https://api.github.com/users/geb-bot/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":31,"state":"open","created_at":"2015-04-04T22:50:54Z","updated_at":"2015-04-05T00:06:50Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-04-05T00:06:49Z","updated_at":"2015-04-05T00:06:50Z","closed_at":"2015-04-05T00:06:50Z","body":"Originally created on 2011-03-23 by James Cook.\n\nWhen validating using form access syntax, e.g.\r\n\r\n```\r\nexpect:\r\n$(\"form\").myInput == \"\"\r\n```\r\n\r\nIf a text element has an empty value then Geb will return null. Looking at the code this seems to be down to line 449 in NonEmptyNavigator where the value is not added to the list of results if it does not satisfy groovy truth (which an empty string doesn't)."}}