Commit Graph

333 Commits

Author SHA1 Message Date
Bryan Helmkamp
0eee6d75e4 Updating SelectOptionLocator to use elements 2008-11-30 15:15:50 -05:00
Bryan Helmkamp
ac4feb3b7e Working on SelectOptionLocator 2008-11-30 15:09:54 -05:00
Bryan Helmkamp
e72bba29c7 Switching FieldLabeledLocator to use elements 2008-11-30 14:59:33 -05:00
Bryan Helmkamp
28bd5f2533 Load field labels instead of creating new ones 2008-11-30 14:52:52 -05:00
Bryan Helmkamp
de2ba2caf8 Ditching preloading of Webrat::Elements 2008-11-30 14:48:32 -05:00
Bryan Helmkamp
d48a0fcb15 Refactoring node location 2008-11-30 14:46:52 -05:00
Bryan Helmkamp
53539eda09 Moving around XML code 2008-11-30 01:38:55 -05:00
Bryan Helmkamp
f3ff8d4ad2 Refactoring SelectOption creation 2008-11-30 01:29:58 -05:00
Bryan Helmkamp
1e7e977ec4 Moving #path method up to Webrat::Element 2008-11-30 01:27:24 -05:00
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
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
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
ff2dd5de61 Adding require and switching to class_eval 2008-11-28 14:41:17 -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
334108015f Abstracting access to inner_html and inner_text to Webrat::XML methods 2008-11-28 00:12:21 -05:00
Bryan Helmkamp
9a344fdc2b Converting usages of element attributes to use a Webrat::XML method 2008-11-27 00:57:10 -05:00