private SeleniumLog(IWebDriver webdriver = null, bool overwrite = false, bool debug = false) { ParseXML(); //string name = webdriver.GetType().FullName; if (webdriver != null) { driver = webdriver; } else { driver = null; } //if ((LogFilePath == null) || (LogFilePath == "")) // Prevent log redirected to a new file if filepath has already been declared by previous instance. { } //else if (((LogFilePath != null) || (LogFilePath != "")) && (_FileCreated == false)) if (overwrite == true) { //_LogFilePath = LogFilePath; _LogFilePath = Config.OutputFilePath; MessageSettings = new _MessageSettings(); NewFile(); Thread.Sleep(500); if (overwrite) { Clear(); } _ScreenshotsPath = Config.ScreenshotsFolder; } else { } }
private SeleniumLog(IWebDriver webdriver = null, bool overwrite = false, bool debug = false) { ParseXML(); //string name = webdriver.GetType().FullName; if (webdriver != null) { driver = webdriver; } else { driver = null; } //if ((LogFilePath == null) || (LogFilePath == "")) // Prevent log redirected to a new file if filepath has already been declared by previous instance. { } //else if (((LogFilePath != null) || (LogFilePath != "")) && (_FileCreated == false)) if (overwrite == true) { //_LogFilePath = LogFilePath; _LogFilePath = Config.OutputFilePath; MessageSettings = new _MessageSettings(); NewFile(); Thread.Sleep(500); if (overwrite) Clear(); _ScreenshotsPath = Config.ScreenshotsFolder; } else { } }