Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rb> envjs = Johnson::Runtime.new
- => #<Johnson::TraceMonkey::Runtime:0x1f2442c>
- rb> envjs.extend Envjs::Runtime
- => #<Johnson::TraceMonkey::Runtime:0x1f2442c>
- rb> window = envjs.evaluate("window")
- => [object Window 0]
- rb> puts window.location.to_s
- about:blank
- => nil
- rb> puts window.document.innerHTML
- <html><head><title></title></head><body></body></html>
- => nil
Add Comment
Please, Sign In to add comment