Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var page = require('webpage').create(),
- system = require('system');
- if (system.args.length === 1) {
- console.log('Usage: myscript.js <some URL>');
- phantom.exit();
- }
- url = system.args[1];
- page.open(url, function(status) {
- if(status !== 'success') {
- phantom.exit(1);
- } else {
- page.evaluate("scoreUI.click_change_Mradiotype(2)");
- var that_s_it = page.evaluate(function() {
- return document.body.parentNode.outerHTML;
- });
- console.log(that_s_it);
- phantom.exit();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement