I need to do something like:

```
expect(theElement.hasText()).toBe(true);

```

Do you know how can I do it?

I know that there is a "getText" function in protractor, but, how can I use it?
Should I do?:

```
expect(theElement.getText().lenght > 0).toBe(true);

```

Thanks!