Gabriel Sobrinho
2d8257c549
Capybara should not care about celerity and culerity drivers
2011-03-08 16:50:21 -03:00
Jonas Nicklas and Nicklas Ramhöj
cb8de0c05e
Merge branch 'document_text' of https://github.com/scytacki/capybara into scytacki-document_text
2011-02-28 12:56:34 +01:00
Jonas Nicklas and Nicklas Ramhöj
021b87f6ba
Selenium driver automatically waits for AJAX requests to finish
2011-02-22 15:53:43 +01:00
Scott Cytacki
17224befe7
Fix document#text
...
It failed if the default selector was css, and failed with selenium with xpath. Calling find('.') or find('/') in selenium returns a element that causes errors. It now calls find(:xpath, '/html') which seems to work everywhere.
2011-02-18 16:29:51 -05:00
asceth
16eef3a6d8
add driver specs that make sure body responses are set to the correct encoding with html entities for ruby 1.9
2011-01-27 22:22:28 -05:00
Jonas Nicklas
5c251671cb
Revert "Make sure the paths passed to visit are prefixed with slashes ( closes #249 )"
...
This reverts commit 7f10a74853
.
2011-01-21 21:43:26 +01:00
Jeff Kreeftmeijer
7f10a74853
Make sure the paths passed to visit are prefixed with slashes ( closes #249 )
...
For Selenium and Celerity.
2011-01-19 11:14:23 +01:00
José Valim
c7de62d88a
Some browsers automatically adds the charset to Content-Type. Be less restrictive in tests.
2011-01-01 03:43:30 -08:00
John Firebaugh
9d6aebdea8
Ensure that matchers work correctly after actions, closes #171
...
With browser-based drivers, the has_value?, has_select?, and
has_checked_field? matchers (and their negative counterparts)
did not always work correctly. It is not possible to determine
the dynamic state of inputs purely with XPath, because XPath
has access only to the value, selected, and checked _attributes_,
and only the corresponding _properties_ change in response to
user input. This commit replaces the pure XPath implementation
with one that retrieves all matching inputs and then filters the
results using driver-specific means that do reflect user input.
2010-12-31 11:04:36 -08:00
Jonas Nicklas
b022ca9926
Better implementation of attributes for celerity, closes #206
2010-11-21 19:00:28 +01:00
jarra
124ec5d76e
Oops, renaming mistake fixed!
2010-09-26 17:58:39 +02:00
jarra
2e4bb2e374
Renamed "within_popup" to "within_window"
2010-09-26 17:58:39 +02:00
jarra
80df9fff5a
Popup support added for selenium.
2010-09-26 17:58:38 +02:00
Jonas Nicklas
64d2c34589
Rename cleanup! to reset!
2010-09-07 18:18:20 +02:00
Jonas Nicklas
1e1c79f3c2
Selenium is too inconsisten with attribute values
2010-08-24 12:37:13 +02:00
Jonas Nicklas
7f6531c126
Celerity/Culerity drag and drop is broken
...
Added some more specs for it to prove how it's
broken. The exisiting spec was checking for
driver.find('...').nil? but driver.find returns
an array, so it always passed, even when the
drag/drop actually did nothing.
2010-07-10 16:36:40 +02:00
Jonas Nicklas
fe5e308f41
Rearranged drivers a little bit
2010-07-10 03:11:54 +02:00
Jonas Nicklas
b79cefbd98
Merge remote branch 'robholland/master'
2010-06-29 23:30:21 +02:00
Jonas Nicklas
8152b5505e
Merge remote branch 'paulelliott/current_path'
2010-06-29 23:27:04 +02:00
Myron Marston
5b72525a96
Detect infinite redirection (i.e. more than 5 redirects).
...
This originally worked with a timeout. Jonas fixed it so that it follows 5 redirects, but the infinite redirect error was not raised.
2010-06-29 14:11:24 -07:00
Carlos Antonio da Silva
5ad348d776
Add cleanup method to clear cookies for Celerity/Culerity and RackTest, with tests for Selenium included
2010-06-24 10:51:44 -03:00
Gareth Townsend
d1fc4d6e1a
Rename response_code to status_code for consistency.
...
Update selenium specs to ensure that it raises the Capybara::NotSupportedByDriverError error.
2010-06-07 13:14:40 +10:00
Gareth Townsend
d80471982d
Implement status_code method for rack_test_driver.
2010-06-07 11:45:09 +10:00
Gareth Townsend
072e697130
Implemented a response_code method in the Capybara::Driver::Base class that raises Capybara::NotSupportedByDriverError.
2010-06-07 11:13:57 +10:00
Rob Holland
31d831328c
Fix .value on a textarea to give you the content for the rack driver.
2010-05-14 09:52:37 +01:00
Paul Elliott
db16a19073
Add current_path to dsl
2010-05-13 09:25:02 -04:00
Larry Diehl
67a2076ecc
Merge remote branch 'jgagner/master'
...
Conflicts:
lib/capybara/driver/selenium_driver.rb
lib/capybara/session.rb
spec/driver/selenium_driver_spec.rb
2010-04-28 16:03:27 -07:00
Jonas Nicklas
cf1aa4d073
Moved shared specs into lib directory
...
This way, implementations of other drivers can
use the specs to verify that they are working
correctly.
2010-04-09 16:41:35 +02:00