class Wallhack_WS_Demo_Page

Constants

DIRECT_URL

Attributes

phantom_browser[RW]

Public Class Methods

new(browser) click to toggle source
# File lib/page_objects/wallhack_ws_demo_page.rb, line 8
def initialize(browser)
  @phantom_browser = browser
end

Public Instance Methods

load_page(user_email) click to toggle source

Service methods

# File lib/page_objects/wallhack_ws_demo_page.rb, line 20
def load_page(user_email)
  @phantom_browser.goto(DIRECT_URL.sub('[EMAIL]', user_email).sub('+', '%2B'))
end
stop_all_lessons() click to toggle source
# File lib/page_objects/wallhack_ws_demo_page.rb, line 24
def stop_all_lessons
  stop_all_lessons_button.click
end
stop_all_lessons_button() click to toggle source

Web elements

# File lib/page_objects/wallhack_ws_demo_page.rb, line 14
def stop_all_lessons_button
  @phantom_browser.element(:id => 'finish-all-lessons')
end