Commit Graph

15 Commits

Author SHA1 Message Date
Ingemar Edsborn 9a91b98f8d Trigger custom events 2010-02-15 14:54:11 +01:00
Jonas Nicklas 05fa9dd9e8 Run only JS tests with timeout 2010-01-30 20:09:27 +01:00
Jonas Nicklas 49cfacba1f Differentiate between source and body
source returns the unmodified page source
body returns the current dom html
2010-01-01 23:58:59 +01:00
Jonas Nicklas 89cd9803b6 has_*? methods now autowait for content 2010-01-01 19:36:45 +01:00
Lenny Marks 8a0064cc1b Session#locate - return node identified by locator or raise ElementNotFound(using desc)
- Replaced usage of wait_for with locate.
- wait_until back to raising error instead of returning false (This is key)
- wait_for_condition removed

Capybara::Session with culerity driver#wait_until
- should wait for block to return true
- should raise Capybara::TimeoutError if block doesn't return true within timeout
- should accept custom timeout in seconds
- should default to Capybara.default_wait_time before timeout

Capybara::Session with culerity driver#locate
- should find the first element using the given locator
- should raise ElementNotFound with specified fail message if nothing was found
- should accept an XPath instance and respect the order of paths

Capybara::Session with culerity driver#locate within a scope
- should find the first element using the given locator

Capybara::Session with culerity driver#locate
- should wait for asynchronous load
2009-12-31 14:04:38 -05:00
Jonas Nicklas 27d7057730 Replace timeout with retries based approach
Somehow, using Timeout was causing the Broken Pipe
errors in Culerity. Until someone can explain
how and why, this approach seems to work without
any significant drawbacks.
2009-12-25 19:04:45 +01:00
Jonas Nicklas 93a0ed55b9 Specs fix 2009-12-25 18:58:53 +01:00
Jonas Nicklas 3eed17dfeb Fix problem with broken pipes in Culerity?
WTF was causing this? I have no idea...
Anyway this seems to fix it.
2009-12-25 18:40:21 +01:00
Jonas Nicklas cdf8a3b46a Merge remote branch 'lenny/master' 2009-12-25 18:00:47 +01:00
Jonas Nicklas c6f2f3f7b2 Small format tweak 2009-12-25 17:53:09 +01:00
Lenny Marks 03e676b492 Session#wait_until 2009-12-22 18:14:04 -05:00
Jonas Nicklas 4c29fd9581 Merge remote branch 'initforthe/master'
Conflicts:
	lib/capybara.rb
2009-12-20 16:23:13 +01:00
Jonas Nicklas 6204142a8c Revert "added click_element with specs (only works in webdriver so far)"
I think I changed my mind about this, I think this method clutters the API

This reverts commit 7b8e6a640d.
2009-12-17 18:22:12 +01:00
Andrew Brown 7b8e6a640d added click_element with specs (only works in webdriver so far) 2009-12-16 13:43:15 +01:00
Andrew Brown 497966dfcd refactored session specs into its own subdirectory 2009-12-15 20:58:51 +01:00