Package org.qagile.steps

Source Code of org.qagile.steps.PropertyWebdriver

package org.qagile.steps;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;

public class PropertyWebdriver {
  public enum browserType{FIREFOX, IE}
  public static WebDriver getDriver() {
    browserType browser = browserType.valueOf(System.getProperty("browser", "FIREFOX"));
    switch (browser) {
    case FIREFOX:
      return new FirefoxDriver();
    case IE:
      return new InternetExplorerDriver();
    default:
      break;
    }
    return null;
  }
}
TOP

Related Classes of org.qagile.steps.PropertyWebdriver

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.