title: How do i reference a method from another class in C#?
body: <p>So I reference the method <code>" Driver "</code> from one class to another, </p>
  
  <p>Example of code:</p>
  
  <pre><code>class Program {
  
      public static void Run() {
          IWebDriver driver = new ChromeDriver;
      }
  
      public static void Do() {
          driver.FindElement(By.Name("search"));
      }
  }
  </code></pre>
  
  <p>but within <code>Do()</code> driver does not exist in the current context</p>
  
  <p>I want to do commands in regards to driver in separate classes, so that I can call them individually within <code>main()</code></p>