Tuesday, January 7, 2014

Instantiate Specific Browser Or Client

Instantiate Specific Browser Or Client


Firefox Driver

  1. WebDriver driver = new FirefoxDriver();  
Chrome Driver

  1. WebDriver driver = new ChromeDriver();  
Safari Driver

  1. WebDriver driver = new SafariDriver();  
Internet Explorer Driver


WebDriver driver = new InternetExplorerDriver();

Android Driver

  1. WebDriver driver = new AndroidDriver()  
iPhone Driver

  1. WebDriver driver = new IPhoneDriver();  
HTML Unit

  1. WebDriver driver = new HtmlUnitDriver()  

No comments:

Post a Comment