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

Commit

Permalink
docs(debugging): fix some issues from out-of-date docs
Browse files Browse the repository at this point in the history
  • Loading branch information
juliemr committed Nov 22, 2013
1 parent 02a3b61 commit 579bcc4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Protractor comes with [examples of failing tests](https://github.com/angular/pro
To run, start up the test application and a selenium server, and run

```
protractor debugging/failure_conf.js
protractor debugging/failureConf.js
```

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

// Run this statement before the line which fails. If protractor is run
// with the debugger (protractor debug debugging/conf.js), the test
// with the debugger (protractor debug <...>), the test
// will pause after loading the webpage but before trying to find the
// element.
browser.debugger();
Expand All @@ -54,7 +54,7 @@ it('should fail to find a non-existent element', function() {
Then run the test in debug mode

```
protractor debug debugging/failure_conf.js
protractor debug debugging/failureConf.js
```

This uses the [node debugger](http://nodejs.org/api/debugger.html). Enter
Expand All @@ -73,9 +73,9 @@ from Protractor into the browser as `window.clientSideScripts`. They can be
used from the browser's console.

```javascript
// In the browser console
> window.clientSideScripts.findInput('user.name');
// Should return the input element with model 'user.name'.
// In the browser console (e.g. from Chrome Dev Tools)
> window.clientSideScripts.findInputs('username');
// Should return the input element with model 'username'.
```


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

```
protractor debugging/timeout_conf.js
protractor debugging/timeoutConf.js
```

Jasmine tests have a timeout which can be set
Expand Down

0 comments on commit 579bcc4

Please sign in to comment.