Class: Profile2Connections
- Inherits:
-
Profile2Base
- Object
- PageFactory
- BasePage
- Profile2Base
- Profile2Connections
- Defined in:
- lib/sambal-cle/page_objects/profile2.rb
Instance Method Summary collapse
- #confirm_request(name) ⇒ Object
-
#connections ⇒ Object
Returns an array containing the names of the connected users.
Methods inherited from Profile2Base
Methods inherited from BasePage
basic_page_elements, button, damballa, frame_element, link
Instance Method Details
#confirm_request(name) ⇒ Object
191 192 193 194 195 196 |
# File 'lib/sambal-cle/page_objects/profile2.rb', line 191 def confirm_request(name) frm.div(:class=>"connection", :text=>name).link(:title=>"Confirm connection request").click frm.div(:class=>"modalWindowButtons").wait_until_present frm.div(:class=>"modalWindowButtons").(:value=>"Confirm connection request").click frm.div(:class=>"modalWindowButtons").wait_while_present end |
#connections ⇒ Object
Returns an array containing the names of the connected users.
199 200 201 202 203 204 205 206 207 |
# File 'lib/sambal-cle/page_objects/profile2.rb', line 199 def connections results = [] frm.div(:class=>"portletBody").spans.each do |span| if span.class_name == "connection-info-name" results << span.text end end return results end |