Class: ImportStepThree

Inherits:
BasePage
  • Object
show all
Defined in:
lib/sambal-cle/page_objects/calendar.rb

Instance Method Summary collapse

Methods inherited from BasePage

basic_page_elements, button, damballa, frame_element, link

Instance Method Details

#eventsObject

Returns an array containing the list of Activity names on the page.



285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
# File 'lib/sambal-cle/page_objects/calendar.rb', line 285

def events
  list = []
  frm.table(:class=>/listHier lines/).rows.each do |row|
    if row.label(:for=>/eventSelected/).exist?
      list << row.label.text
    end
  end
  names = []
  list.uniq!
  list.each do | item |
    name = item[/(?<=\s).+(?=\s\s\()/]
    names << name
  end
  names
end