public static bool Launch(string url, string Browser) { try { SeleniumDriver.driver = SeleniumDriver.StartDriver(Browser); Utils.wait = new WebDriverWait(Utils.driver, TimeSpan.FromSeconds(Convert.ToInt16(Config.WaitTime))); SeleniumDriver.NavigateTo(url, false); return(true); } catch (Exception ex) { ex.ToString(); return(false); } }
public static bool Launch() { try { SeleniumDriver.driver = SeleniumDriver.StartDriver(BrowserType.IE.ToString()); HelperLibrary.wait = new WebDriverWait(HelperLibrary.driver, TimeSpan.FromSeconds(Convert.ToInt16(Config.WaitTime))); SeleniumDriver.NavigateTo(Config.LPApplicationURL, false); return(true); } catch (Exception ex) { HelperLibrary.log.LogException(ex, ex.StackTrace); return(false); } }