File tree Expand file tree Collapse file tree 3 files changed +12
-16
lines changed Expand file tree Collapse file tree 3 files changed +12
-16
lines changed Original file line number Diff line number Diff line change 6
6
Nightly. To use this feature, set the EnableDevToolsProtocol property of
7
7
FirefoxOptions to true.
8
8
* Fixed network interception for use with browsers that support CDP.
9
+ * Made DriverService.InitializationTimeout a public settable property. Fixes
10
+ issue #9150.
9
11
10
12
v4.0.0b1
11
13
========
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ public abstract class DriverService : ICommandServer
40
40
private bool hideCommandPromptWindow ;
41
41
private bool isDisposed ;
42
42
private Process driverServiceProcess ;
43
+ private TimeSpan initializationTimeout = TimeSpan . FromSeconds ( 20 ) ;
43
44
44
45
/// <summary>
45
46
/// Initializes a new instance of the <see cref="DriverService"/> class.
@@ -166,6 +167,15 @@ public int ProcessId
166
167
}
167
168
}
168
169
170
+ /// <summary>
171
+ /// Gets or sets a value indicating the time to wait for an initial connection before timing out.
172
+ /// </summary>
173
+ public TimeSpan InitializationTimeout
174
+ {
175
+ get { return this . initializationTimeout ; }
176
+ set { this . initializationTimeout = value ; }
177
+ }
178
+
169
179
/// <summary>
170
180
/// Gets the executable file name of the driver service.
171
181
/// </summary>
@@ -182,14 +192,6 @@ protected virtual string CommandLineArguments
182
192
get { return string . Format ( CultureInfo . InvariantCulture , "--port={0}" , this . driverServicePort ) ; }
183
193
}
184
194
185
- /// <summary>
186
- /// Gets a value indicating the time to wait for an initial connection before timing out.
187
- /// </summary>
188
- protected virtual TimeSpan InitializationTimeout
189
- {
190
- get { return TimeSpan . FromSeconds ( 20 ) ; }
191
- }
192
-
193
195
/// <summary>
194
196
/// Gets a value indicating the time to wait for the service to terminate before forcing it to terminate.
195
197
/// </summary>
Original file line number Diff line number Diff line change @@ -124,14 +124,6 @@ public FirefoxDriverLogLevel LogLevel
124
124
set { this . loggingLevel = value ; }
125
125
}
126
126
127
- /// <summary>
128
- /// Gets a value indicating the time to wait for an initial connection before timing out.
129
- /// </summary>
130
- protected override TimeSpan InitializationTimeout
131
- {
132
- get { return TimeSpan . FromSeconds ( 2 ) ; }
133
- }
134
-
135
127
/// <summary>
136
128
/// Gets a value indicating the time to wait for the service to terminate before forcing it to terminate.
137
129
/// </summary>
You can’t perform that action at this time.
0 commit comments