Just started working with Selenium and I have a query.
I created a method called urlload to load a specific URL, but when I try to read webElements of the webpage loaded in that method from another class, it doesn't seem to work.
Any advice or help would be greatly appreciated.
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();
}
}