Module: WebkitRemote::Client::Page
- Included in:
- WebkitRemote::Client
- Defined in:
- lib/webkit_remote/client/page.rb
Overview
API for the Page domain.
Instance Attribute Summary collapse
-
#page_events ⇒ Boolean
True if the debugger generates Page.* events.
Instance Method Summary collapse
- #initialize_page ⇒ Object
-
#navigate_to(url) ⇒ WebkitRemote::Client
Loads a new URL into the tab under debugging.
-
#refresh(opts = {}) ⇒ WebkitRemote::Client
Reloads.
Instance Attribute Details
#page_events ⇒ Boolean
Returns true if the debugger generates Page.* events.
46 47 48 |
# File 'lib/webkit_remote/client/page.rb', line 46 def page_events @page_events end |
Instance Method Details
#initialize_page ⇒ Object
49 50 51 |
# File 'lib/webkit_remote/client/page.rb', line 49 def initialize_page @page_events = false end |
#navigate_to(url) ⇒ WebkitRemote::Client
Loads a new URL into the tab under debugging.
11 12 13 14 |
# File 'lib/webkit_remote/client/page.rb', line 11 def navigate_to(url) @rpc.call 'Page.navigate', url: url self end |
#refresh(opts = {}) ⇒ WebkitRemote::Client
Reloads
24 25 26 27 28 29 30 |
# File 'lib/webkit_remote/client/page.rb', line 24 def refresh(opts = {}) = {} [:ignoreCache] = true if opts[:skip_cache] [:scriptToEvaluateOnLoad] = opts[:onload] if opts[:onload] @rpc.call 'Page.refresh', self end |