You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Calling WebElement.clear() on an input element does not appear to update the associated model.
View:
<input ng-model="foo">
<div>{{foo}}</div>
Spec:
it("should update the model", function(){
var input = element(by.css("input"));
input.sendKeys("bar");
input.clear();
expect(element(by.css("div")).getInnerHtml()).toBe(""); // Fails, because it's still "bar"
});