Class: EditTriggers

Inherits:
BasePage show all
Defined in:
lib/sakai-cle-test-api/page_objects/job_scheduler.rb

Overview

The page for Editing Triggers

Instance Method Summary collapse

Methods inherited from BasePage

basic_page_elements, frame_element

Methods inherited from PageMaker

element, expected_element, expected_title, #initialize, #method_missing, page_url

Constructor Details

This class inherits a constructor from PageMaker

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PageMaker

Instance Method Details

#new_triggerObject



80
81
82
83
# File 'lib/sakai-cle-test-api/page_objects/job_scheduler.rb', line 80

def new_trigger
  frm.link(:text=>"New Trigger").click
  CreateTrigger.new(@browser)
end

#return_to_jobsObject



75
76
77
78
# File 'lib/sakai-cle-test-api/page_objects/job_scheduler.rb', line 75

def return_to_jobs
  frm.link(:text=>"Return_to_Jobs").click
  JobList.new(@browser)
end

#run_job_nowObject

Clicks the “Run Job Now” link, then instantiates the RunJobConfirmation Class.



70
71
72
73
# File 'lib/sakai-cle-test-api/page_objects/job_scheduler.rb', line 70

def run_job_now
  frm.div(:class=>"portletBody").link(:text=>"Run Job Now").click
  RunJobConfirmation.new(@browser)
end