Class: LessonImportExport

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

Overview

The Import/Export page in Manage Lessons for a Site

Instance Method Summary collapse

Methods inherited from LessonsBase

menu_elements

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

#upload_IMS(file_name, file_path = "") ⇒ Object

Uploads the file specified - meaning that it enters the target file information, then clicks the import button.

The file path is an optional parameter.



198
199
200
201
202
# File 'lib/sakai-cle-test-api/page_objects/lessons.rb', line 198

def upload_IMS(file_name, file_path="")
  frm.file_field(:name, "impfile").set(file_path + file_name)
  frm.link(:id=>"importexportform:importModule").click
  frm.table(:id=>"AutoNumber1").div(:text=>"Processing...").wait_while_present
end