/// <summary> /// Creates a new instance of this class /// </summary> /// <param name="seleniumServer">Instance of the SeleniumServer to use</param> /// <returns>Instance of SeleniumSupport class</returns> /// <exception cref="ArgumentNullException">Exception thrown if the selenium server is not provided</exception> public static SeleniumSupport Create(SeleniumServer seleniumServer) { if (seleniumServer == null) { throw new ArgumentNullException("seleniumServer"); } if (Instance == null || Instance._disposed) { Instance = new SeleniumSupport(seleniumServer); } return(Instance); }
/// <summary> /// Creates a new instance of this class /// </summary> /// <param name="seleniumServer">Instance of the SeleniumServer to use</param> /// <returns>Instance of SeleniumSupport class</returns> /// <exception cref="ArgumentNullException">Exception thrown if the selenium server is not provided</exception> public static SeleniumSupport Create(SeleniumServer seleniumServer) { if(seleniumServer == null) { throw new ArgumentNullException("seleniumServer"); } if(Instance == null || Instance._disposed) { Instance = new SeleniumSupport(seleniumServer); } return Instance; }