

What is an interface in Java?Īn interface in java is the blueprint of the class. So let’s start with the interface and I assume you are well aware of the class in java. I will start with basic related java topics here so that a novice reader will not get confused. Once you finish reading this article, you will get the answer to all the questions listed above so I would ask you to pay attention here and read this article thoroughly. These are the general questions asked by people. What are the significances of RemoteWebDriver in Selenium?įor more Selenium interview questions click on below link: Why do we only use WebDriver driver = new ChromeDriver()?Ĥ. Can we use ChromeDriver driver = new ChromeDriver()?ģ. Can we use WebDriver driver = new WebDriver()?Ģ. Let’s discuss some of the interview questions generally asked by interviewer related to the above context.ġ. Recommended Readings: Must read changes in Selenium 4 Alpha Release Interview Questions Related to WebDriver and ChromeDriver or FirefoxDriver initializations One thing you should keep in mind that if I am writing WebDriver driver = new ChromeDriver() as the title of this post, then it doesn’t mean that this post is only applicable to ChromeDriver, instead, it is applicable to other driver classes as well, like FirefoxDriver(), SafariDriver(), IEDriver(), etc. If it’s an authentic question then it will be asked everywhere, even in normal conversation among new Selenium enthusiasts and you should be capable enough to answer this. Being a Selenium enthusiast, you must know the logic behind writing WebDriver driver = new ChromeDriver() or new FirefoxDriver() or new IEDriver(), etc. If you have given Selenium interviews, you must have faced the question which signifies the title of this post.
