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); }); }
internal Alert(WebDriver webDriver, OpenQA.Selenium.IAlert alert) { this.webDriver = webDriver; this.alert = alert; }
public SeleniumAlert(OpenQA.Selenium.IAlert alert, SeleniumBrowser browser) : base(browser) { this.alert = alert; }