lib/generic_test/page.rb in generic_test-0.2.1 vs lib/generic_test/page.rb in generic_test-0.2.2
- old
+ new
@@ -16,10 +16,10 @@
# @param [Watir::Browser] browser Watir browser
def initialize(browser)
self.emails, self.links = browser.links.partition do |link|
link.href.start_with?('mailto:')
end
- links.reject! { |link| link.href.empty? || link.href.start_with?('javascript:') }
+ links.reject! { |link| link.href.empty? || link.href.start_with?('javascript:') || link.href.start_with?('tel:') }
emails.collect! { |link| link.href.split(':').last }
self.url = browser.url
self.html = browser.html
self.text = browser.text
self.title = browser.title