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, frame_element

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.



199
200
201
202
203
# File 'lib/sambal-cle/page_objects/lessons.rb', line 199

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