[7a3b8c3e][HTTP] --> POST /session/7a3b8c3e-0625-4d5f-814a-e8c3e5666634/actions {"actions":[{"type":"pointer","id":"mouses","actions":[{"type":"pointerMove","origin":{"element-6066-11e4-a52e-4f735466cecf":"42.5703722.4.66"},"x":0,"y":0}]}]}
[7a3b8c3e][WindowsDriver@a069] Driver proxy active, passing request on via HTTP proxy
[7a3b8c3e][WindowsDriver@a069] Matched '/session/7a3b8c3e-0625-4d5f-814a-e8c3e5666634/actions' to command name 'performActions'
[7a3b8c3e][WindowsDriver@a069] Proxying [POST /session/7a3b8c3e-0625-4d5f-814a-e8c3e5666634/actions] to [POST http://127.0.0.1:4724/wd/hub/session/3233F4FF-908D-4FD4-884A-C08AE14398CA/actions] with body: {"actions":[{"type":"pointer","id":"mouses","actions":[{"type":"pointerMove","origin":{"ELEMENT":"42.5703722.4.66","element-6066-11e4-a52e-4f735466cecf":"42.5703722.4.66"},"x":0,"y":0}]}]}
[7a3b8c3e][WindowsDriver@a069] ==========================================
POST /wd/hub/session/3233F4FF-908D-4FD4-884A-C08AE14398CA/actions HTTP/1.1
Accept: application/json, */*
Accept-Encoding: gzip, compress, deflate, br
Connection: keep-alive
Content-Length: 188
Content-Type: application/json; charset=utf-8
Host: 127.0.0.1:4724
User-Agent: appium
{"actions":[{"type":"pointer","id":"mouses","actions":[{"type":"pointerMove","origin":{"ELEMENT":"42.5703722.4.66","element-6066-11e4-a52e-4f735466cecf":"42.5703722.4.66"},"x":0,"y":0}]}]}
[7a3b8c3e][WindowsDriver@a069] HTTP/1.1 400 Bad Request
Content-Length: 104
Content-Type: application/json
{"status":100,"value":{"error":"invalid argument","message":"值不能为 null。\r\n参数名: value"}}
[7a3b8c3e][WindowsDriver@a069] Got response with status 400: {"status":100,"value":{"error":"invalid argument","message":"值不能为 null。\r\n参数名: value"}}
[7a3b8c3e][W3C] Matched W3C error code 'invalid argument' to InvalidArgumentError
[7a3b8c3e][HTTP] <-- POST /session/7a3b8c3e-0625-4d5f-814a-e8c3e5666634/actions 400 103 ms - 728
Environment
Detail
I attempted to perform automated testing on the Windows 10 calculator software, and I encountered an error when trying to use the moveTo method from w3c/mouse.dart to move the mouse to a specified location.
The code is as follows:
The error message is as follows:
Appium server log is as follows:
Thers is same problem when I try to use mouseUp/mouseDown method. How can I solve this problem?
Thanks.
😱