@@ -15,7 +15,7 @@ Protractor comes with [examples of failing tests](https://github.com/angular/pro
15
15
To run, start up the test application and a selenium server, and run
16
16
17
17
```
18
- protractor debugging/failure_conf .js
18
+ protractor debugging/failureConf .js
19
19
```
20
20
21
21
then look at all the pretty stack traces!
@@ -41,7 +41,7 @@ it('should fail to find a non-existent element', function() {
41
41
browser .get (' app/index.html#/form' );
42
42
43
43
// Run this statement before the line which fails. If protractor is run
44
- // with the debugger (protractor debug debugging/conf.js ), the test
44
+ // with the debugger (protractor debug <...> ), the test
45
45
// will pause after loading the webpage but before trying to find the
46
46
// element.
47
47
browser .debugger ();
@@ -54,7 +54,7 @@ it('should fail to find a non-existent element', function() {
54
54
Then run the test in debug mode
55
55
56
56
```
57
- protractor debug debugging/failure_conf .js
57
+ protractor debug debugging/failureConf .js
58
58
```
59
59
60
60
This uses the [ node debugger] ( http://nodejs.org/api/debugger.html ) . Enter
@@ -73,9 +73,9 @@ from Protractor into the browser as `window.clientSideScripts`. They can be
73
73
used from the browser's console.
74
74
75
75
``` javascript
76
- // In the browser console
77
- > window .clientSideScripts .findInput ( ' user.name ' );
78
- // Should return the input element with model 'user.name '.
76
+ // In the browser console (e.g. from Chrome Dev Tools)
77
+ > window .clientSideScripts .findInputs ( ' username ' );
78
+ // Should return the input element with model 'username '.
79
79
```
80
80
81
81
@@ -139,7 +139,7 @@ Timeouts
139
139
Protractor also contains an example suite of tests which time out. Run with
140
140
141
141
```
142
- protractor debugging/timeout_conf .js
142
+ protractor debugging/timeoutConf .js
143
143
```
144
144
145
145
Jasmine tests have a timeout which can be set
0 commit comments