Skip to content

Commit 9b20295

Browse files
committed
Poll for accessible driver service, even if process has begun
1 parent 714ca57 commit 9b20295

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dotnet/src/webdriver/DriverService.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ public async Task StartAsync()
239239
{
240240
if (this.driverServiceProcess != null)
241241
{
242+
bool serviceAvailable = await this.WaitForServiceInitializationAsync().ConfigureAwait(false);
243+
if (!serviceAvailable)
244+
{
245+
throw new WebDriverException($"Cannot start the driver service on {this.ServiceUrl}");
246+
}
247+
242248
return;
243249
}
244250

0 commit comments

Comments
 (0)