Class: Browser::Window

Inherits:
Object show all
Includes:
Native
Defined in:
lib/wedge/plugins/history.rb,
lib/wedge/plugins/location.rb

Overview

Window instances are Native objects used to wrap native window instances.

Generally, you will want to use the top level Window instance, which wraps window from the main page.

Instance Attribute Summary collapse

Instance Attribute Details

#historyHistory (readonly)

Returns the history for this window.

Returns:

  • (History)

    the history for this window



22
23
24
# File 'lib/wedge/plugins/history.rb', line 22

def history
  History.new(`#@native.history`) if `#@native.history`
end

#locationLocation (readonly)

Returns the location for the window.

Returns:

  • (Location)

    the location for the window



74
75
76
# File 'lib/wedge/plugins/location.rb', line 74

def location
  Location.new(`#@native.location`) if `#@native.location`
end