Skip to content

Commit

Permalink
Added support for href,id,title,class_name,style on Link.
Browse files Browse the repository at this point in the history
  • Loading branch information
aesterline authored and Tom Copeland committed Nov 10, 2009
1 parent 2b0ea9d commit 9fa2839
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/safariwatir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,27 @@ def click_jquery
end
end

def href
attr('href') || ''
end
alias :url :href

def id
attr('id') || ''
end

def title
attr('title') || ''
end

def class_name
attr('class') || ''
end

def style
attr('style') || ''
end

def tag; "A"; end
end

Expand Down

0 comments on commit 9fa2839

Please sign in to comment.