@@ -55,19 +55,18 @@ private void PopulateOptionsTypes()
5555
5656 public event EventHandler < DriverStartingEventArgs > DriverStarting ;
5757
58- public IWebDriver CreateDriver ( Type driverType , bool logging = false )
58+ public IWebDriver CreateDriver ( Type driverType )
5959 {
60- return CreateDriverWithOptions ( driverType , null , logging ) ;
60+ return CreateDriverWithOptions ( driverType , null ) ;
6161 }
6262
63- public IWebDriver CreateDriverWithOptions ( Type driverType , DriverOptions driverOptions , bool logging = false )
63+ public IWebDriver CreateDriverWithOptions ( Type driverType , DriverOptions driverOptions )
6464 {
6565 Console . WriteLine ( $ "Creating new driver of { driverType } type...") ;
6666
6767 Browser browser = Browser . All ;
6868 DriverService service = null ;
6969 DriverOptions options = null ;
70- bool enableLogging = logging ;
7170
7271 List < Type > constructorArgTypeList = new List < Type > ( ) ;
7372 IWebDriver driver = null ;
@@ -84,10 +83,6 @@ public IWebDriver CreateDriverWithOptions(Type driverType, DriverOptions driverO
8483 {
8584 ( ( ChromeOptions ) options ) . BinaryLocation = this . browserBinaryLocation ;
8685 }
87- if ( enableLogging )
88- {
89- ( ( ChromiumDriverService ) service ) . EnableVerboseLogging = true ;
90- }
9186 }
9287 else if ( typeof ( EdgeDriver ) . IsAssignableFrom ( driverType ) )
9388 {
@@ -102,20 +97,12 @@ public IWebDriver CreateDriverWithOptions(Type driverType, DriverOptions driverO
10297 {
10398 ( ( EdgeOptions ) options ) . BinaryLocation = this . browserBinaryLocation ;
10499 }
105- if ( enableLogging )
106- {
107- ( ( ChromiumDriverService ) service ) . EnableVerboseLogging = true ;
108- }
109100 }
110101 else if ( typeof ( InternetExplorerDriver ) . IsAssignableFrom ( driverType ) )
111102 {
112103 browser = Browser . IE ;
113104 options = GetDriverOptions < InternetExplorerOptions > ( driverType , driverOptions ) ;
114105 service = InternetExplorerDriverService . CreateDefaultService ( ) ;
115- if ( enableLogging )
116- {
117- ( ( InternetExplorerDriverService ) service ) . LoggingLevel = InternetExplorerDriverLogLevel . Trace ;
118- }
119106 }
120107 else if ( typeof ( FirefoxDriver ) . IsAssignableFrom ( driverType ) )
121108 {
@@ -126,10 +113,6 @@ public IWebDriver CreateDriverWithOptions(Type driverType, DriverOptions driverO
126113 {
127114 ( ( FirefoxOptions ) options ) . BinaryLocation = this . browserBinaryLocation ;
128115 }
129- if ( enableLogging )
130- {
131- ( ( FirefoxDriverService ) service ) . LogLevel = FirefoxDriverLogLevel . Trace ;
132- }
133116 }
134117 else if ( typeof ( SafariDriver ) . IsAssignableFrom ( driverType ) )
135118 {
0 commit comments