[#50 state:resolved] added deprecation warning

This commit is contained in:
mike.gaffney 2009-06-03 10:01:27 -05:00
parent 796ede6cea
commit b2c423c49c
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@
* Adding clicking link by id in selenium mode lh221 (larrytheliquid)
* Adding fix for have_selector and have_xpath in descendent blocks lh234 (Thomas Jack)
* Adding fix for fields with labels with special characters (Thomas Jack, Mike Gaffney, Bryan Hemlkamp)
* Deprecated current_page lh50 (Mike Gaffney)
== 0.4.4 / 2009-04-06

View File

@ -69,6 +69,7 @@ For example:
# For backwards compatibility -- removing in 1.0
def current_page #:nodoc:
warn "current_page is deprecated and will be going away in the next release. Use current_url instead."
page = OpenStruct.new
page.url = @current_url
page.http_method = @http_method