Class: Symbiont::WebObjects::Link
- Defined in:
- lib/symbiont/web_objects/link.rb
Instance Attribute Summary
Attributes inherited from WebObject
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(web_object) ⇒ Link
constructor
A new instance of Link.
Methods inherited from WebObject
#==, #attribute, #clear, #click, #disabled?, #double_click, #enabled?, #exists?, #fire_event, #flash, #focus, #hover, #html, #id, #inspect, #parent, provide_locator_for, #scroll_into_view, #send_keys, #style, #tag_name, #text, #value, #visible?, #wait_until, #when_actionable, #when_not_actionable, #when_not_visible, #when_visible
Constructor Details
#initialize(web_object) ⇒ Link
Returns a new instance of Link.
6 7 8 |
# File 'lib/symbiont/web_objects/link.rb', line 6 def initialize(web_object) @web_object = web_object end |
Class Method Details
.selector_mapping ⇒ Object
14 15 16 |
# File 'lib/symbiont/web_objects/link.rb', line 14 def self.selector_mapping super.merge({:link => :text, :link_text => :text}) end |
.usable_selectors ⇒ Object
10 11 12 |
# File 'lib/symbiont/web_objects/link.rb', line 10 def self.usable_selectors super + [:href, :text, :title, :css] end |