I am new to Java and currently trying to follow along a "Selenium Automation Framework"
course. Unfortunately, the tutorial is in C#. I got stuck with a piece of code in C# and not able to convert it to Java alternative code. From my understanding,
public static IWebdriver Instance { get; set; }
is a auto property which is not available in Java. Any suggestions, greatly appreciated?
package WordpressFramework;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Driver {
public static IWebdriver Instance { get; set}
public static void Initialize()
{
WebDriver Instance;
Instance=new FirefoxDriver();
Instance.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
}
}