Commit Graph

25 Commits

Author SHA1 Message Date
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
Lenny Marks 5f9365da5c DSL was missing new has_no_* methods causing spec failures. Added #locate 2009-12-31 13:52:24 -05:00
Jonas Nicklas 195ca37178 Fix failing specs 2009-12-25 18:50:01 +01: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 22f8727114 return current_url for application (webdriver, culerity) 2009-12-16 15:16:52 +01:00
Andrew Brown 7b8e6a640d added click_element with specs (only works in webdriver so far) 2009-12-16 13:43:15 +01:00
Jonas Nicklas 2c79f8eb0b Added click method which clicks on either link or button
Useful if buttons are replaced with links for styling purposes
2009-12-13 15:03:19 +01:00
Jonas Nicklas bb2b98cc30 Merge remote branch 'robholland/master'
Conflicts:
	lib/capybara/session.rb
2009-12-12 22:09:35 +01:00
Jonas Nicklas d183409d19 Merge remote branch 'denro/evaluate_script'
Conflicts:
	lib/capybara.rb
	lib/capybara/driver/selenium_driver.rb
	lib/capybara/dsl.rb
	spec/session/culerity_session_spec.rb
	spec/session/selenium_session_spec.rb
	spec/session_spec.rb
2009-12-12 21:56:32 +01:00
Jonas Nicklas 9c9f3684a9 Moved waiting back into session where it belongs
Also expose the new wait_for method
As an added bonus, find and all now accept XPath
instances and handle them correctly
2009-12-12 21:46:08 +01:00
Dennis Rogenius 525ba2d654 removed whitespace and added dsl shortcut to evaluate_script method 2009-12-12 13:33:00 +01:00
Rob Holland 01d2ca5db2 Merge branch 'master' of git://github.com/jnicklas/capybara 2009-12-10 15:03:16 +00:00
Jonas Nicklas 3026773784 Add all method, make find return a single element 2009-12-09 17:00:49 +01:00
Rob Holland b93e1cd5b5 Add drag API (subject to change), fix bug in has_content? 2009-12-09 09:34:42 +00:00
Andrea Fazzi 947d4a10c9 Merge remote branch 'jnicklas/master' 2009-12-08 19:45:54 +01:00
Andrea Fazzi 0fad236eed Change Session#find accessibility from private to public. 2009-12-08 19:29:36 +01:00
Rob Holland 1a6c2c7eda Remove redundant block around single call. 2009-11-27 09:08:25 +00:00
Jonas Nicklas d3a11f0f85 Streamline default_selector 2009-11-26 23:47:58 +01:00
Rob Holland 2c769c57ee Add default_selector into session as well in case DSL isn't being used. Add some specs. 2009-11-26 16:43:39 +00:00
Rob Holland 49075cc732 Allow toggling between css or xpath as the default selecto style. 2009-11-25 17:57:32 +00:00
Jonas Nicklas 334bca5d77 Added within table method 2009-11-24 21:45:52 +01:00
Jonas Nicklas 5a89fafcdf Added within_fieldset method 2009-11-24 21:32:25 +01:00
Jonas Nicklas 9e2a67e7cb Add find methods to DSL 2009-11-18 22:02:34 +01:00
Theo Hultberg and Jonas Nicklas 6b099a4a33 renamed to capybara 2009-11-16 22:02:16 +01:00