class Capybara::Queries::SelectorQuery

Public Instance Methods

description(only_applied = false) click to toggle source
# 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 = "Element was not found on the page. Element '#{selector}' with such locator is not on this page and could not be detected by TrueAutomation."
  end
  matched_result_ta = desc.match(/visible\s(.+)\s\"(.*)__ta__(.+)__ta__.*/)
  if matched_result_ta && matched_result_ta[3]
    desc = "Unable to locate element { using: '#{matched_result_ta[1]}', selector: '#{matched_result_ta[2]}' }"
  end
  desc
end
Also aliased as: original_description
original_description(only_applied = false)
Alias for: description