title: Access Selenium ChromeDriver from another project in the same solution C# VS
body: <p>I have a solution, there are two projects in it. First one is a console application where the instance of ChromeDriver is created and the second one a WinForm application. I need to get an access from the WinForm application to the created instance of the ChromeDriver.</p>
  
  <p>I've created the code which works as I expect except the button click opens another window of Chrome browser which I don't need. </p>
  
  <p>How can I access the existing chrome driver without creating another instance? </p>
  
  <p>First project: </p>
  
  <pre><code>public static OpenQA.Selenium.Chrome.ChromeDriver ChromeDriver = new ChromeDriver(@"D:\Программинг\с\new_shit\TFR\TFR_cons\bin\Debug");
  public static IJavaScriptExecutor js = (IJavaScriptExecutor)ChromeDriver; // Make JS instance for JS execution
  </code></pre>
  
  <p>Second project: </p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e) // Add bought
  {
      int MessagesOnThePage = TFR_cons.Program.ChromeDriver.FindElementsByClassName("GLS-JUXDKAD").Count;
      MessageBox.Show("Elements found: " + MessagesOnThePage);
  }
  </code></pre>