function parse_intent(live_line) {
live_line = live_line.trim(); if (live_line == '') return '';
switch (get_intent(live_line)) {
case 'url': return url_intent(live_line); break;
case 'tap': return tap_intent(live_line); break;
case 'hover': return hover_intent(live_line); break;
case 'type': return type_intent(live_line); break;
case 'select': return select_intent(live_line); break;
case 'read': return read_intent(live_line); break;
case 'show': return show_intent(live_line); break;
case 'down': return down_intent(live_line); break;
case 'receive': return receive_intent(live_line); break;
case 'echo': return echo_intent(live_line); break;
case 'save': return save_intent(live_line); break;
case 'dump': return dump_intent(live_line); break;
case 'snap': return snap_intent(live_line); break;
case 'wait': return wait_intent(live_line); break;
case 'live': return live_intent(live_line); break;
case 'check': return check_intent(live_line); break;
case 'test': return test_intent(live_line); break;
case 'frame': return frame_intent(live_line); break;
case 'popup': return popup_intent(live_line); break;
case 'api': return api_intent(live_line); break;
case 'dom': return dom_intent(live_line); break;
case 'js': return js_intent(live_line); break;
case 'code': return code_intent(live_line); break;
default: return "this.echo('ERROR - cannot understand step " + live_line.replace(/'/g,'\\\'') + "')";}}
// for live mode interpretation of step into casperjs code
for live mode interpretation of step into casperjs code
for live mode interpretation of step into casperjs code
function parse_intent(live_line) {
live_line = live_line.trim(); if (live_line == '') return '';
switch (get_intent(live_line)) {
case 'url': return url_intent(live_line); break;
case 'tap': return tap_intent(live_line); break;
case 'hover': return hover_intent(live_line); break;
case 'type': return type_intent(live_line); break;
case 'select': return select_intent(live_line); break;
case 'read': return read_intent(live_line); break;
case 'show': return show_intent(live_line); break;
case 'down': return down_intent(live_line); break;
case 'receive': return receive_intent(live_line); break;
case 'echo': return echo_intent(live_line); break;
case 'save': return save_intent(live_line); break;
case 'dump': return dump_intent(live_line); break;
case 'snap': return snap_intent(live_line); break;
case 'wait': return wait_intent(live_line); break;
case 'live': return live_intent(live_line); break;
case 'check': return check_intent(live_line); break;
case 'test': return test_intent(live_line); break;
case 'frame': return frame_intent(live_line); break;
case 'popup': return popup_intent(live_line); break;
case 'api': return api_intent(live_line); break;
case 'dom': return dom_intent(live_line); break;
case 'js': return js_intent(live_line); break;
case 'code': return code_intent(live_line); break;
default: return "this.echo('ERROR - cannot understand step " + live_line.replace(/'/g,'\\\'') + "')";}}
function parse_intent ( live_line ) { live_line = live_line . trim ( ) ; if ( live_line == '' ) return '' ; switch ( get_intent ( live_line ) ) { case 'url' : return url_intent ( live_line ) ; break ; case 'tap' : return tap_intent ( live_line ) ; break ; case 'hover' : return hover_intent ( live_line ) ; break ; case 'type' : return type_intent ( live_line ) ; break ; case 'select' : return select_intent ( live_line ) ; break ; case 'read' : return read_intent ( live_line ) ; break ; case 'show' : return show_intent ( live_line ) ; break ; case 'down' : return down_intent ( live_line ) ; break ; case 'receive' : return receive_intent ( live_line ) ; break ; case 'echo' : return echo_intent ( live_line ) ; break ; case 'save' : return save_intent ( live_line ) ; break ; case 'dump' : return dump_intent ( live_line ) ; break ; case 'snap' : return snap_intent ( live_line ) ; break ; case 'wait' : return wait_intent ( live_line ) ; break ; case 'live' : return live_intent ( live_line ) ; break ; case 'check' : return check_intent ( live_line ) ; break ; case 'test' : return test_intent ( live_line ) ; break ; case 'frame' : return frame_intent ( live_line ) ; break ; case 'popup' : return popup_intent ( live_line ) ; break ; case 'api' : return api_intent ( live_line ) ; break ; case 'dom' : return dom_intent ( live_line ) ; break ; case 'js' : return js_intent ( live_line ) ; break ; case 'code' : return code_intent ( live_line ) ; break ; default : return "this.echo('ERROR - cannot understand step " + live_line . replace ( / ' / g , '\\\'' ) + "')" ; } }
for live mode interpretation of step into casperjs code
for live mode interpretation of step into casperjs code