Skip to content

Instantly share code, notes, and snippets.

@alecxe
Created January 21, 2016 18:19
Show Gist options
  • Save alecxe/afcf1baf754c3265ee7b to your computer and use it in GitHub Desktop.
Save alecxe/afcf1baf754c3265ee7b to your computer and use it in GitHub Desktop.
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