Skip to content

Instantly share code, notes, and snippets.

@yuki-yano
Created October 12, 2015 23:32
Show Gist options
  • Select an option

  • Save yuki-yano/af3e9bd48c0af3f0f57d to your computer and use it in GitHub Desktop.

Select an option

Save yuki-yano/af3e9bd48c0af3f0f57d to your computer and use it in GitHub Desktop.
var page = require('webpage').create();
page.open('http://esports-runner.com/guilty-gear-xrd/ggxrd_playable_2/', function(status) {
var vote;
setTimeout(function() {
page.evaluate(function() {
var bridget = document.querySelector('#PDI_answer41513088');
bridget.click();
vote = $("span:contains('Vote')")[0]
$(vote).trigger('click');
});
}, 500);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment