Class: AgentSandbox::BrowserTools::Eval

Inherits:
Base
  • Object
show all
Defined in:
lib/agent_sandbox/browser_tools.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #run_ab

Constructor Details

This class inherits a constructor from AgentSandbox::BrowserTools::Base

Instance Method Details

#execute(js:) ⇒ Object



254
255
256
# File 'lib/agent_sandbox/browser_tools.rb', line 254

def execute(js:)
  run_ab(["eval", js, "--json"])
end