Created
February 28, 2016 19:10
-
-
Save angelovstanton/70b3e1fec252127028ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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