Class: Capybara::Queries::SelectorQuery
- Inherits:
-
Object
- Object
- Capybara::Queries::SelectorQuery
- Defined in:
- lib/true_automation/driver/capybara.rb
Instance Method Summary collapse
Instance Method Details
#description(only_applied = false) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/true_automation/driver/capybara.rb', line 6 def description(only_applied = false) desc = original_description matched_result = desc.match(/.*__taonly__(.+)__taonly__.*/) if selector = matched_result && matched_result[1] desc = "TrueAutomation element #{selector} on the page" end matched_result_ta = desc.match(/.*(__ta__.+__ta__).*/) if selector = matched_result_ta && matched_result_ta[1] desc = desc.gsub(selector, '') end desc end |
#original_description ⇒ Object
5 |
# File 'lib/true_automation/driver/capybara.rb', line 5 alias_method :original_description, :description |