change: update NewData function

This commit is contained in:
xucong.053
2022-10-17 15:29:51 +08:00
parent 299a5b2c65
commit f553755124
7 changed files with 17 additions and 37 deletions
+1 -2
View File
@@ -30,8 +30,7 @@ func (ue uiaElement) SendKeys(text string, options ...DataOption) (err error) {
}
// new data options in post data for extra uiautomator configurations
d := NewData(options...)
d.MergeData(data)
d := NewData(data, options...)
_, err = ue.parent.httpPOST(d.Data, "/session", ue.parent.sessionId, "/element", ue.id, "/value")
return