-
-
Save alecxe/afcf1baf754c3265ee7b 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
describe('The number input test', function () { | |
beforeAll(function () { | |
browser.ignoreSynchronization = true; | |
browser.get('http://www.w3schools.com/html/tryit.asp?filename=tryhtml_input_number'); | |
browser.switchTo().frame("iframeResult"); | |
}); | |
it('should change the input value', function () { | |
var elm = element(by.name("quantity")); | |
elm.sendKeys("10"); | |
elm.clear(); | |
elm.sendKeys("5"); | |
expect(elm.getAttribute("value")).toEqual("5"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment