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_scriptObject

execute javascript on the browser

Parameters:

  • script (String)

    the script to be executed

Returns:



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

def_delegator :session, :execute_script

#pageObject

returns the currently active page object



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

def_delegator :session, :current_page, :page

#pathObject

returns the current path



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

def_delegator :session, :current_path, :path

#urlObject

returns the current url



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

def_delegator :session, :current_url, :url