class WebkitRemote::Browser::Tab
References a tab open in a Webkit process with a remote debugging server.
Attributes
browser[R]
@return [Webkit::Remote] connection to the browser that this tab belongs to
debug_url[R]
@return [String] URL of the tab's remote debugging endpoint
title[R]
@return [String, nil] title of the Web page open in the browser tab
url[R]
@return [String, nil] URL of the Web page open in the browser tab
Public Class Methods
new(browser, debug_url, metadata)
click to toggle source
Creates a tab reference.
@param [WebkitRemote::Browser] browser the master debugging connection to
the Webkit process
@param [String] debug_url
URL of the tab's remote debugging endpoint @param [Hash] metadata non-essential information about the tab @option metadata [String, nil] title title of the page open in the browser
tab
@option metadata [String, nil] url URL of the page open in the browser tab
# File lib/webkit_remote/browser.rb, line 144 def initialize(browser, debug_url, metadata) @browser = browser @debug_url = debug_url @title = metadata[:title] @url = metadata[:url] end