Skip to content

Commit 6a0b99a

Browse files
committed
Adding ToString override to .NET PauseInteraction
1 parent e72d039 commit 6a0b99a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dotnet/src/webdriver/Interactions/PauseInteraction.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <copyright file="PauseInteraction.cs" company="WebDriver Committers">
1+
// <copyright file="PauseInteraction.cs" company="WebDriver Committers">
22
// Licensed to the Software Freedom Conservancy (SFC) under one
33
// or more contributor license agreements. See the NOTICE file
44
// distributed with this work for additional information
@@ -18,6 +18,7 @@
1818

1919
using System;
2020
using System.Collections.Generic;
21+
using System.Globalization;
2122
using System.Linq;
2223
using System.Text;
2324

@@ -79,5 +80,10 @@ public override bool IsValidFor(InputDeviceKind sourceDeviceKind)
7980
{
8081
return true;
8182
}
83+
84+
public override string ToString()
85+
{
86+
return string.Format(CultureInfo.InvariantCulture, "Pause [duration: {0} ms]", this.duration.TotalMilliseconds);
87+
}
8288
}
8389
}

0 commit comments

Comments
 (0)