Module: PageMagic::SessionMethods
- Extended by:
- Forwardable
- Included in:
- Element, InstanceMethods
- Defined in:
- lib/page_magic/session_methods.rb
Overview
module SessionMethods - contains methods for interacting with the Session
Instance Method Summary collapse
-
#execute_script(script) ⇒ Object
execute javascript on the browser.
-
#page ⇒ Object
returns the currently active page object.
-
#path ⇒ Object
returns the current path.
-
#url ⇒ Object
returns the current url.
Instance Method Details
#execute_script(script) ⇒ Object
execute javascript on the browser
13 |
# File 'lib/page_magic/session_methods.rb', line 13 def_delegator :session, :execute_script |
#page ⇒ Object
returns the currently active page object
18 |
# File 'lib/page_magic/session_methods.rb', line 18 def_delegator :session, :current_page, :page |
#path ⇒ Object
returns the current path
23 |
# File 'lib/page_magic/session_methods.rb', line 23 def_delegator :session, :current_path, :path |
#url ⇒ Object
returns the current url
28 |
# File 'lib/page_magic/session_methods.rb', line 28 def_delegator :session, :current_url, :url |