forked from angular/protractor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoc.json
More file actions
7063 lines (7063 loc) · 228 KB
/
toc.json
File metadata and controls
7063 lines (7063 loc) · 228 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"version": "4.0.9",
"items": [
{
"alias": "browser",
"description": "",
"extends": "{webdriver.WebDriver}",
"fileName": "browser",
"name": "ProtractorBrowser",
"params": [
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "",
"startingLine": 87,
"typeExpression": "webdriver.WebDriver",
"type": {
"type": "NameExpression",
"name": "webdriver.WebDriver"
},
"typeList": [
"webdriver.WebDriver"
],
"name": "webdriver",
"paramString": "[webdriver.WebDriver](webdriver.WebDriver)"
},
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "A base URL to run get requests against.",
"startingLine": 88,
"typeExpression": "string=",
"type": {
"type": "NameExpression",
"name": "string",
"optional": true
},
"typeList": [
"string"
],
"optional": true,
"name": "opt_baseUrl",
"paramString": "string="
},
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "Selector element that has an ng-app in scope.",
"startingLine": 89,
"typeExpression": "string=",
"type": {
"type": "NameExpression",
"name": "string",
"optional": true
},
"typeList": [
"string"
],
"optional": true,
"name": "opt_rootElement",
"paramString": "string="
},
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "Whether Protractor should stop tracking outstanding $timeouts.",
"startingLine": 91,
"typeExpression": "boolean=",
"type": {
"type": "NameExpression",
"name": "boolean",
"optional": true
},
"typeList": [
"boolean"
],
"optional": true,
"name": "opt_untrackOutstandingTimeouts",
"paramString": "boolean="
}
],
"returnString": "",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Get the processed configuration object that is currently being run. This\nwill contain the specs and capabilities properties of the current runner\ninstance.</p>\n<p>Set by the runner.</p>\n",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.getProcessedConfig",
"returns": {
"tagDef": {
"name": "returns",
"aliases": [
"return"
],
"transforms": [
null,
null
]
},
"tagName": "returns",
"description": "A promise which resolves to the\ncapabilities object.",
"startingLine": 151,
"typeExpression": "webdriver.promise.Promise",
"type": {
"type": "NameExpression",
"name": "webdriver.promise.Promise"
},
"typeList": [
"webdriver.promise.Promise"
]
},
"returnString": "webdriver.promise.Promise",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Fork another instance of browser for use in interactive tests.</p>\n<p>Set by the runner.</p>\n",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.forkNewDriverInstance",
"params": [
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "Whether to navigate to current url on\ncreation",
"startingLine": 162,
"typeExpression": "boolean",
"type": {
"type": "NameExpression",
"name": "boolean"
},
"typeList": [
"boolean"
],
"name": "opt_useSameUrl",
"paramString": "boolean"
},
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "Whether to apply same mock modules on\ncreation",
"startingLine": 164,
"typeExpression": "boolean",
"type": {
"type": "NameExpression",
"name": "boolean"
},
"typeList": [
"boolean"
],
"name": "opt_copyMockModules",
"paramString": "boolean"
}
],
"returns": {
"tagDef": {
"name": "returns",
"aliases": [
"return"
],
"transforms": [
null,
null
]
},
"tagName": "returns",
"description": "A browser instance.",
"startingLine": 166,
"typeExpression": "Browser",
"type": {
"type": "NameExpression",
"name": "Browser"
},
"typeList": [
"Browser"
]
},
"returnString": "Browser",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Restart the browser instance.</p>\n<p>Set by the runner.</p>\n",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.restart",
"returnString": "",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Instead of using a single root element, search through all angular apps\navailable on the page when finding elements or waiting for stability.\nOnly compatible with Angular2.</p>\n",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.useAllAngular2AppRoots",
"returnString": "",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Instruct webdriver to wait until Angular has finished rendering and has\nno outstanding $http or $timeout calls before continuing.\nNote that Protractor automatically applies this command before every\nWebDriver action.</p>\n",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.waitForAngular",
"params": [
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "An optional description to be added to webdriver logs.",
"startingLine": 245,
"typeExpression": "string=",
"type": {
"type": "NameExpression",
"name": "string",
"optional": true
},
"typeList": [
"string"
],
"optional": true,
"name": "opt_description",
"paramString": "string="
}
],
"returns": {
"tagDef": {
"name": "returns",
"aliases": [
"return"
],
"transforms": [
null,
null
]
},
"tagName": "returns",
"description": "A promise that will resolve to the scripts return value.",
"startingLine": 247,
"typeExpression": "!webdriver.promise.Promise",
"type": {
"type": "NameExpression",
"name": "webdriver.promise.Promise",
"nullable": false
},
"typeList": [
"webdriver.promise.Promise"
]
},
"returnString": "!webdriver.promise.Promise",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Waits for Angular to finish rendering before searching for elements.</p>\n<br />See <code ng-non-bindable>webdriver.WebDriver.findElement</code>",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.findElement",
"returns": {
"tagDef": {
"name": "returns",
"aliases": [
"return"
],
"transforms": [
null,
null
]
},
"tagName": "returns",
"description": "A promise that will be resolved to the located [<code ng-non-bindable>webdriver.WebElement</code>](webdriver.WebElement).",
"startingLine": 355,
"typeExpression": "!webdriver.promise.Promise",
"type": {
"type": "NameExpression",
"name": "webdriver.promise.Promise",
"nullable": false
},
"typeList": [
"webdriver.promise.Promise"
]
},
"returnString": "!webdriver.promise.Promise",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Waits for Angular to finish rendering before searching for elements.</p>\n<br />See <code ng-non-bindable>webdriver.WebDriver.findElements</code>",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.findElements",
"returns": {
"tagDef": {
"name": "returns",
"aliases": [
"return"
],
"transforms": [
null,
null
]
},
"tagName": "returns",
"description": "A promise that will be resolved to an array of the located [<code ng-non-bindable>webdriver.WebElement</code>](webdriver.WebElement)s.",
"startingLine": 364,
"typeExpression": "!webdriver.promise.Promise",
"type": {
"type": "NameExpression",
"name": "webdriver.promise.Promise",
"nullable": false
},
"typeList": [
"webdriver.promise.Promise"
]
},
"returnString": "!webdriver.promise.Promise",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Tests if an element is present on the page.</p>\n<br />See <code ng-non-bindable>webdriver.WebDriver.isElementPresent</code>",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.isElementPresent",
"returns": {
"tagDef": {
"name": "returns",
"aliases": [
"return"
],
"transforms": [
null,
null
]
},
"tagName": "returns",
"description": "A promise that will resolve to whether the element is present on the page.",
"startingLine": 373,
"typeExpression": "!webdriver.promise.Promise",
"type": {
"type": "NameExpression",
"name": "webdriver.promise.Promise",
"nullable": false
},
"typeList": [
"webdriver.promise.Promise"
]
},
"returnString": "!webdriver.promise.Promise",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Add a module to load before Angular whenever Protractor.get is called.\nModules will be registered after existing modules already on the page,\nso any module registered here will override preexisting modules with the\nsame\nname.</p>\n",
"example": "browser.addMockModule('modName', function() {\n angular.module('modName', []).value('foo', 'bar');\n});",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.addMockModule",
"params": [
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "The name of the module to load or override.",
"startingLine": 394,
"typeExpression": "!string",
"type": {
"type": "NameExpression",
"name": "string",
"nullable": false
},
"typeList": [
"string"
],
"name": "name",
"paramString": "!string"
},
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "The JavaScript to load the module. Note that this will be executed in the browser context, so it cannot access variables from outside its scope.",
"startingLine": 395,
"typeExpression": "!string|Function",
"type": {
"type": "TypeUnion",
"elements": [
{
"type": "NameExpression",
"name": "string",
"nullable": false
},
{
"type": "FunctionType",
"params": []
}
]
},
"typeList": [
"string",
"function()"
],
"name": "script",
"paramString": "!string|Function"
},
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "Any additional arguments will be provided to the script and may be referenced using the `arguments` object.",
"startingLine": 398,
"typeExpression": "...*",
"type": {
"type": "AllLiteral",
"repeatable": true
},
"typeList": [
"*"
],
"name": "varArgs",
"paramString": "...*"
}
],
"returnString": "",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Clear the list of registered mock modules.</p>\n",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.clearMockModules",
"returnString": "",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Remove a registered mock module.</p>\n",
"example": "browser.removeMockModule('modName');",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.removeMockModule",
"params": [
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "The name of the module to remove.",
"startingLine": 421,
"typeExpression": "!string",
"type": {
"type": "NameExpression",
"name": "string",
"nullable": false
},
"typeList": [
"string"
],
"name": "name",
"paramString": "!string"
}
],
"returnString": "",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Get a list of the current mock modules.</p>\n",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.getRegisteredMockModules",
"returns": {
"tagDef": {
"name": "returns",
"aliases": [
"return"
],
"transforms": [
null,
null
]
},
"tagName": "returns",
"description": "The list of mock modules.",
"startingLine": 433,
"typeExpression": "Array.<!string|Function>",
"type": {
"type": "TypeApplication",
"expression": {
"type": "NameExpression",
"name": "Array"
},
"applications": [
{
"type": "TypeUnion",
"elements": [
{
"type": "NameExpression",
"name": "string",
"nullable": false
},
{
"type": "FunctionType",
"params": []
}
]
}
]
},
"typeList": [
"Array.<!string|Function>"
]
},
"returnString": "Array.<!string|Function>",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "See <code ng-non-bindable>webdriver.WebDriver.get</code><br />Navigate to the given destination and loads mock modules before Angular. Assumes that the page being loaded uses Angular. If you need to access a page which does not have Angular on load, use the wrapped webdriver directly.",
"example": "browser.get('https://angularjs.org/');\nexpect(browser.getCurrentUrl()).toBe('https://angularjs.org/');",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.get",
"params": [
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "Destination URL.",
"startingLine": 461,
"typeExpression": "string",
"type": {
"type": "NameExpression",
"name": "string"
},
"typeList": [
"string"
],
"name": "destination",
"paramString": "string"
},
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "Number of milliseconds to wait for Angular to start.",
"startingLine": 462,
"typeExpression": "number=",
"type": {
"type": "NameExpression",
"name": "number",
"optional": true
},
"typeList": [
"number"
],
"optional": true,
"name": "opt_timeout",
"paramString": "number="
}
],
"returnString": "",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "See <code ng-non-bindable>webdriver.WebDriver.refresh</code><br />Makes a full reload of the current page and loads mock modules before Angular. Assumes that the page being loaded uses Angular. If you need to access a page which does not have Angular on load, use the wrapped webdriver directly.",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.refresh",
"params": [
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "Number of milliseconds to wait for Angular to start.",
"startingLine": 579,
"typeExpression": "number=",
"type": {
"type": "NameExpression",
"name": "number",
"optional": true
},
"typeList": [
"number"
],
"optional": true,
"name": "opt_timeout",
"paramString": "number="
}
],
"returnString": "",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Mixin navigation methods back into the navigation object so that\nthey are invoked as before, i.e. driver.navigate().refresh()</p>\n",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.navigate",
"returnString": "",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Browse to another page using in-page navigation.</p>\n",
"example": "browser.get('http://angular.github.io/protractor/#/tutorial');\nbrowser.setLocation('api');\nexpect(browser.getCurrentUrl())\n .toBe('http://angular.github.io/protractor/#/api');",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.setLocation",
"params": [
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "In page URL using the same syntax as $location.url()",
"startingLine": 610,
"typeExpression": "string",
"type": {
"type": "NameExpression",
"name": "string"
},
"typeList": [
"string"
],
"name": "url",
"paramString": "string"
}
],
"returns": {
"tagDef": {
"name": "returns",
"aliases": [
"return"
],
"transforms": [
null,
null
]
},
"tagName": "returns",
"description": "A promise that will resolve once page has been changed.",
"startingLine": 611,
"typeExpression": "!webdriver.promise.Promise",
"type": {
"type": "NameExpression",
"name": "webdriver.promise.Promise",
"nullable": false
},
"typeList": [
"webdriver.promise.Promise"
]
},
"returnString": "!webdriver.promise.Promise",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Returns the current absolute url from AngularJS.</p>\n",
"example": "browser.get('http://angular.github.io/protractor/#/api');\nexpect(browser.getLocationAbsUrl())\n .toBe('http://angular.github.io/protractor/#/api');",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.getLocationAbsUrl",
"returns": {
"tagDef": {
"name": "returns",
"aliases": [
"return"
],
"transforms": [
null,
null
]
},
"tagName": "returns",
"description": "The current absolute url from\nAngularJS.",
"startingLine": 632,
"typeExpression": "webdriver.promise.Promise<string>",
"type": {
"type": "TypeApplication",
"expression": {
"type": "NameExpression",
"name": "webdriver.promise.Promise"
},
"applications": [
{
"type": "NameExpression",
"name": "string"
}
]
},
"typeList": [
"webdriver.promise.Promise<string>"
]
},
"returnString": "webdriver.promise.Promise<string>",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Adds a task to the control flow to pause the test and inject helper\nfunctions\ninto the browser, so that debugging may be done in the browser console.</p>\n<p>This should be used under node in debug mode, i.e. with\nprotractor debug <configuration.js></p>\n",
"example": "While in the debugger, commands can be scheduled through webdriver by\nentering the repl:\n debug> repl\n > element(by.input('user')).sendKeys('Laura');\n > browser.debugger();\n Press Ctrl + c to leave debug repl\n debug> c\n\nThis will run the sendKeys command as the next task, then re-enter the\ndebugger.",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.debugger",
"returnString": "",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Beta (unstable) enterRepl function for entering the repl loop from\nany point in the control flow. Use browser.enterRepl() in your test.\nDoes not require changes to the command line (no need to add 'debug').\nNote, if you are wrapping your own instance of Protractor, you must\nexpose globals 'browser' and 'protractor' for pause to work.</p>\n",
"example": "element(by.id('foo')).click();\nbrowser.enterRepl();\n// Execution will stop before the next click action.\nelement(by.id('bar')).click();",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.enterRepl",
"params": [
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "Optional port to use for the debugging\nprocess",
"startingLine": 904,
"typeExpression": "number=",
"type": {
"type": "NameExpression",
"name": "number",
"optional": true
},
"typeList": [
"number"
],
"optional": true,
"name": "opt_debugPort",
"paramString": "number="
}
],
"returnString": "",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Beta (unstable) pause function for debugging webdriver tests. Use\nbrowser.pause() in your test to enter the protractor debugger from that\npoint in the control flow.\nDoes not require changes to the command line (no need to add 'debug').\nNote, if you are wrapping your own instance of Protractor, you must\nexpose globals 'browser' and 'protractor' for pause to work.</p>\n",
"example": "element(by.id('foo')).click();\nbrowser.pause();\n// Execution will stop before the next click action.\nelement(by.id('bar')).click();",
"fileName": "browser",
"name": "ProtractorBrowser.prototype.pause",
"params": [
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "Optional port to use for the debugging\nprocess",
"startingLine": 937,
"typeExpression": "number=",
"type": {
"type": "NameExpression",
"name": "number",
"optional": true
},
"typeList": [
"number"
],
"optional": true,
"name": "opt_debugPort",
"paramString": "number="
}
],
"returnString": "",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"description": "<p>Create a new instance of Browser by wrapping a webdriver instance.</p>\n",
"fileName": "browser",
"name": "ProtractorBrowser.wrapDriver",
"params": [
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "The configured webdriver instance.",
"startingLine": 967,
"typeExpression": "webdriver.WebDriver",
"type": {
"type": "NameExpression",
"name": "webdriver.WebDriver"
},
"typeList": [
"webdriver.WebDriver"
],
"name": "webdriver",
"paramString": "[webdriver.WebDriver](webdriver.WebDriver)"
},
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "A URL to prepend to relative gets.",
"startingLine": 968,
"typeExpression": "string=",
"type": {
"type": "NameExpression",
"name": "string",
"optional": true
},
"typeList": [
"string"
],
"optional": true,
"name": "opt_baseUrl",
"paramString": "string="
},
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,
null,
null
]
},
"tagName": "param",
"description": "Whether Browser should stop tracking outstanding $timeouts.",
"startingLine": 969,
"typeExpression": "boolean=",
"type": {
"type": "NameExpression",
"name": "boolean",
"optional": true
},
"typeList": [
"boolean"
],
"optional": true,
"name": "opt_untrackOutstandingTimeouts",
"paramString": "boolean="
}
],
"returns": {
"tagDef": {
"name": "returns",
"aliases": [
"return"
],
"transforms": [
null,
null
]
},
"tagName": "returns",
"description": "a new Browser instance",
"startingLine": 971,
"typeExpression": "Browser",
"type": {
"type": "NameExpression",
"name": "Browser"
},
"typeList": [
"Browser"
]
},
"returnString": "Browser",
"sourceLink": "https://github.com/angular/protractor/blob/4.0.9/lib/browser.ts"
},
{
"alias": "element.all(locator)",
"description": "<p>ElementArrayFinder is used for operations on an array of elements (as opposed\nto a single element).</p>\n<p>The ElementArrayFinder is used to set up a chain of conditions that identify\nan array of elements. In particular, you can call all(locator) and\nfilter(filterFn) to return a new ElementArrayFinder modified by the\nconditions, and you can call get(index) to return a single ElementFinder at\nposition 'index'.</p>\n<p>Similar to jquery, ElementArrayFinder will search all branches of the DOM\nto find the elements that satisfy the conditions (i.e. all, filter, get).\nHowever, an ElementArrayFinder will not actually retrieve the elements until\nan action is called, which means it can be set up in helper files (i.e.\npage objects) before the page is available, and reused as the page changes.</p>\n<p>You can treat an ElementArrayFinder as an array of WebElements for most\npurposes, in particular, you may perform actions (i.e. click, getText) on\nthem as you would an array of WebElements. The action will apply to\nevery element identified by the ElementArrayFinder. ElementArrayFinder\nextends Promise, and once an action is performed on an ElementArrayFinder,\nthe latest result can be accessed using then, and will be returned as an\narray of the results; the array has length equal to the length of the\nelements found by the ElementArrayFinder and each result represents the\nresult of performing the action on the element. Unlike a WebElement, an\nElementArrayFinder will wait for the angular app to settle before\nperforming finds or actions.</p>\n",
"example": "element.all(by.css('.items li')).then(function(items) {\n expect(items.length).toBe(3);\n expect(items[0].getText()).toBe('First');\n});",
"fileName": "element",
"htmlView": "<ul class="items">\n <li>First</li>\n <li>Second</li>\n <li>Third</li>\n</ul>",
"name": "ElementArrayFinder",
"params": [
{
"tagDef": {
"name": "param",
"multi": true,
"docProperty": "params",
"transforms": [
null,