Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 579bcc4

Browse files
committed
docs(debugging): fix some issues from out-of-date docs
1 parent 02a3b61 commit 579bcc4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: docs/debugging.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Protractor comes with [examples of failing tests](https://github.com/angular/pro
1515
To run, start up the test application and a selenium server, and run
1616

1717
```
18-
protractor debugging/failure_conf.js
18+
protractor debugging/failureConf.js
1919
```
2020

2121
then look at all the pretty stack traces!
@@ -41,7 +41,7 @@ it('should fail to find a non-existent element', function() {
4141
browser.get('app/index.html#/form');
4242

4343
// 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
4545
// will pause after loading the webpage but before trying to find the
4646
// element.
4747
browser.debugger();
@@ -54,7 +54,7 @@ it('should fail to find a non-existent element', function() {
5454
Then run the test in debug mode
5555

5656
```
57-
protractor debug debugging/failure_conf.js
57+
protractor debug debugging/failureConf.js
5858
```
5959

6060
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
7373
used from the browser's console.
7474

7575
```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'.
7979
```
8080

8181

@@ -139,7 +139,7 @@ Timeouts
139139
Protractor also contains an example suite of tests which time out. Run with
140140

141141
```
142-
protractor debugging/timeout_conf.js
142+
protractor debugging/timeoutConf.js
143143
```
144144

145145
Jasmine tests have a timeout which can be set

0 commit comments

Comments
 (0)