public UserMethods(ILog log) { debugLog = log; options.ApplicationPath = ConfigurationManager.AppSettings.Get("IntactPath"); driver = new WiniumDriver(ConfigurationManager.AppSettings.Get("DriverPath"), options); driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(double.Parse(ConfigurationManager.AppSettings.Get("DriverPath")))); action = new Actions(driver); m = new WiniumMethods(driver, debugLog); }
public void Start() { DesktopOptions option = new DesktopOptions(); option.ApplicationPath = (@"c:\windows\system32\calc.exe"); var service = WiniumDriverService.CreateDesktopService(@"d:\Work\drivers\"); driver = new WiniumDriver(service, option); driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(35)); }