Class: Profile2View

Inherits:
Profile2Base show all
Defined in:
lib/sambal-cle/page_objects/profile2.rb

Instance Method Summary collapse

Methods inherited from Profile2Base

profile2_elements

Methods inherited from BasePage

basic_page_elements, button, damballa, frame_element, link

Instance Method Details

#basic_informationObject



218
219
220
221
222
223
224
225
226
227
# File 'lib/sambal-cle/page_objects/profile2.rb', line 218

def basic_information
  hash = {}
  begin
    frm.div(:class=>"mainSection", :text=>/Basic Information/).table(:class=>"profileContent").rows.each do |row|
      hash.store(row[0].text, row[1].text)
    end
  rescue Watir::Exception::UnknownObjectException
  end
  return hash
end

#contact_informationObject



230
231
232
233
234
235
236
237
238
239
# File 'lib/sambal-cle/page_objects/profile2.rb', line 230

def contact_information
  hash = {}
  begin
    frm.div(:class=>"mainSection", :text=>/Contact Information/).table(:class=>"profileContent").rows.each do |row|
      hash.store(row[0].text, row[1].text)
    end
  rescue Watir::Exception::UnknownObjectException
  end
  return hash
end

#personal_informationObject



266
267
268
269
270
271
272
273
274
275
# File 'lib/sambal-cle/page_objects/profile2.rb', line 266

def personal_information
  hash = {}
  begin
    frm.div(:class=>"mainSection", :text=>/Personal Information/).table(:class=>"profileContent").rows.each do |row|
      hash.store(row[0].text, row[1].text)
    end
  rescue Watir::Exception::UnknownObjectException
  end
  return hash
end

#staff_informationObject



242
243
244
245
246
247
248
249
250
251
# File 'lib/sambal-cle/page_objects/profile2.rb', line 242

def staff_information
  hash = {}
  begin
    frm.div(:class=>"mainSection", :text=>/Staff Information/).table(:class=>"profileContent").rows.each do |row|
      hash.store(row[0].text, row[1].text)
    end
  rescue Watir::Exception::UnknownObjectException
  end
  return hash
end

#student_informationObject



254
255
256
257
258
259
260
261
262
263
# File 'lib/sambal-cle/page_objects/profile2.rb', line 254

def student_information
  hash = {}
  begin
    frm.div(:class=>"mainSection", :text=>/Student Information/).table(:class=>"profileContent").rows.each do |row|
      hash.store(row[0].text, row[1].text)
    end
  rescue Watir::Exception::UnknownObjectException
  end
  return hash
end