title: Chrome Extension - Devtools - invoke element selector programatically
body: <p>I want to invoke the "Element selector" to be invoked from dev-tools js or background js. I checked the chrome api documentation and could not find a direct .</p>
  
  <p><a href="https://i.stack.imgur.com/BU5M4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BU5M4.png" alt="Chrome Inspector window"></a></p>
  
  <p>I referred to <a href="https://stackoverflow.com/questions/14829804/highlight-node-with-chrome-devtools-extension">this</a> solution. It is launching an inspect session with the supplied argument ex. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>inspect(document.body)</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want to allow user select the element. I want to reuse the element selection facility given by devtools inspect element</p>
  
  <p>Could you please point me to an api or any set of statements by which I can achieve the same?</p>