{"action":"created","issue":{"url":"https://api.github.com/repos/shoreditch-ops/artillery/issues/573","repository_url":"https://api.github.com/repos/shoreditch-ops/artillery","labels_url":"https://api.github.com/repos/shoreditch-ops/artillery/issues/573/labels{/name}","comments_url":"https://api.github.com/repos/shoreditch-ops/artillery/issues/573/comments","events_url":"https://api.github.com/repos/shoreditch-ops/artillery/issues/573/events","html_url":"https://github.com/shoreditch-ops/artillery/issues/573","id":382599015,"node_id":"MDU6SXNzdWUzODI1OTkwMTU=","number":573,"title":"Cheerio pick a random node matching the selector","user":{"login":"matthisk","id":602837,"node_id":"MDQ6VXNlcjYwMjgzNw==","avatar_url":"https://avatars0.githubusercontent.com/u/602837?v=4","gravatar_id":"","url":"https://api.github.com/users/matthisk","html_url":"https://github.com/matthisk","followers_url":"https://api.github.com/users/matthisk/followers","following_url":"https://api.github.com/users/matthisk/following{/other_user}","gists_url":"https://api.github.com/users/matthisk/gists{/gist_id}","starred_url":"https://api.github.com/users/matthisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthisk/subscriptions","organizations_url":"https://api.github.com/users/matthisk/orgs","repos_url":"https://api.github.com/users/matthisk/repos","events_url":"https://api.github.com/users/matthisk/events{/privacy}","received_events_url":"https://api.github.com/users/matthisk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-20T10:34:58Z","updated_at":"2018-11-20T11:09:14Z","closed_at":null,"author_association":"NONE","body":"I would like the Cheerio selector to pick a random node matching my selector, is this possible? The docs do not seem to mention this type of behavior. But say I have a page with 5 links, each link element's class name starts with `hello` the selector `a[class^=hello]` would select all 5 nodes, but Artillery will always pick the `href` attribute of the first node. I want each virtual user to pick the href attribute from a random node matching the selector."},"comment":{"url":"https://api.github.com/repos/shoreditch-ops/artillery/issues/comments/440235785","html_url":"https://github.com/shoreditch-ops/artillery/issues/573#issuecomment-440235785","issue_url":"https://api.github.com/repos/shoreditch-ops/artillery/issues/573","id":440235785,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDIzNTc4NQ==","user":{"login":"hassy","id":1490,"node_id":"MDQ6VXNlcjE0OTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1490?v=4","gravatar_id":"","url":"https://api.github.com/users/hassy","html_url":"https://github.com/hassy","followers_url":"https://api.github.com/users/hassy/followers","following_url":"https://api.github.com/users/hassy/following{/other_user}","gists_url":"https://api.github.com/users/hassy/gists{/gist_id}","starred_url":"https://api.github.com/users/hassy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hassy/subscriptions","organizations_url":"https://api.github.com/users/hassy/orgs","repos_url":"https://api.github.com/users/hassy/repos","events_url":"https://api.github.com/users/hassy/events{/privacy}","received_events_url":"https://api.github.com/users/hassy/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T11:09:14Z","updated_at":"2018-11-20T11:09:14Z","author_association":"CONTRIBUTOR","body":"@matthisk thanks for opening the issue! The functionality is there already, but it wasn't documented. Deploying an update to docs right now."}}
{"actor":{"display_login":"hassy"}}