title: Selenium WebDriver(Appium) - How to switch to IFrame using driver.ExecuteJavascript?
body: <p>I'm currently facing an issue with Appium automating a hybrid iOS application when trying to switch to an IFrame. Whilst I've been able to switch to my IFrame successfully on Android using:</p>
  
  <pre><code>driver.SwitchTo().Frame(iFrameElement);
  </code></pre>
  
  <p>There's a known issue with Appium in that this approach doesn't work on iOS due to an Appium bug. A suggested workaround was to use the method below to switch to the IFrame element.</p>
  
  <pre><code>driver.ExecuteJavascript()
  </code></pre>
  
  <p>I just was wondering if anyone knows how I'd go about doing this?</p>
  
  <p>Thanks in advance!</p>