Class: Profile2View
Instance Method Summary
collapse
profile2_elements
Methods inherited from BasePage
basic_page_elements, button, damballa, frame_element, link
Instance Method Details
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
|
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
|
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
|
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
|
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
|