Skip to content

Commit 1bddd65

Browse files
committed
Update error message
1 parent 44eb38c commit 1bddd65

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SeleniumUtils/SeleniumUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public static void WaitUntilUrlIs(this IWebDriver driver, string targetUrl, Time
134134

135135
var isTimeout = TimeSpan.Compare(timer.Elapsed, timeout) > 0;
136136
if (isTimeout)
137-
throw new TimeoutException($"The URL {driverUrl} has not changed to {targetUrl} within the allowed {timeout} milliseconds");
137+
throw new TimeoutException($"The URL '{driverUrl}' has not changed to '{targetUrl}' within the allowed {timeout.TotalSeconds} seconds");
138138

139139
Thread.Sleep(pollInterval);
140140
}
@@ -186,7 +186,7 @@ public static void WaitUntilUrlContains(this IWebDriver driver, string targetUrl
186186

187187
var isTimeout = TimeSpan.Compare(timer.Elapsed, timeout) > 0;
188188
if (isTimeout)
189-
throw new TimeoutException($"The URL {driverUrl} has not changed to {targetUrlPart} within the allowed {timeout} milliseconds");
189+
throw new TimeoutException($"The URL '{driverUrl}' has not changed to contain '{targetUrlPart}' within the allowed {timeout.TotalSeconds} seconds");
190190

191191
Thread.Sleep(pollInterval);
192192
}

SeleniumUtils/SeleniumUtils.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
1515
<Description>A collection of utility methods for Selenium Webdriver</Description>
1616
<NeutralLanguage>en</NeutralLanguage>
17-
<Version>1.3.1</Version>
17+
<Version>1.3.2</Version>
1818
<RootNamespace>Wndrr.Selenium</RootNamespace>
1919
<AssemblyName>Wndrr.Selenium</AssemblyName>
2020
</PropertyGroup>

0 commit comments

Comments
 (0)