title: How do I pass driver information from one method to other
body: <p>I am new to selenium.<br>
  Please help with my query.
  I have one method urlload in which I am loading a particular URL.<br>
  Suppose I am creating another method in same class or another class, I am unable to read webElements of webpage loaded in urlload method.<br>
  Please help.</p>
  
  <pre><code>public class loading {
      public static void urlload() {
          WebDriver driver = new ChromeDriver(Options);
          String baseurl = "http://www.google.com/";
          System.out.println(baseurl);
          driver.get(baseurl);
          driver.manage().window().maximize();
      }
  }</code></pre>