Class: Prickle::Capybara::XPath::Expression
- Inherits:
-
Object
- Object
- Prickle::Capybara::XPath::Expression
show all
- Defined in:
- lib/prickle/capybara/xpath/expression.rb
Constant Summary
collapse
- CONTAINS =
".like"
- TEXT_IDENTIFIER =
"text()"
- SEPARATOR =
" and "
Instance Method Summary
collapse
Constructor Details
#initialize(identifier, value) ⇒ Expression
10
11
12
13
|
# File 'lib/prickle/capybara/xpath/expression.rb', line 10
def initialize identifier, value
@identifier = identifier
@value = value
end
|
Instance Method Details
#to_s ⇒ Object
15
16
17
|
# File 'lib/prickle/capybara/xpath/expression.rb', line 15
def to_s
find_exact_match? ? MatchesValue.new(@identifier, @value).to_s : ContainsValue.new(@identifier, @value).to_s
end
|