Class: LessonImportExport

Inherits:
LessonsBase show all
Defined in:
lib/sambal-cle/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, button, damballa, frame_element, link

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.



176
177
178
179
180
# File 'lib/sambal-cle/page_objects/lessons.rb', line 176

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