Class: CapybaraPageObject::Head
- Inherits:
-
Node
- Object
- Capybara::Node::Element
- Node
- CapybaraPageObject::Head
show all
- Defined in:
- lib/element/head.rb
Instance Attribute Summary
Attributes inherited from Node
#source
Instance Method Summary
collapse
Methods inherited from Node
#classes, from_string, #initialize
Methods included from HTML5Data
#data
#forms, #key, #tables, #value
Methods included from Delegators
#all, #find, #text
Instance Method Details
7
8
9
|
# File 'lib/element/head.rb', line 7
def meta_description
find('meta[@name="description"]')['content']
end
|
11
12
13
|
# File 'lib/element/head.rb', line 11
def meta_keywords
find('meta[@name="keywords"]')['content'].split(',').collect(&:strip)
end
|
#title ⇒ Object
3
4
5
|
# File 'lib/element/head.rb', line 3
def title
find('title').text
end
|