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

Instance Method Details

#execute_script(script) ⇒ Object

execute javascript on the browser

Parameters:

  • script (String)

    the script to be executed

Returns:

  • (Object)

    object returned by the Session#execute_script



13
# File 'lib/page_magic/session_methods.rb', line 13

def_delegator :session, :execute_script

#pageObject

returns the currently active page object



18
# File 'lib/page_magic/session_methods.rb', line 18

def_delegator :session, :current_page, :page

#pathObject

returns the current path

See Also:

  • Session#current_path


23
# File 'lib/page_magic/session_methods.rb', line 23

def_delegator :session, :current_path, :path

#urlObject

returns the current url

See Also:

  • Session#current_url


28
# File 'lib/page_magic/session_methods.rb', line 28

def_delegator :session, :current_url, :url