title: Protractor : How to switch to iframe present in second instance of the same test
body: <p>I have created two chrome instances and in the second chrome instance i am trying to enter card details which is present within iFrame. The below code is giving error.</p>
  <pre><code>var browser2 = browser.forkNewDriverInstance(true);
  browser2.get('https://test.app.com');
  browser2.switchTo().frame(element(by.id(&quot;card-number&quot;)).getWebElement());
  </code></pre>
  <p>Error:</p>
  <pre><code>Failed: stale element reference: element is not attached to the page document
  </code></pre>