Skip to content
Browse files

Supporting dynamic urls, bumped up version

  • Loading branch information...
1 parent 8a85776 commit a75714bbf5c609dae35e348d1980dcb79d4430c8 @deepakl committed Feb 12, 2012
Showing with 10 additions and 2 deletions.
  1. +9 −1 README.rdoc
  2. +1 −1 lib/capybara-pageobject/version.rb
View
10 README.rdoc
@@ -49,6 +49,15 @@ You can navigate to these pages as below:
website.home_page.visit
website.login_form.visit
+=== Dynamic urls
+For RESTful dynamci urls, use the following definition:
+ comment_page:
+ url: "/users/:user_id/comments/:comment_id"
+
+You can then visit the comments page as below:
+
+ website.comments_page.visit user_id: 3, comment_id: 1
+
=== id
The id attribute specifies the CSS3 selector which uniquely identifies that the page is loaded.
You can use this as below:
@@ -98,7 +107,6 @@ You can them specify it in the YAML file as below:
===TODO
* XPath selectors
-* Dynamic urls
* Standard setters ie website.login_form.email_address = "foo bar"
View
2 lib/capybara-pageobject/version.rb
@@ -1,5 +1,5 @@
module Capybara
module PageObject
- VERSION = "0.1.1"
+ VERSION = "0.1.2"
end
end

0 comments on commit a75714b

Please sign in to comment.
Something went wrong with that request. Please try again.