Commit Graph

654 Commits

Author SHA1 Message Date
Álvaro Gil
c49e23d81d fixes #341 attach_file with nested attributes 2010-04-05 11:31:38 -03:00
Álvaro Gil
15102bd60d !trivial: define and call class methods in From appropriate 2010-04-05 11:07:35 -03:00
Álvaro Gil
fa881a88c8 build querystring with all form elements and then parse to get query params
* Basically Field#to_param was replaced for Field#to_query_string and
some methods related to build params were moved to Form class.

Before this commit the params hash was made by parsing each element
querystring to param and then merge, now we build the whole querystring
first and then parse it to get params with Rack or Rails depending of
the configure mode.
2010-04-03 12:07:16 -03:00
Noah Davis
2f12422ae8 New webrat configuration option selenium_firefox_profile which is passed to selenium server 2010-02-26 15:54:31 -05:00
lukemelia
d9d9cc1fcc Added application_port_for_selenium to webrat configuration. The use case is when you want to test through a web server sitting in front of your application server. 2010-01-18 09:49:44 -05:00
Noah Davis
0387d9eacc Bumping version to prerelease until next official release 2010-01-17 20:48:23 -05:00
Noah Davis
d73eca71ee Releasing v 0.7.0 2010-01-17 20:44:20 -05:00
Bryan Helmkamp
eb3a4ff5d6 Whitespace 2010-01-17 20:35:42 -05:00
Noah Davis
ccaf41160c Save and open page storage directory now defaults to "tmp" under current directory if exists, otherwise current directory 2010-01-17 18:29:35 -05:00
Noah Davis
d50d24e09e Documentation fix for application environment 2010-01-17 18:08:40 -05:00
Noah Davis
1874f6d395 Removed save_and_open_page's rewriting of static asset paths before saving (was not actually working) 2010-01-16 19:28:29 -05:00
Noah Davis
71dcfb327d Save and open page directory specified via configuration 2010-01-16 19:18:28 -05:00
Noah Davis
db168bedec Make "should contain" ignore extra whitespace when doing string comparisons 2010-01-13 16:47:35 -05:00
lukemelia
f9985cd488 Make selenium matchers handle negative match more consistently with positive match 2010-01-05 18:33:45 -05:00
Bryan Helmkamp
b64d68a2a8 Bump VERSION to prerelease 2009-11-28 00:24:47 -05:00
Bryan Helmkamp
4081fe5538 Prep for 0.6.0 release 2009-11-28 00:18:58 -05:00
Michael Klett
61b0fce828 Base64 encoding of HTTP basic auth credentials should omit newlines (do not enforce a 76 character line limit)
According to RFC 2617 (http://www.ietf.org/rfc/rfc2617.txt), the 76 character line limit normally enforced by Base64 encoding should not apply to the encoding of HTTP basic authentication credentials.
2009-11-15 16:50:40 -05:00
David Chelimsky
51bdded2ce require 'nokogiri' in rspec-rails include file 2009-11-15 16:50:39 -05:00
Jonathan Weiss
ea4a52ccf1 add support for Rails 2.3.4 form authenticity tokens 2009-11-15 16:24:56 -05:00
Bryan Helmkamp
f51b745e89 When a timeout occurs in wait_for, include the HTML from Selenium in the exception 2009-09-22 15:23:49 -04:00
Bryan Helmkamp
194d3250cc Prep for 0.6.rc1 release 2009-09-22 12:41:57 -04:00
Bryan Helmkamp
042b416092 Whitespace 2009-09-19 17:34:09 -04:00
Bryan Helmkamp
03f2023117 Make link location in Selenium more reliable and consistent with non-Selenium 2009-09-18 15:49:06 -04:00
Bryan Helmkamp
b51ba029db Fix support for passing in an ActiveRecord model to within (which uses dom_id) LB/BH 2009-09-18 11:28:07 -04:00
Bryan Helmkamp
c689166c48 Fix "element.getAttribute is not a function" Selenium errors when filling in fields
The root cause was the locator strategy was naively returning an element that was not a form field, causing Selenium's internals to blow up
2009-09-17 21:32:56 -04:00
Bryan Helmkamp
3a9e7d3999 Fix bugs when dealing with special characters in labels 2009-09-17 21:18:52 -04:00
Bryan Helmkamp
63e1053afa Fix bug in Selenium when dealing with special characters in link text 2009-09-17 20:28:19 -04:00
Bryan Helmkamp
aae82b5111 Whitespace 2009-09-17 20:15:40 -04:00
Bryan Helmkamp
b0ef59f5ec Properly handle multiline param values (previously, subsequent lines were lost) 2009-09-07 14:07:05 -04:00
Bryan Helmkamp
ad06a777fb Re-introduce VERSION constant, but don't make it dependent on the VERSION file 2009-09-07 13:25:33 -04:00
Bryan Helmkamp
ecaed5ff93 Merge commit 'm3talsmith/master' into gh_18 2009-09-07 13:16:53 -04:00
Bryan Helmkamp
2490c247d2 More clarification of select option locating behavior.
TODO: Ensure the other locators are all matching on text, not HTML
2009-09-07 12:53:06 -04:00
Bryan Helmkamp
00c49a0521 Simplify select option matching code. Minor behavior change:
Valid: select "Peanut Butter & Jelly"
  Invalid: select "Peanut Butter & Jelly"
2009-09-07 12:44:54 -04:00
Kieran Pilkington
a8d0cebde3 Various improvements, refinements, and bugfixes for select field usage.
Multiple select boxes are now handled a lot better.
* You can now select more than one field (where as previously, the last one select would override previous selections)
* You can now unselect a value. It works like select, takes the same params, but removes the selection value

Issues regarding ampersands in values have been resolved.
* Values are now unescaped when the to_param method is run on elements, to make assertions less complicated
* Locating an option with ampersand values now works as expected (it will check for both escaped and unescaped occurrences)

Bunch of new specs and 3 broken pending ones have now been fixed. [#145 status:resolved]
2009-08-31 18:34:04 +12:00
Bryan Helmkamp
b9466df773 Merge commit 'djanowski/fix_logger' 2009-08-29 15:57:58 -04:00
Michael Christenson II
3255c9edf0 Forces an integer to fix Issue #18 2009-08-27 11:54:03 -04:00
Bryan Helmkamp
e18ef197b5 Move selenium integration code to webrat/integrations/selenium so it's automatically required 2009-08-20 00:09:03 -04:00
Bryan Helmkamp
723f4356b9 Move rspec-rails integration code to webrat/integrations/rspec-rails 2009-08-19 23:42:58 -04:00
Bryan Helmkamp
2fc9f3f7f9 Move adapters to webrat/adapters, and Rails and Merb integration code into webrat/integrations 2009-08-19 23:42:54 -04:00
Bryan Helmkamp
610f0fc217 Webrat doesn't need to worry about StringIOs
...or, we're missing a test and this is going to help us find it
2009-08-19 23:14:13 -04:00
Bryan Helmkamp
11f30d1d2e Dropping support for Hpricot and REXML 2009-08-19 23:14:13 -04:00
Simon Rozet
997ff97405 MerbSession now use RackSession under the hood 2009-08-19 23:14:08 -04:00
Damian Janowski
4a949e0e5a Fix logger issue when running inside Cucumber. 2009-08-14 13:05:20 -03:00
Bryan Helmkamp
66251b66ae Cleanup session initializaton in Webrat::Methods 2009-08-12 22:05:04 -04:00
Bryan Helmkamp
ec43bb9546 Selenium is a session type, not an adapter type 2009-08-12 21:44:02 -04:00
Bryan Helmkamp
17713c9036 MechanizeAdapter doesn't need to inherit from Session 2009-08-12 21:39:32 -04:00
Bryan Helmkamp
e4ea9134a7 Rename MechanizeSession to MechanizeAdapter 2009-08-12 20:54:29 -04:00
Bryan Helmkamp
89ec303db5 Rename RailsSession to RailsAdapter 2009-08-12 20:52:57 -04:00
Bryan Helmkamp
986682488e Rename MerbSession to MerbAdapter 2009-08-12 20:50:55 -04:00
Bryan Helmkamp
22a06000f9 Introduce session_class method 2009-08-12 20:44:32 -04:00