diff --git a/NSelene/NSelene.csproj b/NSelene/NSelene.csproj index 40a4369..a5530e8 100644 --- a/NSelene/NSelene.csproj +++ b/NSelene/NSelene.csproj @@ -2,6 +2,7 @@ netstandard2.0 + 11.0 NSelene 1.0.0-alpha14 yashaka diff --git a/NSelene/SeleneElement.cs b/NSelene/SeleneElement.cs index bf44ff1..43ad7d8 100644 --- a/NSelene/SeleneElement.cs +++ b/NSelene/SeleneElement.cs @@ -190,7 +190,7 @@ private IWebElement ActualNotOverlappedWebElement { ? $": {webElement.GetAttribute("outerHTML")}" : "" ) // TODO: ... while not applied here? - + $"\n\tis overlapped by: {cover.GetAttribute("outerHTML")}" + + $"\n is overlapped by: {cover.GetAttribute("outerHTML")}" ); } return webElement; diff --git a/NSelene/Wait.cs b/NSelene/Wait.cs index 30f77f2..edd2e3f 100644 --- a/NSelene/Wait.cs +++ b/NSelene/Wait.cs @@ -218,12 +218,12 @@ private _Result _For(_Computation computation) // TODO: should we ac // TODO: should we move this error formatting to the Error class definition? var describedLambda = this.describeComputation(computation.ToString()); var failure = new TimeoutException( - "\n" - + $"Timed out after {this.timeout}s, while waiting for:\n" - + $"\t{this.entity}.{describedLambda}\n" // TODO: handle trailing spaces - + "Reason:\n" - + $"\t{error.Message}" // TODO: error.Message or error? - , + $$""" + Timed out after {{this.timeout}}s, while waiting for: + {{this.entity}}.{{describedLambda}} + Reason: + {{error.Message}} + """, error ); diff --git a/NSeleneTests/Integration/SharedDriver/ErrorMessages_Specs.cs b/NSeleneTests/Integration/SharedDriver/ErrorMessages_Specs.cs index 95769e4..96c5ad1 100644 --- a/NSeleneTests/Integration/SharedDriver/ErrorMessages_Specs.cs +++ b/NSeleneTests/Integration/SharedDriver/ErrorMessages_Specs.cs @@ -38,11 +38,11 @@ public void SeleneElement_Click_Failure_OnHiddenElement() catch (TimeoutException error) { - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(a).ActualWebElement.Click() + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(a).ActualWebElement.Click() Reason: - element not interactable + element not interactable """.Trim() )); } @@ -61,11 +61,11 @@ public void SeleneElement_CustomizedToJsClick_Click_Failure_OnAbsentInDomElement S("a").With(clickByJs: true).Click(); Assert.Fail("should fail on timeout before can be clicked"); } catch (TimeoutException error) { - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(a).JsClick(centerXOffset: 0, centerYOffset: 0) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(a).JsClick(centerXOffset: 0, centerYOffset: 0) Reason: - no such element: Unable to locate element: {"method":"css selector","selector":"a"} + no such element: Unable to locate element: {"method":"css selector","selector":"a"} """.Trim() )); } @@ -91,11 +91,11 @@ public void SeleneElement_JsClick_Failure_OnAbsentInDomElement() S("a").JsClick(); Assert.Fail("should fail before can be js-clicked"); } catch (TimeoutException error) { - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(a).JsClick(centerXOffset: 0, centerYOffset: 0) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(a).JsClick(centerXOffset: 0, centerYOffset: 0) Reason: - no such element: Unable to locate element: {"method":"css selector","selector":"a"} + no such element: Unable to locate element: {"method":"css selector","selector":"a"} """.Trim() )); } diff --git a/NSeleneTests/Integration/SharedDriver/OldConditionsSpecs/SeleneBrowser_Should_Specs.cs b/NSeleneTests/Integration/SharedDriver/OldConditionsSpecs/SeleneBrowser_Should_Specs.cs index ac01f9a..731aef8 100644 --- a/NSeleneTests/Integration/SharedDriver/OldConditionsSpecs/SeleneBrowser_Should_Specs.cs +++ b/NSeleneTests/Integration/SharedDriver/OldConditionsSpecs/SeleneBrowser_Should_Specs.cs @@ -107,9 +107,9 @@ public void SeleneWaitTo_HaveJsReturned_IsRenderedInError_OnAbsentElementTimeout Assert.Greater(afterCall, beforeCall.AddSeconds(0.25)); var accuracyDelta = 0.2; Assert.Less(afterCall, beforeCall.AddSeconds(0.25 + 0.1 + accuracyDelta)); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - OpenQA.Selenium.Chrome.ChromeDriver.Should(JSReturnedTrue) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + OpenQA.Selenium.Chrome.ChromeDriver.Should(JSReturnedTrue) """.Trim() )); } @@ -165,9 +165,9 @@ public void SeleneWaitTo_HaveNoJsReturned_IsRenderedInError_OnInDomElementsTimeo var accuracyDelta = 0.2; Assert.Less(afterCall, beforeCall.AddSeconds(0.25 + 0.1 + accuracyDelta)); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - OpenQA.Selenium.Chrome.ChromeDriver.Should(Not.JSReturnedTrue) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + OpenQA.Selenium.Chrome.ChromeDriver.Should(Not.JSReturnedTrue) """.Trim() )); diff --git a/NSeleneTests/Integration/SharedDriver/OldConditionsSpecs/SeleneCollection_Should_Specs.cs b/NSeleneTests/Integration/SharedDriver/OldConditionsSpecs/SeleneCollection_Should_Specs.cs index 80f6b62..401a5f7 100644 --- a/NSeleneTests/Integration/SharedDriver/OldConditionsSpecs/SeleneCollection_Should_Specs.cs +++ b/NSeleneTests/Integration/SharedDriver/OldConditionsSpecs/SeleneCollection_Should_Specs.cs @@ -90,11 +90,11 @@ public void Should_HaveCount_IsRenderedInError_OnAbsentElementTimeoutFailure() var lines = error.Message.Split("\n").Select( item => item.Trim() ).ToList(); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.All(p).Should(count = 2) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.All(p).Should(count = 2) Reason: - actual: count = 0 + actual: count = 0 """.Trim() )); } @@ -125,11 +125,11 @@ public void Should_HaveNoCount_IsRenderedInError_OnInDomElementsTimeoutFailure() var accuracyDelta = 0.2; Assert.Less(afterCall, beforeCall.AddSeconds(0.25 + 0.1 + accuracyDelta)); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.All(p).Should(Not.count = 2) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.All(p).Should(Not.count = 2) Reason: - condition not matched + condition not matched """.Trim() )); } diff --git a/NSeleneTests/Integration/SharedDriver/OldConditionsSpecs/SeleneElement_Should_Specs.cs b/NSeleneTests/Integration/SharedDriver/OldConditionsSpecs/SeleneElement_Should_Specs.cs index 9694c5a..fdb4673 100644 --- a/NSeleneTests/Integration/SharedDriver/OldConditionsSpecs/SeleneElement_Should_Specs.cs +++ b/NSeleneTests/Integration/SharedDriver/OldConditionsSpecs/SeleneElement_Should_Specs.cs @@ -91,11 +91,11 @@ public void Should_HaveValue_IsRenderedInError_OnAbsentElementTimeoutFailure() var accuracyDelta = 0.2; Assert.Less(afterCall, beforeCall.AddSeconds(0.25 + 0.1 + accuracyDelta)); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(input).Should(Have.Attribute(value='initial')) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(input).Should(Have.Attribute(value='initial')) Reason: - no such element: Unable to locate element: {"method":"css selector","selector":"input"} + no such element: Unable to locate element: {"method":"css selector","selector":"input"} """.Trim() )); } @@ -125,11 +125,11 @@ public void Should_HaveNoValue_IsRenderedInError_OnInDomElementTimeoutFailure() var accuracyDelta = 0.2; Assert.Less(afterCall, beforeCall.AddSeconds(0.25 + 0.1 + accuracyDelta)); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(input).Should(Not.Have.Attribute(value='initial')) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(input).Should(Not.Have.Attribute(value='initial')) Reason: - condition not matched + condition not matched """.Trim() )); } @@ -223,11 +223,11 @@ public void Should_HaveText_IsRenderedInError_OnHiddenElementFailure() item => item.Trim() ).ToList(); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(label).Should(Have.TextContaining(«initial»)) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(label).Should(Have.TextContaining(«initial»)) Reason: - Actual text: «» + Actual text: «» Actual webelement: """.Trim() )); @@ -359,11 +359,11 @@ public void Should_BeVisible_IsRenderedInError_OnHiddenInDomElementFailure() var accuracyDelta = 0.2; Assert.Less(afterCall, beforeCall.AddSeconds(0.25 + 0.1 + accuracyDelta)); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(label).Should(Visible) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(label).Should(Visible) Reason: - actual: False + actual: False """.Trim() )); @@ -391,11 +391,11 @@ public void Should_BeNotVisible_IsRenderedInError_OnVisibleElementFailure() catch (TimeoutException error) { - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(label).Should(Not.Visible) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(label).Should(Not.Visible) Reason: - condition not matched + condition not matched """.Trim() )); @@ -425,11 +425,11 @@ public void Should_BeVisible_IsRenderedInError_OnAbsentInDomElementFailure() var accuracyDelta = 0.2; Assert.Less(afterCall, beforeCall.AddSeconds(0.25 + 0.1 + accuracyDelta)); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(label).Should(Visible) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(label).Should(Visible) Reason: - no such element: Unable to locate element: {"method":"css selector","selector":"label"} + no such element: Unable to locate element: {"method":"css selector","selector":"label"} """.Trim() )); } @@ -453,11 +453,11 @@ public void Should_HaveText_IsRenderedInError_OnElementDifferentTextFailure() catch (TimeoutException error) { - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(label).Should(Have.TextContaining(«new»)) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(label).Should(Have.TextContaining(«new»)) Reason: - Actual text: «initial» + Actual text: «initial» Actual webelement: """.Trim() )); diff --git a/NSeleneTests/Integration/SharedDriver/SeleneBrowser_Should_Specs.cs b/NSeleneTests/Integration/SharedDriver/SeleneBrowser_Should_Specs.cs index 38f567b..7e0b087 100644 --- a/NSeleneTests/Integration/SharedDriver/SeleneBrowser_Should_Specs.cs +++ b/NSeleneTests/Integration/SharedDriver/SeleneBrowser_Should_Specs.cs @@ -108,9 +108,9 @@ public void SeleneWaitTo_HaveJsReturned_IsRenderedInError_OnAbsentElementTimeout var accuracyDelta = 0.2; Assert.Less(afterCall, beforeCall.AddSeconds(0.25 + 0.1 + accuracyDelta)); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - OpenQA.Selenium.Chrome.ChromeDriver.Should(JSReturnedTrue) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + OpenQA.Selenium.Chrome.ChromeDriver.Should(JSReturnedTrue) """.Trim() )); } @@ -166,9 +166,9 @@ public void SeleneWaitTo_HaveNoJsReturned_IsRenderedInError_OnInDomElementsTimeo var accuracyDelta = 0.2; Assert.Less(afterCall, beforeCall.AddSeconds(0.25 + 0.1 + accuracyDelta)); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - OpenQA.Selenium.Chrome.ChromeDriver.Should(Not.JSReturnedTrue) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + OpenQA.Selenium.Chrome.ChromeDriver.Should(Not.JSReturnedTrue) """.Trim() )); } diff --git a/NSeleneTests/Integration/SharedDriver/SeleneCollection_Should_Specs.cs b/NSeleneTests/Integration/SharedDriver/SeleneCollection_Should_Specs.cs index 4f3ecb8..9ea2a70 100644 --- a/NSeleneTests/Integration/SharedDriver/SeleneCollection_Should_Specs.cs +++ b/NSeleneTests/Integration/SharedDriver/SeleneCollection_Should_Specs.cs @@ -86,11 +86,11 @@ public void Should_HaveCount_IsRenderedInError_OnAbsentElementTimeoutFailure() var accuracyDelta = 0.2; Assert.Less(afterCall, beforeCall.AddSeconds(0.25 + 0.1 + accuracyDelta)); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.All(p).Should(Have.Count = 2) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.All(p).Should(Have.Count = 2) Reason: - actual: Have.Count = 0 + actual: Have.Count = 0 """.Trim() )); } @@ -121,11 +121,11 @@ public void Should_HaveNoCount_IsRenderedInError_OnInDomElementsTimeoutFailure() var accuracyDelta = 0.2; Assert.Less(afterCall, beforeCall.AddSeconds(0.25 + 0.1 + accuracyDelta)); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.All(p).Should(Not.Have.Count = 2) + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.All(p).Should(Not.Have.Count = 2) Reason: - condition not matched + condition not matched """.Trim() )); } diff --git a/NSeleneTests/Integration/SharedDriver/SeleneElement_Clear_Specs.cs b/NSeleneTests/Integration/SharedDriver/SeleneElement_Clear_Specs.cs index 9313a2d..eb24a48 100644 --- a/NSeleneTests/Integration/SharedDriver/SeleneElement_Clear_Specs.cs +++ b/NSeleneTests/Integration/SharedDriver/SeleneElement_Clear_Specs.cs @@ -61,11 +61,11 @@ public void Clear_IsRenderedInError_OnAbsentElementFailure() item => item.Trim() ).ToList(); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(input).ActualWebElement.Clear() + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(input).ActualWebElement.Clear() Reason: - no such element: Unable to locate element: {"method":"css selector","selector":"input"} + no such element: Unable to locate element: {"method":"css selector","selector":"input"} """.Trim() )); } @@ -85,11 +85,11 @@ public void Clear_IsRenderedInError_OnAbsentElementFailure_WhenCustomizedToWaitF catch (TimeoutException error) { - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(input).ActualNotOverlappedWebElement.Clear() + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(input).ActualNotOverlappedWebElement.Clear() Reason: - no such element: Unable to locate element: {"method":"css selector","selector":"input"} + no such element: Unable to locate element: {"method":"css selector","selector":"input"} """.Trim() )); } @@ -173,11 +173,11 @@ public void Clear_IsRenderedInError_OnHiddenElementFailure() catch (TimeoutException error) { - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(input).ActualWebElement.Clear() + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(input).ActualWebElement.Clear() Reason: - element not interactable + element not interactable """.Trim() )); @@ -212,11 +212,11 @@ public void Clear_IsRenderedInError_OnHiddenElementFailure_WhenCustomizedToWaitF catch (TimeoutException error) { - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(input).ActualNotOverlappedWebElement.Clear() + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(input).ActualNotOverlappedWebElement.Clear() Reason: - javascript error: element is not visible + javascript error: element is not visible """.Trim() )); @@ -372,12 +372,12 @@ public void Clear_IsRenderedInError_OnOverlappedWithOverlayFailure_WhenCustomize catch (TimeoutException error) { - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(input).ActualNotOverlappedWebElement.Clear() + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(input).ActualNotOverlappedWebElement.Clear() Reason: - Element: - is overlapped by:
+ is overlapped by:
... is not clickable at point + element click intercepted: Element ... is not clickable at point """.Trim() )); } diff --git a/NSeleneTests/Integration/SharedDriver/SeleneElement_DoubleClick_Specs.cs b/NSeleneTests/Integration/SharedDriver/SeleneElement_DoubleClick_Specs.cs index 6ea7ba8..e1b3fc4 100644 --- a/NSeleneTests/Integration/SharedDriver/SeleneElement_DoubleClick_Specs.cs +++ b/NSeleneTests/Integration/SharedDriver/SeleneElement_DoubleClick_Specs.cs @@ -95,11 +95,11 @@ public void DoubleClick_IsRenderedInError_OnHiddenFailure() Assert.Greater(afterCall, beforeCall.AddSeconds(0.25)); Assert.Less(afterCall, beforeCall.AddSeconds(1.0)); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(span).Actions.DoubleClick(self.ActualWebElement).Perform() + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(span).Actions.DoubleClick(self.ActualWebElement).Perform() Reason: - javascript error: {"status":60,"value":"[object HTMLSpanElement] has no size and location"} + javascript error: {"status":60,"value":"[object HTMLSpanElement] has no size and location"} """.Trim() )); @@ -136,11 +136,11 @@ public void DoubleClick_IsRenderedInError_OnHiddenFailure_WhenCustomizedToWaitFo Assert.Greater(afterCall, beforeCall.AddSeconds(0.25)); Assert.Less(afterCall, beforeCall.AddSeconds(1.0)); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(span).Actions.DoubleClick(self.ActualNotOverlappedWebElement).Perform() + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(span).Actions.DoubleClick(self.ActualNotOverlappedWebElement).Perform() Reason: - javascript error: element is not visible + javascript error: element is not visible """.Trim() )); @@ -289,12 +289,12 @@ public void DoubleClick_IsRenderedInError_OnOverlappedWithOverlayFailure_IfCusto StringAssert.DoesNotContain("second", Configuration.Driver.Url); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(span).Actions.DoubleClick(self.ActualNotOverlappedWebElement).Perform() + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(span).Actions.DoubleClick(self.ActualNotOverlappedWebElement).Perform() Reason: - Element: to h2 - is overlapped by:
to h2 + is overlapped by:
go to Heading 2

@@ -270,11 +270,11 @@ public void FailOnTimeout_DuringWaitingForVisibilityOfChildOnActionsLikeClick() Assert.IsFalse(Configuration.Driver.Url.Contains("second")); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(p).Element(a).ActualWebElement.Click() + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(p).Element(a).ActualWebElement.Click() Reason: - element not interactable + element not interactable """.Trim() )); } diff --git a/NSeleneTests/Integration/SharedDriver/SeleneElement_Hover_Specs.cs b/NSeleneTests/Integration/SharedDriver/SeleneElement_Hover_Specs.cs index 5394ad6..7b2a676 100644 --- a/NSeleneTests/Integration/SharedDriver/SeleneElement_Hover_Specs.cs +++ b/NSeleneTests/Integration/SharedDriver/SeleneElement_Hover_Specs.cs @@ -95,11 +95,11 @@ public void Hover_IsRenderedInError_OnHiddenFailure() Assert.Greater(afterCall, beforeCall.AddSeconds(0.25)); Assert.Less(afterCall, beforeCall.AddSeconds(1.0)); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(span).Actions.MoveToElement(self.ActualWebElement).Perform() + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(span).Actions.MoveToElement(self.ActualWebElement).Perform() Reason: - javascript error: {"status":60,"value":"[object HTMLSpanElement] has no size and location"} + javascript error: {"status":60,"value":"[object HTMLSpanElement] has no size and location"} """.Trim() )); @@ -136,11 +136,11 @@ public void Hover_IsRenderedInError_OnHiddenFailure_WhenCustomizedToWaitForNoOve Assert.Greater(afterCall, beforeCall.AddSeconds(0.25)); Assert.Less(afterCall, beforeCall.AddSeconds(1.0)); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(span).Actions.MoveToElement(self.ActualNotOverlappedWebElement).Perform() + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(span).Actions.MoveToElement(self.ActualNotOverlappedWebElement).Perform() Reason: - javascript error: element is not visible + javascript error: element is not visible """.Trim() )); @@ -289,12 +289,12 @@ public void Hover_IsRenderedInError_OnOverlappedWithOverlayFailure_IfCustomizedT StringAssert.DoesNotContain("second", Configuration.Driver.Url); - Assert.That(error.Message.Trim(), Does.Contain(""" - Timed out after 0.25s, while waiting for: - Browser.Element(span).Actions.MoveToElement(self.ActualNotOverlappedWebElement).Perform() + Assert.That(error.Message.Trim(), Does.Contain($$""" + Timed out after {{0.25}}s, while waiting for: + Browser.Element(span).Actions.MoveToElement(self.ActualNotOverlappedWebElement).Perform() Reason: - Element: to h2 - is overlapped by:
to h2 + is overlapped by:
- is overlapped by:
+ is overlapped by: