Example #1
0
        public void Feature_CommandArguments_CommandArguments()
        {
            const string Value = "testing value";

            RunInAllBrowsers(browser => {
                browser.NavigateToUrl(SamplesRouteUrls.FeatureSamples_CommandArguments_CommandArguments);

                var text = browser.Single("[data-ui='value']");
                AssertUI.InnerTextEquals(text, "Nothing here");
                browser.Single("[data-ui='button1'] button").Click();

                OpenQA.Selenium.IAlert alert = null;
                browser.WaitFor(() => {
                    alert = browser.GetAlert();
                }, 2000);

                alert.SendKeys(Value);
                alert.Accept();

                browser.WaitFor(() => {
                    AssertUI.InnerTextEquals(text, Value);
                }, 2000);
            });
        }
Example #2
0
 internal Alert(WebDriver webDriver, OpenQA.Selenium.IAlert alert)
 {
     this.webDriver = webDriver;
     this.alert     = alert;
 }
Example #3
0
 internal Alert(WebDriver webDriver, OpenQA.Selenium.IAlert alert) {
     this.webDriver = webDriver;
     this.alert = alert;
 }
Example #4
0
 public SeleniumAlert(OpenQA.Selenium.IAlert alert, SeleniumBrowser browser)
     : base(browser)
 {
     this.alert = alert;
 }