title: Use Selenium to execute on a manually opened browser window
body: <p>I am converting a IE HTML web scraping script to selenium for the impending death of IE.</p>
  <p>I am struggling to find a comparable piece of code that I have been using for COM controls for IE within the selenium library that will allow me to execute a script on an manually opened browser window - Which in my use case has no work around due to the way the browser is opened.</p>
  <p>Effectively, I run a program that opens a browsers on my behalf and requests a 2FA from my mobile, after which having been rendered allows me to navigate around the web application.</p>
  <p>I have tried this with selenium opening and a sufficient wait time to enter in the 2FA, however it is immediately met with access denied due to bot detection.
  I have explored a range of addarguments to counter this with no avail, including:</p>
  <pre><code>.AddArgument &quot;--no-sandbox&quot;
  .AddArgument &quot;--headless&quot;
  .AddArgument &quot;--disable-plugins-discovery&quot;
  .AddArgument &quot;--disable-extensions&quot;
  .AddArgument &quot;--disable-infobars&quot;
  </code></pre>
  <p>I have also tried adding manual useragents with no success, which has led me to believe that the only way i'll get around this if is Selenium can control the browser that is launched without any of the webdriver items.</p>
  <p>I'd love some assistance on this.</p>