Exemple #1
0
 public void JsInnerTextTest()
 {
     RunInAllBrowsers(browser =>
     {
         SeleniumTestsConfiguration.DeveloperMode = true;
         browser.NavigateToUrl("JsTestSite.aspx");
         var elm = browser.First("#hiddenElement");
         Assert.IsTrue(string.Equals(elm.GetJsInnerText()?.Trim(), "InnerText",
                                     StringComparison.OrdinalIgnoreCase));
         AssertUI.CheckIfJsPropertyInnerText(elm, c => c == "InnerText");
         AssertUI.CheckIfJsPropertyInnerTextEquals(elm, "InnerText", false);
     });
 }