watir-webdriver 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +78 -126
  3. data/LICENSE +3 -1
  4. data/README.md +1 -1
  5. data/Rakefile +1 -1
  6. data/lib/watir-webdriver.rb +15 -1
  7. data/lib/watir-webdriver/browser.rb +2 -1
  8. data/lib/watir-webdriver/cookies.rb +35 -7
  9. data/lib/watir-webdriver/elements/area.rb +13 -0
  10. data/lib/watir-webdriver/elements/element.rb +3 -3
  11. data/lib/watir-webdriver/elements/generated.rb +94 -55
  12. data/lib/watir-webdriver/elements/{frame.rb → iframe.rb} +41 -28
  13. data/lib/watir-webdriver/elements/input.rb +0 -16
  14. data/lib/watir-webdriver/elements/link.rb +13 -1
  15. data/lib/watir-webdriver/elements/text_area.rb +17 -0
  16. data/lib/watir-webdriver/html/generator.rb +2 -2
  17. data/lib/watir-webdriver/html/spec_extractor.rb +31 -4
  18. data/lib/watir-webdriver/html/visitor.rb +12 -4
  19. data/lib/watir-webdriver/locators/button_locator.rb +7 -13
  20. data/lib/watir-webdriver/locators/element_locator.rb +9 -5
  21. data/lib/watir-webdriver/locators/text_area_locator.rb +20 -0
  22. data/lib/watir-webdriver/locators/text_field_locator.rb +8 -0
  23. data/lib/watir-webdriver/version.rb +1 -1
  24. data/lib/watir-webdriver/wait.rb +23 -11
  25. data/spec/browser_spec.rb +18 -18
  26. data/spec/click_spec.rb +5 -5
  27. data/spec/container_spec.rb +5 -11
  28. data/spec/element_locator_spec.rb +32 -26
  29. data/spec/element_spec.rb +9 -9
  30. data/spec/implementation.rb +6 -2
  31. data/spec/input_spec.rb +11 -5
  32. data/spec/locator_spec_helper.rb +3 -3
  33. data/spec/special_chars_spec.rb +1 -1
  34. data/support/travis.sh +19 -5
  35. data/watir-webdriver.gemspec +1 -0
  36. metadata +37 -38
  37. data/spec/html/wait.html +0 -28
  38. data/spec/wait_spec.rb +0 -118
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4db8bb80c796c2acc7a8e949ae60333ebd5048f6
4
- data.tar.gz: 75fae8d53c1f376e2d4791d8d611c45362a88da1
3
+ metadata.gz: 20107514625a0935a0ed4ef373ad82184a51455a
4
+ data.tar.gz: d2f23505e86f4077826908f3ccc47843c188c789
5
5
  SHA512:
6
- metadata.gz: e7e6f4875c630da9586dde5d5e96e4263734ec289e5139112e8f959b4a1a0b09efaf2d785088448e2f9557a416cd72fdb348a6dd7decde716b7775fa781581fd
7
- data.tar.gz: 62877fce513d157a993b0b542a6e9c90a45cfac0edffca843c04090aa8dd83f1cfd1b47ecc53c99da8e50a8062c67bd540df692b897761dd984ce32d42556630
6
+ metadata.gz: 7544b66b717be8c8766986986c59f5b7a273ddeb400872193378a283dc18a3cdeb0933c20787d57ff5faa76e7928be2e53eb2d9d4f535570801df8d0e05ee534
7
+ data.tar.gz: 77229495952dd511fdca41bd5764b7508960673904cb829d13b306e0333b41827535fa1f6d29811e07e1b1c3feac82e1049f659f5a41cfad81798b01d9d32cad
data/CHANGES.md CHANGED
@@ -1,16 +1,28 @@
1
- 0.6.4
2
- =====
1
+ ### 0.6.5 (2014-01-28)
2
+
3
+ * Allow :name as locator for any element (#238)
4
+ * Make default timeout configurable (Watir.default_timeout, thanks to Justin Ko)
5
+ * Fix collission with Timecop. (#228)
6
+ * Support locating elements by and retrieving value of `aria-*` attributes. (#233)
7
+ * Allow to save/load cookies from file (thanks @ar4an)
8
+ * Locate by label attribute if it's valid for element (#219)
9
+ * Delegate #present? to Element (#216)
10
+ * Handle iframes like frames (#204)
11
+ * Fix HTML5 / input type handling (#217)
12
+ * Fix locating buttons and textarea by value (#163, #208)
13
+ * Make sure Browser#url always returns url of top frame (#205).
14
+ * Deprecate locating texteareas with #text_field.
15
+
16
+ ### 0.6.4
3
17
 
4
18
  * Add ability to find element by parent <label>
5
19
 
6
- 0.6.3
7
- =====
20
+ ### 0.6.3
8
21
 
9
22
  * Always use custom YARD handler (should give full docs on rubydoc.info)
10
23
  * Window resizing coerces string arguments
11
24
 
12
- 0.6.2
13
- =====
25
+ ### 0.6.2
14
26
 
15
27
  * Update from HTML spec (adds :abbr attribute to TableHeaderCell).
16
28
  * Add Window#maximize. Closes #153.
@@ -20,8 +32,7 @@
20
32
  * Return the element itself when Element#flash is called.
21
33
  * Fix case sensitivity issues when locating elements. Closes #72.
22
34
 
23
- 0.6.1
24
- =====
35
+ ### 0.6.1
25
36
 
26
37
  Added objects:
27
38
 
@@ -34,8 +45,7 @@
34
45
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
35
46
 
36
47
 
37
- 0.6.0
38
- =====
48
+ ### 0.6.0
39
49
 
40
50
  Added objects:
41
51
 
@@ -64,8 +74,7 @@
64
74
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
65
75
 
66
76
 
67
- 0.5.8
68
- =====
77
+ ### 0.5.8
69
78
 
70
79
  Modified objects:
71
80
 
@@ -73,8 +82,7 @@
73
82
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
74
83
 
75
84
 
76
- 0.5.7
77
- =====
85
+ ### 0.5.7
78
86
 
79
87
  Added objects:
80
88
 
@@ -86,8 +94,7 @@
86
94
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
87
95
 
88
96
 
89
- 0.5.6
90
- =====
97
+ ### 0.5.6
91
98
 
92
99
  Added objects:
93
100
 
@@ -103,8 +110,7 @@
103
110
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
104
111
 
105
112
 
106
- 0.5.5
107
- =====
113
+ ### 0.5.5
108
114
 
109
115
  Modified objects:
110
116
 
@@ -116,8 +122,7 @@
116
122
  Watir::Browser#clear_cookies (lib/watir-webdriver/browser.rb:90)
117
123
 
118
124
 
119
- 0.5.4
120
- =====
125
+ ### 0.5.4
121
126
 
122
127
  Added objects:
123
128
 
@@ -135,8 +140,7 @@
135
140
  Watir::Frame#elements_by_xpath (lib/watir-webdriver/elements/frame.rb:50)
136
141
 
137
142
 
138
- 0.5.3
139
- =====
143
+ ### 0.5.3
140
144
 
141
145
  Added objects:
142
146
 
@@ -148,8 +152,7 @@
148
152
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
149
153
 
150
154
 
151
- 0.5.2
152
- =====
155
+ ### 0.5.2
153
156
 
154
157
  Modified objects:
155
158
 
@@ -159,8 +162,7 @@
159
162
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
160
163
 
161
164
 
162
- 0.5.1
163
- =====
165
+ ### 0.5.1
164
166
 
165
167
  Added objects:
166
168
 
@@ -183,8 +185,7 @@
183
185
  Watir::XpathSupport#elements_by_xpath (lib/watir-webdriver/xpath_support.rb:23)
184
186
 
185
187
 
186
- 0.5.0
187
- =====
188
+ ### 0.5.0
188
189
 
189
190
  Added objects:
190
191
 
@@ -227,16 +228,14 @@
227
228
  Watir::TextField#value= (lib/watir-webdriver/elements/text_field.rb:19)
228
229
 
229
230
 
230
- 0.4.1
231
- =====
231
+ ### 0.4.1
232
232
 
233
233
  Modified objects:
234
234
 
235
235
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
236
236
 
237
237
 
238
- 0.4.0
239
- =====
238
+ ### 0.4.0
240
239
 
241
240
  Modified objects:
242
241
 
@@ -250,8 +249,7 @@
250
249
  Object (lib/watir-webdriver.rb:86)
251
250
 
252
251
 
253
- 0.3.9
254
- =====
252
+ ### 0.3.9
255
253
 
256
254
  Added objects:
257
255
 
@@ -286,8 +284,7 @@
286
284
  Watir::WindowSwitching#windows (lib/watir-webdriver/window_switching.rb:4)
287
285
 
288
286
 
289
- 0.3.8
290
- =====
287
+ ### 0.3.8
291
288
 
292
289
  Modified objects:
293
290
 
@@ -295,8 +292,7 @@
295
292
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
296
293
 
297
294
 
298
- 0.3.7
299
- =====
295
+ ### 0.3.7
300
296
 
301
297
  Modified objects:
302
298
 
@@ -304,8 +300,7 @@
304
300
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
305
301
 
306
302
 
307
- 0.3.6
308
- =====
303
+ ### 0.3.6
309
304
 
310
305
  Modified objects:
311
306
 
@@ -313,24 +308,21 @@
313
308
  Watir::Window#present? (lib/watir-webdriver/window_switching.rb:63)
314
309
 
315
310
 
316
- 0.3.5
317
- =====
311
+ ### 0.3.5
318
312
 
319
313
  Modified objects:
320
314
 
321
315
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
322
316
 
323
317
 
324
- 0.3.4
325
- =====
318
+ ### 0.3.4
326
319
 
327
320
  Modified objects:
328
321
 
329
322
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
330
323
 
331
324
 
332
- 0.3.3
333
- =====
325
+ ### 0.3.3
334
326
 
335
327
  Modified objects:
336
328
 
@@ -341,8 +333,7 @@
341
333
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
342
334
 
343
335
 
344
- 0.3.2
345
- =====
336
+ ### 0.3.2
346
337
 
347
338
  Modified objects:
348
339
 
@@ -350,8 +341,7 @@
350
341
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
351
342
 
352
343
 
353
- 0.3.1
354
- =====
344
+ ### 0.3.1
355
345
 
356
346
  Added objects:
357
347
 
@@ -369,8 +359,7 @@
369
359
  Watir.tag_to_class (lib/watir-webdriver.rb:23)
370
360
 
371
361
 
372
- 0.3.0
373
- =====
362
+ ### 0.3.0
374
363
 
375
364
  Modified objects:
376
365
 
@@ -379,8 +368,7 @@
379
368
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
380
369
 
381
370
 
382
- 0.2.9
383
- =====
371
+ ### 0.2.9
384
372
 
385
373
  Added objects:
386
374
 
@@ -395,8 +383,7 @@
395
383
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
396
384
 
397
385
 
398
- 0.2.8
399
- =====
386
+ ### 0.2.8
400
387
 
401
388
  Modified objects:
402
389
 
@@ -404,8 +391,7 @@
404
391
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
405
392
 
406
393
 
407
- 0.2.7
408
- =====
394
+ ### 0.2.7
409
395
 
410
396
  Added objects:
411
397
 
@@ -419,8 +405,7 @@
419
405
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
420
406
 
421
407
 
422
- 0.2.6
423
- =====
408
+ ### 0.2.6
424
409
 
425
410
  Modified objects:
426
411
 
@@ -429,8 +414,7 @@
429
414
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
430
415
 
431
416
 
432
- 0.2.5
433
- =====
417
+ ### 0.2.5
434
418
 
435
419
  Modified objects:
436
420
 
@@ -440,8 +424,7 @@
440
424
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
441
425
 
442
426
 
443
- 0.2.4
444
- =====
427
+ ### 0.2.4
445
428
 
446
429
  Added objects:
447
430
 
@@ -458,8 +441,7 @@
458
441
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
459
442
 
460
443
 
461
- 0.2.3
462
- =====
444
+ ### 0.2.3
463
445
 
464
446
  Added objects:
465
447
 
@@ -484,8 +466,7 @@
484
466
  Watir::PerformanceHelper::Performance#timing (lib/watir-webdriver/extensions/performance.rb:22)
485
467
 
486
468
 
487
- 0.2.2
488
- =====
469
+ ### 0.2.2
489
470
 
490
471
  Modified objects:
491
472
 
@@ -503,8 +484,7 @@
503
484
  Watir::TextField#value (lib/watir-webdriver/elements/text_field.rb:45)
504
485
 
505
486
 
506
- 0.2.1
507
- =====
487
+ ### 0.2.1
508
488
 
509
489
  Modified objects:
510
490
 
@@ -529,8 +509,7 @@
529
509
  Watir::Element#wd (lib/watir-webdriver/elements/element.rb:160)
530
510
 
531
511
 
532
- 0.2.0
533
- =====
512
+ ### 0.2.0
534
513
 
535
514
  Added objects:
536
515
 
@@ -543,8 +522,7 @@
543
522
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
544
523
 
545
524
 
546
- 0.2.0.dev2
547
- ==========
525
+ ### 0.2.0.dev2
548
526
 
549
527
  Added objects:
550
528
 
@@ -569,8 +547,7 @@
569
547
  Watir::WindowSwitching::NoMatchingWindowFoundException (lib/watir-webdriver/window_switching.rb:4)
570
548
 
571
549
 
572
- 0.2.0.dev
573
- =========
550
+ ### 0.2.0.dev
574
551
 
575
552
  Modified objects:
576
553
 
@@ -578,8 +555,7 @@
578
555
  Watir::Window#use (lib/watir-webdriver/window_switching.rb:103)
579
556
 
580
557
 
581
- 0.1.9
582
- =====
558
+ ### 0.1.9
583
559
 
584
560
  Added objects:
585
561
 
@@ -615,8 +591,7 @@
615
591
  Watir::Element#when_present (lib/watir-webdriver/extensions/wait.rb:98)
616
592
 
617
593
 
618
- 0.1.8
619
- =====
594
+ ### 0.1.8
620
595
 
621
596
  Added objects:
622
597
 
@@ -644,45 +619,39 @@
644
619
  Watir::TextField.from (lib/watir-webdriver/elements/text_field.rb:8)
645
620
 
646
621
 
647
- 0.1.7
648
- =====
622
+ ### 0.1.7
649
623
 
650
624
  Modified objects:
651
625
 
652
626
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
653
627
 
654
628
 
655
- 0.1.6
656
- =====
629
+ ### 0.1.6
657
630
 
658
631
  Modified objects:
659
632
 
660
633
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
661
634
 
662
635
 
663
- 0.1.5
664
- =====
636
+ ### 0.1.5
665
637
 
666
638
  Added objects:
667
639
 
668
640
  Watir::VERSION (lib/watir-webdriver/version.rb:2)
669
641
 
670
642
 
671
- 0.1.4
672
- =====
643
+ ### 0.1.4
673
644
 
674
645
  Modified objects:
675
646
 
676
647
  Watir::AlertHelper#prompt (lib/watir-webdriver/extensions/alerts.rb:55)
677
648
 
678
649
 
679
- 0.1.3
680
- =====
650
+ ### 0.1.3
681
651
 
682
652
 
683
653
 
684
- 0.1.2
685
- =====
654
+ ### 0.1.2
686
655
 
687
656
  Added objects:
688
657
 
@@ -694,8 +663,7 @@
694
663
  Watir::HTML::SpecExtractor#process (lib/watir-webdriver/html/spec_extractor.rb:10)
695
664
 
696
665
 
697
- 0.1.1
698
- =====
666
+ ### 0.1.1
699
667
 
700
668
  Added objects:
701
669
 
@@ -710,8 +678,7 @@
710
678
  Watir::Table#to_a (lib/watir-webdriver/elements/table.rb:20)
711
679
 
712
680
 
713
- 0.1.0
714
- =====
681
+ ### 0.1.0
715
682
 
716
683
  Added objects:
717
684
 
@@ -788,8 +755,7 @@
788
755
  Watir::TableRowLocator#locate_all (lib/watir-webdriver/locators/table_row_locator.rb:4)
789
756
 
790
757
 
791
- 0.0.9
792
- =====
758
+ ### 0.0.9
793
759
 
794
760
  Added objects:
795
761
 
@@ -804,8 +770,7 @@
804
770
  Watir::CheckBoxCollection#element_name (lib/watir-webdriver/elements/checkbox.rb:69)
805
771
 
806
772
 
807
- 0.0.8
808
- =====
773
+ ### 0.0.8
809
774
 
810
775
  Added objects:
811
776
 
@@ -898,8 +863,7 @@
898
863
  Watir::TextFieldLocator#tag_name_matches? (lib/watir-webdriver/locators/text_field_locator.rb:57)
899
864
 
900
865
 
901
- 0.0.7
902
- =====
866
+ ### 0.0.7
903
867
 
904
868
  Added objects:
905
869
 
@@ -1475,21 +1439,18 @@
1475
1439
  Watir::Var (lib/watir-webdriver/elements/generated.rb:1267)
1476
1440
 
1477
1441
 
1478
- 0.0.6
1479
- =====
1442
+ ### 0.0.6
1480
1443
 
1481
1444
 
1482
1445
 
1483
- 0.0.5
1484
- =====
1446
+ ### 0.0.5
1485
1447
 
1486
1448
  Modified objects:
1487
1449
 
1488
1450
  Watir::Frame#locate (lib/watir-webdriver/elements/frame.rb:12)
1489
1451
 
1490
1452
 
1491
- 0.0.4
1492
- =====
1453
+ ### 0.0.4
1493
1454
 
1494
1455
  Added objects:
1495
1456
 
@@ -1509,8 +1470,7 @@
1509
1470
  Watir::TextFieldLocator#lhs_for (lib/watir-webdriver/locators/text_field_locator.rb:34)
1510
1471
 
1511
1472
 
1512
- 0.0.3
1513
- =====
1473
+ ### 0.0.3
1514
1474
 
1515
1475
  Added objects:
1516
1476
 
@@ -1523,21 +1483,18 @@
1523
1483
  Watir::TextFieldLocator#build_xpath (lib/watir-webdriver/locators/text_field_locator.rb:12)
1524
1484
 
1525
1485
 
1526
- 0.0.2
1527
- =====
1486
+ ### 0.0.2
1528
1487
 
1529
1488
 
1530
1489
 
1531
- 0.0.1
1532
- =====
1490
+ ### 0.0.1
1533
1491
 
1534
1492
  Modified objects:
1535
1493
 
1536
1494
  Watir::Option#select (lib/watir-webdriver/elements/option.rb:14)
1537
1495
 
1538
1496
 
1539
- 0.0.1.dev7
1540
- ==========
1497
+ ### 0.0.1.dev7
1541
1498
 
1542
1499
  Added objects:
1543
1500
 
@@ -1565,8 +1522,7 @@
1565
1522
  Watir::Container#frames (lib/watir-webdriver.rb:60)
1566
1523
 
1567
1524
 
1568
- 0.0.1.dev6
1569
- ==========
1525
+ ### 0.0.1.dev6
1570
1526
 
1571
1527
  Added objects:
1572
1528
 
@@ -1612,8 +1568,7 @@
1612
1568
  Watir::Unknown (lib/watir-webdriver/elements/generated.rb:489)
1613
1569
 
1614
1570
 
1615
- 0.0.1.dev5
1616
- ==========
1571
+ ### 0.0.1.dev5
1617
1572
 
1618
1573
  Added objects:
1619
1574
 
@@ -1637,8 +1592,7 @@
1637
1592
  Watir::TextField#selector_string (lib/watir-webdriver/elements/text_field.rb:19)
1638
1593
 
1639
1594
 
1640
- 0.0.1.dev4
1641
- ==========
1595
+ ### 0.0.1.dev4
1642
1596
 
1643
1597
  Added objects:
1644
1598
 
@@ -1664,8 +1618,7 @@
1664
1618
  Watir::TrsCollection#elements (lib/watir-webdriver/collections/table_rows_collection.rb:4)
1665
1619
 
1666
1620
 
1667
- 0.0.1.dev3
1668
- ==========
1621
+ ### 0.0.1.dev3
1669
1622
 
1670
1623
  Modified objects:
1671
1624
 
@@ -1673,8 +1626,7 @@
1673
1626
  Watir::Browser#text (lib/watir-webdriver/browser.rb:73)
1674
1627
 
1675
1628
 
1676
- 0.0.1.dev2
1677
- ==========
1629
+ ### 0.0.1.dev2
1678
1630
 
1679
1631
  Added objects:
1680
1632