title: Conflict in selenium's open Chrome instances c#
body: <p>I have a very simple c# class that creates a chrome instance and executes some js code but for some unknown reasons, when i try to create more then 1 instance of that class the js only gets executed on 1 chrome instance(the last one), all  functions are inside the class,noting is public.
  Heres the code</p>
  <pre><code>    public class Engine
      {
          public Engine()
          {
              var cService = ChromeDriverService.CreateDefaultService();
              cService.HideCommandPromptWindow = true;
              ChromeOptions options = new ChromeOptions();
              driver = new ChromeDriver(cService, options);
              driver.Navigate().GoToUrl(&quot;someurl&quot;);
          }
          public async Task&lt;object&gt; runJs(string js)
          {
          return await Task.Run(() =&gt;
             {
              IJavaScriptExecutor jste = (IJavaScriptExecutor)driver;
              return jste.ExecuteScript(js);
             });
          }
      }
  </code></pre>
  <p>Calling it:</p>
  <pre><code>(new Thread(new ThreadStart(async () =&gt;
          {
              engine = new Engine();
              var jsres = await engine.runJs(&quot;some simple js code&quot;);
              Console.WriteLine(jsres);
              
          })).Start();
      
  </code></pre>