README.md in pagetience-0.4.0 vs README.md in pagetience-0.4.2

- old
+ new

@@ -89,16 +89,35 @@ def wait_for_foo wait_for_element :foo end def wait_longer_for_foo - wait_for_element :foo, 60, 5 + wait_for_element :foo, 60, 5 # wait up to 60 seconds, polling every 5 seconds end end +``` + +## Configuration +Pagetience can be configured, too. + +```ruby +Pagetience.configure do |config| + config.timeout = 60 + config.polling = 5 end ``` -#### Adjusting the Timeout/Polling +It can then be retrieve easily! + +```ruby +def give_me_a_property + Pagetience.config.timeout +end + +give_me_a_property # => 60 +```` + +#### Adjusting the Timeout/Polling for a specific Page You can use the `waiting` method to specify how long you want to wait and, optionally, at what interval to poll the page for element visibility. The default timeout is **30** seconds, polling every second. ```ruby