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
@@ -31,8 +31,7 @@ func (we wdaElement) SendKeys(text string, options ...DataOption) (err error) {
"value": strings.Split(text, ""),
}
// new data options in post data for extra uiautomator configurations
d := NewData(options...)
d.MergeData(data)
d := NewData(data, options...)
_, err = we.parent.httpPOST(d.Data, "/session", we.parent.sessionId, "/element", we.id, "/value")
return