{"action":"created","issue":{"url":"https://api.github.com/repos/san650/ember-cli-page-object/issues/105","labels_url":"https://api.github.com/repos/san650/ember-cli-page-object/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/san650/ember-cli-page-object/issues/105/comments","events_url":"https://api.github.com/repos/san650/ember-cli-page-object/issues/105/events","html_url":"https://github.com/san650/ember-cli-page-object/issues/105","id":128559751,"number":105,"title":"API Suggestion: Multi-Attribute fillables","user":{"login":"richmolj","id":55264,"avatar_url":"https://avatars.githubusercontent.com/u/55264?v=3","gravatar_id":"","url":"https://api.github.com/users/richmolj","html_url":"https://github.com/richmolj","followers_url":"https://api.github.com/users/richmolj/followers","following_url":"https://api.github.com/users/richmolj/following{/other_user}","gists_url":"https://api.github.com/users/richmolj/gists{/gist_id}","starred_url":"https://api.github.com/users/richmolj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richmolj/subscriptions","organizations_url":"https://api.github.com/users/richmolj/orgs","repos_url":"https://api.github.com/users/richmolj/repos","events_url":"https://api.github.com/users/richmolj/events{/privacy}","received_events_url":"https://api.github.com/users/richmolj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/san650/ember-cli-page-object/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/san650/ember-cli-page-object/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-25T15:20:43Z","updated_at":"2016-01-28T16:59:35Z","closed_at":null,"body":"Just ran into this and it's a small issue but since you are working towards v1.0 figured I'd drop a line.\r\n\r\nI have a search form where I'd like to enter values into the inputs, but also assert on those values (like loading the form from server data and verifying defaults are filled in). Currently this requires two attributes:\r\n\r\n```es6\r\nexport default PageObject.create({\r\n  nameValue: value('#search_name'), // for loading from server and asserting the value\r\n  name: fillable('#search_name'), // for querying\r\n});\r\n```\r\n\r\nIt would be nice to have just one 'name' field I could re-use. Maybe something like\r\n\r\n```es6\r\npage.name('Homer'); // fills in\r\npage.name(); // returns 'Homer';\r\n```\r\n\r\nI could see this applying to things like clickables as well, where you want to assert on the button label as well as click the button."},"comment":{"url":"https://api.github.com/repos/san650/ember-cli-page-object/issues/comments/176282560","html_url":"https://github.com/san650/ember-cli-page-object/issues/105#issuecomment-176282560","issue_url":"https://api.github.com/repos/san650/ember-cli-page-object/issues/105","id":176282560,"user":{"login":"richmolj","id":55264,"avatar_url":"https://avatars.githubusercontent.com/u/55264?v=3","gravatar_id":"","url":"https://api.github.com/users/richmolj","html_url":"https://github.com/richmolj","followers_url":"https://api.github.com/users/richmolj/followers","following_url":"https://api.github.com/users/richmolj/following{/other_user}","gists_url":"https://api.github.com/users/richmolj/gists{/gist_id}","starred_url":"https://api.github.com/users/richmolj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richmolj/subscriptions","organizations_url":"https://api.github.com/users/richmolj/orgs","repos_url":"https://api.github.com/users/richmolj/repos","events_url":"https://api.github.com/users/richmolj/events{/privacy}","received_events_url":"https://api.github.com/users/richmolj/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T16:59:35Z","updated_at":"2016-01-28T16:59:35Z","body":"Yep, I'm actually heading down that direction now. It would be nice to get this built-in to the add-on, though, so the API is consistent. For instance avoiding some projects doing `page.name().val()` and others doing `page.name().getValue()`, etc."}}