diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index d6548ea6..01e3c2c3 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -239,6 +239,8 @@ Fix issue with encoding on the command line [Issue #252](https://github.com/left #### 0.9.50 - March 27 2016 Fix issue with multiple dropdowns with same values [Issue #253](https://github.com/lefthandedgoat/canopy/issue/253) - #### 0.9.51 - April 5 2016 -Add onPass and OnFail hooks, thanks Tony! [Issue #254](https://github.com/lefthandedgoat/canopy/issue/254) \ No newline at end of file +Add onPass and OnFail hooks, thanks Tony! [Issue #254](https://github.com/lefthandedgoat/canopy/issue/254) + +#### 0.9.52 - April 5 2016 +make safelyGetUrl safery, thanks Tony! [Issue #255](https://github.com/lefthandedgoat/canopy/issue/255) \ No newline at end of file diff --git a/src/canopy/AssemblyInfo.fs b/src/canopy/AssemblyInfo.fs index 8277e7a1..84cbe8e9 100644 --- a/src/canopy/AssemblyInfo.fs +++ b/src/canopy/AssemblyInfo.fs @@ -4,9 +4,9 @@ open System.Reflection [] [] [] -[] -[] +[] +[] do () module internal AssemblyVersionInformation = - let [] Version = "0.9.51" + let [] Version = "0.9.52" diff --git a/src/canopy/runner.fs b/src/canopy/runner.fs index dd187c8f..86ea7c25 100644 --- a/src/canopy/runner.fs +++ b/src/canopy/runner.fs @@ -97,7 +97,9 @@ let fail (ex : Exception) (test : Test) (suite : suite) autoFail url = reporter.fail ex test.Id Array.empty url suite.OnFail() -let safelyGetUrl () = if browser = null then "no browser = no url" else browser.Url +let safelyGetUrl () = + if browser = null then "no browser = no url" + else try browser.Url with _ -> "failed to get url" let failSuite (ex: Exception) (suite : suite) = let reportFailedTest (ex: Exception) (test : Test) =