public void CheckAttributeTest() { RunInAllBrowsers(browser => { browser.NavigateToUrl(); AssertUI.CheckAttribute(browser.First("#submit-button"), "type", "submit"); }); }
public void FileDialogTest() { RunInAllBrowsers(browser => { browser.NavigateToUrl("FileDialog.aspx"); var tempFile = Path.GetTempFileName(); File.WriteAllText(tempFile, "test content"); browser.FileUploadDialogSelect(browser.First("input[type=file]"), tempFile); AssertUI.CheckAttribute(browser.First("input[type=file]"), "value", s => !string.IsNullOrWhiteSpace(s)); File.Delete(tempFile); }); }