diff --git a/src/Appium.Net/Appium/AppiumElement.cs b/src/Appium.Net/Appium/AppiumElement.cs index 601d3fed6..950010121 100644 --- a/src/Appium.Net/Appium/AppiumElement.cs +++ b/src/Appium.Net/Appium/AppiumElement.cs @@ -203,6 +203,9 @@ public void Rotate(Dictionary opts) public void SetImmediateValue(string value) => Execute(AppiumDriverCommand.SetValue, new Dictionary() { ["id"] = Id, ["value"] = value }); + public void ReplaceValue(string value) => Execute(AppiumDriverCommand.ReplaceValue, + new Dictionary() { ["id"] = Id, ["value"] = value }); + public new Response Execute(string commandName, Dictionary parameters) => base.Execute(commandName, parameters); diff --git a/test/integration/Android/ElementTest.cs b/test/integration/Android/ElementTest.cs index 3339c46fb..b704b5a56 100644 --- a/test/integration/Android/ElementTest.cs +++ b/test/integration/Android/ElementTest.cs @@ -96,8 +96,7 @@ public void ReplaceValueTest() Assert.AreEqual(originalValue, editElement.Text); - /////// TODO: Implement - // editElement.ReplaceValue(replacedValue); + editElement.ReplaceValue(replacedValue); Assert.AreEqual(replacedValue, editElement.Text); }