I need the Text of an element on my site (myProfile), but the code isnt working and running the code on jasmine gives me the following error

[![enter image description here](https://i.stack.imgur.com/cScTj.png)](https://i.stack.imgur.com/cScTj.png)

here is my code 

```
describe("login to CA", function() {
  it("returns successful", function() {
    driver.get(url);
    driver.findElement(By.xpath('//*[@id="input-username"]')).sendKeys(username);
    driver.findElement(By.xpath('//*[@id="input-password"]')).sendKeys(pw);
    driver.findElement(By.xpath('//*[@id="submit"]')).click();
    myProfile = driver.findElement(By.css('#bs-example-navbar-collapse-1 > ul > li:nth-child(5) > a'));
    expect(myProfile.getText()).toEqual('My profile');
  });
});

```

what to do?