title: How to use the <webview> methods in Electron
body: <p>On the Electron <code>&lt;webview&gt;</code> <a href="http://electron.atom.io/docs/v0.27.0/api/web-view-tag/#methods" rel="noreferrer">documentation</a> there is a list of methods that you can use with the object. When I try to run any of the methods, none of them work. When I looked in inpect the properties of the <code>&lt;webview&gt;</code> element in the inspector, it says that its prototype is <code>webview</code>. (<code>__proto__ : webview</code>)</p>
  
  <p>It is in that prototype where all of the methods are stored. So my element should basically just inherit those methods from its prototype when I use those methods (e.g. <code>myWebview.openDevTools()</code>).</p>
  
  <p>However! when i use <code>Object.getProptotypeOf(myWebview)</code> I get <code>HTMLElement</code>, NOT <code>webview</code> like it shows in the inspector.</p>
  
  <p>Here is an example of my code:  </p>
  
  <pre><code>&lt;webview id="myWebview" src="path/to.file"&gt;&lt;/webview&gt;
  
  &lt;script&gt; 
    var myWebview = document.getElementById('myWebview');
    console.log("myWebview: ",myWebview);
    console.log("prototype: ",Object.getPrototypeOf(myWebview)); //=&gt; HTMLElement
    myWebview.openDevTools();
  &lt;/script&gt;
  </code></pre>