rev087/ng-inspector — pull request #61 by DrewML (2014-12-21 04:42:57+00:00)
Title: Fix Lynda.com

Howdy,

This PR fixes the issue(s) reported in issue #60. My explanation on that comment thread explains the issues I've addressed. I've tested and verified it works on Lynda.com (in Chrome and Safari), as well as a few other Angular websites.

Before this can be accepted though, I should note I'm having some issues with one of the E2E tests, and I'm hoping someone can assist.

The RequireJS E2E test is failing with the following output:

```bash
> protractor test/protractor.conf.js

Using ChromeDriver directly...
.......F

Failures:

1) require.js should inspect app loaded with require.js
Message:
Error: No element found using locator: By.cssSelector(".ngi-scope .ngi-annotation-ctrl")
Stacktrace:
Error: No element found using locator: By.cssSelector(".ngi-scope .ngi-annotation-ctrl")
==== async task ====
WebDriver.findElements(By.cssSelector(".ngi-scope .ngi-annotation-ctrl"))
at [object Object]. (/Users/drew/Documents/ng-inspector/test/e2e/specs/requirejs.js:18:47)
==== async task ====
Asynchronous test function: it()
Error
at [object Object]. (/Users/drew/Documents/ng-inspector/test/e2e/specs/requirejs.js:14:2)
at Object. (/Users/drew/Documents/ng-inspector/test/e2e/specs/requirejs.js:5:1)

Finished in 6.215 seconds
8 tests, 24 assertions, 1 failure
```

I've put in some effort to attempt to debug the test, but I'm running out of ideas. The only info I have on the test issue so far is that commit daf8f7a seems to be the one causing the failing test.