Module: Profile2ViewMethods

Defined in:
lib/kuali-sakai-common-lib/profile2.rb

Instance Method Summary collapse

Instance Method Details

#basic_informationObject



293
294
295
296
297
298
299
300
301
302
303
# File 'lib/kuali-sakai-common-lib/profile2.rb', line 293

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

#connectionObject



288
289
290
# File 'lib/kuali-sakai-common-lib/profile2.rb', line 288

def connection
  frm.div(:class=>"leftPanel").span(:class=>/instruction icon/).text
end

#contact_informationObject



306
307
308
309
310
311
312
313
314
315
316
# File 'lib/kuali-sakai-common-lib/profile2.rb', line 306

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



345
346
347
348
349
350
351
352
353
354
355
# File 'lib/kuali-sakai-common-lib/profile2.rb', line 345

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



319
320
321
322
323
324
325
326
327
328
329
# File 'lib/kuali-sakai-common-lib/profile2.rb', line 319

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



332
333
334
335
336
337
338
339
340
341
342
# File 'lib/kuali-sakai-common-lib/profile2.rb', line 332

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