title: switch to WebView by executing driver.context() with appium
body: <p><strong>Problem</strong></p>
  
  <p>I use appium for android automation on real device. I switch to WebView use driver.context("webview_com.xxx.myapp"), Then I execute driver.getPageSource(),and a question appear,it returned as follows</p>
  
  <p><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;iframe name="chromedriver dummy frame" src="about:blank"&gt;&lt;/iframe&gt;&lt;/body&gt;&lt;/html&gt;</code></p>
  
  <p><strong>Environment</strong></p>
  
  <pre><code>appium:1.15.1
  OS:Windows 10
  API :java
  Android:8.1
  </code></pre>
  
  <p><strong>Details</strong></p>
  
  <p>My DesiredCapabilities as follows</p>
  
  <pre><code>        capabilities.setCapability("platformName", "Android");
          capabilities.setCapability("deviceName", "b307aa10");
          capabilities.setCapability("automationName", "appium");
          capabilities.setCapability("platformVersion", "8.1.0");
          capabilities.setCapability("appPackage", "com.dayizhihui.dayishi.hpv");
          capabilities.setCapability("appActivity", ".main.view.WelcomeActivity");
          capabilities.setCapability("noReset", "true");
          Map&lt;String, Object&gt; chromeOptions = new HashMap&lt;String, Object&gt;();
          chromeOptions.put("androidPackage", "com.android.chrome");
          capabilities.setCapability(ChromeOptions.CAPABILITY,chromeOptions);
  </code></pre>
  
  <p>My code as follows</p>
  
  <pre><code>        driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
          introducePageHandle.clickIntroduceIcon();
          System.out.println("Before " + driver.getContext());
          System.out.println("All Contexts " + driver.getContextHandles());
          driver.context("WEBVIEW_com.dayizhihui.dayishi.hpv");
          System.out.println("After " + driver.getContext());
          System.out.println("PageSource " + driver.getPageSource());
  </code></pre>
  
  <p>The excute Result</p>
  
  <pre><code>Before NATIVE_APP
  All Contexts [NATIVE_APP, WEBVIEW_com.dayizhihui.dayishi.hpv, WEBVIEW_chrome]
  After WEBVIEW_com.dayizhihui.dayishi.hpv
  PageSource &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;iframe name="chromedriver dummy frame" src="about:blank"&gt;&lt;/iframe&gt;&lt;/body&gt;&lt;/html&gt;
  
  </code></pre>
  
  <p>I really want to someone can help me to solve it,thanks advanced!</p>
  
  <p><a href="https://i.stack.imgur.com/X9L6U.png" rel="nofollow noreferrer">chrome inspect</a></p>
  
  <p><a href="https://i.stack.imgur.com/V8Ldq.png" rel="nofollow noreferrer">the app h5 pic</a></p>