lib/pwn/plugins/transparent_browser.rb in pwn-0.4.385 vs lib/pwn/plugins/transparent_browser.rb in pwn-0.4.386

- old
+ new

@@ -344,17 +344,18 @@ * Debugging DOM and Sending JavaScript to Console devtools.send_cmd('Runtime.enable') devtools.send_cmd('Console.enable') devtools.send_cmd('DOM.enable') devtools.send_cmd('Page.enable') - devtools.send_cmd('Network.enable') devtools.send_cmd('Log.enable') devtools.send_cmd('Debugger.enable') devtools.send_cmd('Debugger.pause') step = 1 next_step = 60 loop do + devtools.send_cmd('Console.clearMessages') + devtools.send_cmd('Log.clear') console_events = [] b.driver.on_log_event(:console) { |event| console_events.push(event) } devtools.send_cmd('Debugger.stepInto') puts \"Step: \#{step}\" @@ -386,10 +387,9 @@ step += 1 end devtools.send_cmd('Debugger.disable') devtools.send_cmd('Log.disable') - devtools.send_cmd('Network.disable') devtools.send_cmd('Page.disable') devtools.send_cmd('DOM.disable') devtools.send_cmd('Console.disable') devtools.send_cmd('Runtime.disable') * End of DevTools Examples