We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80d9bd2 commit b7fc8bcCopy full SHA for b7fc8bc
spec/pages_spec.rb
@@ -1,6 +1,4 @@
1
require 'spec_helper'
2
-require 'ap'
3
-require 'uri'
4
class Links
5
def initialize(all_links,urls)
6
@n = Array.new
@@ -71,7 +69,6 @@ def is_uri? url
71
69
links.each do |link|
72
70
url=link[:href]
73
if !is_uri? url
74
- #ap [link.path, link.text, link[:href]]
75
page.find(:xpath, link.path).click
76
expect(page.status_code).to be(200), "expected link '#{link.text}' to work"
77
end
@@ -84,7 +81,6 @@ def is_uri? url
84
81
85
82
86
83
if is_uri? url
87
88
result = Links.url_exists? url
89
expect(result).to be_truthy, "expected link '#{link.text}' => '#{link[:href]}' to work (Error code '#{status}')"
90
0 commit comments