I simplified the code i need to test to this:

```
<html ng-app="home" ng-strict-di=""><head>....

```

And i am running some protractor tests, i want to access the value of ng-app so i can compare and see which app is running in each page.

I have tried 

```
var appName = element(by.xpath('/html/@ng-app'))

```

but it is not returning a usable promise or text i can compare with

```
appName.getText().then(function(name) {
      expect(name).toBe('home')
      });

```

But protractor complains:

```
InvalidSelectorError: invalid selector: The result of the xpath expression "/html/@ng-app" is: [object Attr]. It should be an element.

```

So i'm a bit baffled as how can i access my angular app name from protractor to test for app running independently of localization of labels.

Any insight into this enigma?