Module: Profile2ViewMethods
- Defined in:
- lib/kuali-sakai-common-lib/profile2.rb
Instance Method Summary collapse
- #basic_information ⇒ Object
- #connection ⇒ Object
- #contact_information ⇒ Object
- #personal_information ⇒ Object
- #staff_information ⇒ Object
- #student_information ⇒ Object
Instance Method Details
#basic_information ⇒ Object
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 |
#connection ⇒ Object
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_information ⇒ Object
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_information ⇒ Object
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_information ⇒ Object
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_information ⇒ Object
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 |