Skip to content

Commit 20cb7ef

Browse files
committed
Remove Console.WriteLine
1 parent 5565e0e commit 20cb7ef

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

dotnet/test/common/Environment/DriverFactory.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,12 @@ public IWebDriver CreateDriver(DriverService service, Type driverType)
9696

9797
public IWebDriver CreateDriverWithOptions(DriverService service, Type driverType, DriverOptions driverOptions)
9898
{
99-
Console.WriteLine($"Creating new driver of {driverType} type...");
100-
101-
Browser browser = Browser.All;
102-
10399
DriverOptions options = null;
104100

105101
List<Type> constructorArgTypeList = new List<Type>();
106102
IWebDriver driver = null;
107103
if (typeof(ChromeDriver).IsAssignableFrom(driverType))
108104
{
109-
browser = Browser.Chrome;
110105
options = GetDriverOptions<ChromeOptions>(driverType, driverOptions);
111106

112107
var chromeOptions = (ChromeOptions)options;
@@ -119,7 +114,6 @@ public IWebDriver CreateDriverWithOptions(DriverService service, Type driverType
119114
}
120115
else if (typeof(EdgeDriver).IsAssignableFrom(driverType))
121116
{
122-
browser = Browser.Edge;
123117
options = GetDriverOptions<EdgeOptions>(driverType, driverOptions);
124118

125119
var edgeOptions = (EdgeOptions)options;
@@ -132,12 +126,10 @@ public IWebDriver CreateDriverWithOptions(DriverService service, Type driverType
132126
}
133127
else if (typeof(InternetExplorerDriver).IsAssignableFrom(driverType))
134128
{
135-
browser = Browser.IE;
136129
options = GetDriverOptions<InternetExplorerOptions>(driverType, driverOptions);
137130
}
138131
else if (typeof(FirefoxDriver).IsAssignableFrom(driverType))
139132
{
140-
browser = Browser.Firefox;
141133
options = GetDriverOptions<FirefoxOptions>(driverType, driverOptions);
142134
if (!string.IsNullOrEmpty(this.browserBinaryLocation))
143135
{
@@ -146,7 +138,6 @@ public IWebDriver CreateDriverWithOptions(DriverService service, Type driverType
146138
}
147139
else if (typeof(SafariDriver).IsAssignableFrom(driverType))
148140
{
149-
browser = Browser.Safari;
150141
options = GetDriverOptions<SafariOptions>(driverType, driverOptions);
151142
}
152143

0 commit comments

Comments
 (0)