Commit Graph

624 Commits

Author SHA1 Message Date
Bryan Helmkamp
830b459482 SelectOption is a Webrat::Element too 2008-11-30 01:26:07 -05:00
Bryan Helmkamp
c84e5335b5 Moving element files to webrat/core/elements 2008-11-30 01:20:31 -05:00
Bryan Helmkamp
3fd91e34be Extracting Webrat::Element superclass and refactoring element creation 2008-11-30 01:18:36 -05:00
Bryan Helmkamp
4594a39327 Load fields and labels directly from the scope 2008-11-30 00:47:49 -05:00
Bryan Helmkamp
40e0272dff Initialize Labels with a session refrence 2008-11-30 00:38:05 -05:00
Bryan Helmkamp
9e743ea3e2 Stop initializing Fields with references to the Form. They can find it by walking the DOM 2008-11-30 00:35:32 -05:00
Bryan Helmkamp
565e5d221d Add a couple failing specs for select behavior that needs fixing 2008-11-30 00:19:16 -05:00
Bryan Helmkamp
53979cbb52 Working on FieldLabeled locator 2008-11-30 00:12:46 -05:00
Bryan Helmkamp
27626ea389 Refactoring label locating to use elements 2008-11-29 23:59:26 -05:00
Bryan Helmkamp
67dd6d7c58 Moving requires 2008-11-29 23:22:22 -05:00
Bryan Helmkamp
87a4ff91ca Adding Locator#locate! method for error raising 2008-11-29 23:20:36 -05:00
Bryan Helmkamp
53ba0cc691 Extract FieldLocator 2008-11-29 23:11:16 -05:00
Bryan Helmkamp
f843ac2ae3 Moving locator methods 2008-11-29 23:08:23 -05:00
Bryan Helmkamp
1647d6ec1e Locator refactoring 2008-11-29 23:03:17 -05:00
Bryan Helmkamp
4ae94af45c Extract LabelLocator 2008-11-29 13:20:18 -05:00
Bryan Helmkamp
f6a9bed41e Extract FieldLabeledLocator 2008-11-29 13:02:05 -05:00
Bryan Helmkamp
1723157528 Extracting SelectOptionLocator 2008-11-29 12:55:57 -05:00
Bryan Helmkamp
a472bbfbde Namespace locators in Webrat::Locators 2008-11-29 02:00:57 -05:00
Bryan Helmkamp
d7eec20950 Extract FieldNamedLocator object 2008-11-29 01:58:27 -05:00
Bryan Helmkamp
eb95f6cf09 Refactoring locators 2008-11-29 01:54:49 -05:00
Bryan Helmkamp
04959ae457 Extract FieldByIdLocator object 2008-11-29 01:51:18 -05:00
Bryan Helmkamp
9e030a1b05 Extracting AreaLocator object 2008-11-29 01:48:16 -05:00
Bryan Helmkamp
2e69cb1911 Removing comments 2008-11-29 01:45:03 -05:00
Bryan Helmkamp
5b8a15bae7 Using elements to locate links 2008-11-29 01:44:20 -05:00
Bryan Helmkamp
9254397807 Extracting LinkLocator object 2008-11-29 01:33:55 -05:00
Bryan Helmkamp
0b6d9c28ea Extracting ButtonLocator object 2008-11-29 01:30:23 -05:00
Bryan Helmkamp
e5fb990cda Minor cleanups to locators 2008-11-29 01:19:59 -05:00
Bryan Helmkamp
4a63c9bfd1 Switching field_named locator to use elements 2008-11-29 01:14:49 -05:00
Bryan Helmkamp
4736c4cb1a Adding Field.xpath_search method with the XPath to all Webrat fields 2008-11-29 01:12:07 -05:00
Bryan Helmkamp
e0488cd8e4 Looking up Fields using Session#elements hash 2008-11-29 01:08:58 -05:00
Bryan Helmkamp
8e864f7e0d Extract Session#reset method 2008-11-29 01:05:19 -05:00
Bryan Helmkamp
154c83eced Store references to Areas in a Session#elements hash 2008-11-29 01:00:18 -05:00
Bryan Helmkamp
857625840f Adding Webrat::XML.xpath_to method 2008-11-29 00:49:00 -05:00
Bryan Helmkamp
6316faae44 Changing Field creation to use XPath 2008-11-29 00:43:24 -05:00
Bryan Helmkamp
3134d1ce73 Add pending spec for not unencoding entities in textarea default values 2008-11-29 00:21:49 -05:00
Bryan Helmkamp
f032a8de73 Refactoring CSS searching for building Links, Areas and Forms 2008-11-29 00:11:40 -05:00
Bryan Helmkamp
f2758c5d81 Search for areas using the DOM 2008-11-28 19:52:34 -05:00
Bryan Helmkamp
0b1dfbe0a2 Search for buttons using DOM 2008-11-28 18:30:38 -05:00
Bryan Helmkamp
ca0642e35c Updating field_with_id to search DOM elements 2008-11-28 18:14:42 -05:00
Bryan Helmkamp
3dce02483b Bump Nokogiri dependency to 1.0.6 2008-11-28 15:13:57 -05:00
Bryan Helmkamp
24923a610d Include the Selenium server jar file in the gem (Bryan Helmkamp, Ben Schwarz) 2008-11-28 15:12:54 -05:00
Bryan Helmkamp
ff2dd5de61 Adding require and switching to class_eval 2008-11-28 14:41:17 -05:00
Bryan Helmkamp
97bb64f4f9 Add "rake spec_deps" task to test specs for dependency issues and correct some issues 2008-11-28 03:11:19 -05:00
Bryan Helmkamp
ba0e50104b Parse with nokogiri when running the specs on MRI 2008-11-28 03:04:10 -05:00
Bryan Helmkamp
555e24394a Adding "rake precommit" task for running specs against both MRI and JRuby 2008-11-28 03:03:23 -05:00
Bryan Helmkamp
17808cbfb4 Add guilt-inducing pending specs for the set_hidden_field and submit_form methods 2008-11-28 03:02:07 -05:00
Bryan Helmkamp
0619159bec Adding lots of History entries that were missing for work since the last release 2008-11-28 03:01:28 -05:00
Bryan Helmkamp
87211f260d Use REXML and Hpricot together when Nokogiri is not available
This gets us the ability to use XPath consistently, as well as Hpricot's
forgiving parser, when using JRuby
2008-11-28 02:02:17 -05:00
Bryan Helmkamp
18e65bfa44 Cleaning up some more specs 2008-11-28 00:55:45 -05:00
Bryan Helmkamp
31aa659a67 Ensure all example HTML is wrapped in <html> tags 2008-11-28 00:34:35 -05:00