OpenQA.Selenium.ExecutingJavascriptTest.ShouldThrowAnExceptionWhenTheJavascriptIsBad C# (CSharp) Méthode

ShouldThrowAnExceptionWhenTheJavascriptIsBad() private méthode

private ShouldThrowAnExceptionWhenTheJavascriptIsBad ( ) : void
Résultat void
        public void ShouldThrowAnExceptionWhenTheJavascriptIsBad()
        {
            if (!(driver is IJavaScriptExecutor))
                return;

            driver.Url = xhtmlTestPage;
            ExecuteScript("return squiggle();");
        }
ExecutingJavascriptTest