Selenium driver and DataProvider classes
The following code is for the CreateDriver.java
and JSONDataProvider.java
classes:
CreateDriver.java
The following code is for the CreateDriver.java
class:
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerOptions;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import java.io.FileInputStream;
import java.util.*;
import java.util.concurrent.TimeUnit;
/**
* @author Carl Cocchiaro
*
* Selenium Driver Class
*
*/
public class CreateDriver {
// local variables
private static CreateDriver instance = null;
private static final int IMPLICIT_TIMEOUT = 0...