INNER CODE UNIT · Ruby

evaluate_on_new_document

rubycdp/ferrum · lib/ferrum/browser.rb:207

    def evaluate_on_new_document(expression)
      extensions << expression
    end

    #
    # Closes browser tabs opened by the `Browser` instance.
    #
    # @example
    #   # connect to a long-running Chrome process
    #   browser = Ferrum::Browser.new(url: 'http://localhost:9222')
    #
    #   browser.go_to("https://github.com/")
    #
    #   # clean up, lest the tab stays there hanging forever
    #   browser.reset
    #
    #   browser.quit
    #

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…