Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created February 28, 2016 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/70b3e1fec252127028ae to your computer and use it in GitHub Desktop.
Save angelovstanton/70b3e1fec252127028ae to your computer and use it in GitHub Desktop.
[TestMethod]
public void AssertButtonEnabledDisabled()
{
this.driver.Navigate().GoToUrl(@"http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_button_disabled");
this.driver.SwitchTo().Frame("iframeResult");
IWebElement button = driver.FindElement(By.XPath("/html/body/button"));
Assert.IsFalse(button.Enabled);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment