{"action":"created","issue":{"url":"https://api.github.com/repos/blackfireio/player/issues/28","repository_url":"https://api.github.com/repos/blackfireio/player","labels_url":"https://api.github.com/repos/blackfireio/player/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/blackfireio/player/issues/28/comments","events_url":"https://api.github.com/repos/blackfireio/player/issues/28/events","html_url":"https://github.com/blackfireio/player/issues/28","id":195670009,"number":28,"title":"Reusing extracted data from previous step","user":{"login":"umpirsky","id":208957,"avatar_url":"https://avatars0.githubusercontent.com/u/208957?v=3","gravatar_id":"","url":"https://api.github.com/users/umpirsky","html_url":"https://github.com/umpirsky","followers_url":"https://api.github.com/users/umpirsky/followers","following_url":"https://api.github.com/users/umpirsky/following{/other_user}","gists_url":"https://api.github.com/users/umpirsky/gists{/gist_id}","starred_url":"https://api.github.com/users/umpirsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umpirsky/subscriptions","organizations_url":"https://api.github.com/users/umpirsky/orgs","repos_url":"https://api.github.com/users/umpirsky/repos","events_url":"https://api.github.com/users/umpirsky/events{/privacy}","received_events_url":"https://api.github.com/users/umpirsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-14T22:58:16Z","updated_at":"2017-03-01T11:38:02Z","closed_at":null,"body":"Scenario like this works as expected:\r\n\r\n```yaml\r\nscenario:\r\n    steps:\r\n        - visit: url('http://example.com')\r\n          extract:\r\n             hrefs: css(\"a\").extract(\"href\")\r\n        - visit: url(hrefs[0])\r\n          extract:\r\n              title: css(\"title\")\r\n```\r\n\r\nWould be nice if it can iterate over results from previous step:\r\n\r\n```yaml\r\nscenario:\r\n    steps:\r\n        - visit: url('http://example.com')\r\n          extract:\r\n             hrefs: css(\"a\").extract(\"href\")\r\n        - visit: url(hrefs)\r\n          extract:\r\n              title: css(\"title\")\r\n```\r\n\r\nThis gives: `PHP Warning:  ltrim() expects parameter 1 to be string, array given in phar:///usr/local/bin/blackfire-player.phar/Player/Guzzle/RequestFactory.php on line 60`. Is there any workaround?"},"comment":{"url":"https://api.github.com/repos/blackfireio/player/issues/comments/283318173","html_url":"https://github.com/blackfireio/player/issues/28#issuecomment-283318173","issue_url":"https://api.github.com/repos/blackfireio/player/issues/28","id":283318173,"user":{"login":"umpirsky","id":208957,"avatar_url":"https://avatars0.githubusercontent.com/u/208957?v=3","gravatar_id":"","url":"https://api.github.com/users/umpirsky","html_url":"https://github.com/umpirsky","followers_url":"https://api.github.com/users/umpirsky/followers","following_url":"https://api.github.com/users/umpirsky/following{/other_user}","gists_url":"https://api.github.com/users/umpirsky/gists{/gist_id}","starred_url":"https://api.github.com/users/umpirsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umpirsky/subscriptions","organizations_url":"https://api.github.com/users/umpirsky/orgs","repos_url":"https://api.github.com/users/umpirsky/repos","events_url":"https://api.github.com/users/umpirsky/events{/privacy}","received_events_url":"https://api.github.com/users/umpirsky/received_events","type":"User","site_admin":false},"created_at":"2017-03-01T11:38:02Z","updated_at":"2017-03-01T11:38:02Z","body":"@Ph3nol Twitter answer from one of contributors:\r\n\r\n> IIRC unfortunately this is not supported yet. But we have worked on a new version of the player where it's supported."}}
{"actor":{"display_login":"umpirsky"}}