title: How to switch frames using Protractor
body: <p>I know this has been asked multiple times, and the suggested solution has been to use something like <code>browser.driver.switchTo('your-frame-name')</code> but I can't seem to access the same switchTo() method in my code. </p>
  
  <p>This is my test :</p>
  
  <pre><code>import { AppPage } from './app.po';
  import {browser, by, element} from 'protractor';
  
  describe('angular-test App', () =&gt; {
    let page: AppPage;
  
    beforeEach(() =&gt; {
      page = new AppPage();
    });
  
    it('should display welcome message', () =&gt; {
      page.navigateTo();
      browser.driver.switchToParentFrame()
  
      //expect(page.getParagraphText()).toEqual('Welcome to app!');
      expect(element(by.id('myHeader')).getText()).toEqual('Welcome to Angular Test App!  ');
    });
  });
  </code></pre>
  
  <p><code>switchToParentFrame()</code> is the only available method I get after the browser.driver. </p>
  
  <p>This is how my HTML looks like</p>
  
  <p><a href="https://i.stack.imgur.com/0N2dy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0N2dy.png" alt="enter image description here"></a></p>
  
  <p>Any help is appreaciated, sorry for the vague description of the question but I'm pretty new to coding/protractor e2e testing. </p>