Details of Sample Programs in Webdriver

Details of Sample Programs in Webdriver   In this chapter we are going to work of a sample program in Webdriver. Here, we will be creating a webdriver script that would fetch Mercury Tours website, verify its title Print out the result and close it before the program ends.   The webdriver code for the scenario mentioned above is given below.   package newproject; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; //comment the above line and uncomment below line to use Chrome //import org.openqa.selenium.chrome.ChromeDriver; public class PG1 {    public static void main(String[] args)…

Read More