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
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:
driver.mouse.moveTo(element: element)
The error message is as follows:
{value: {error: invalid argument, message: 值不能为 null。 参数名: value, stacktrace: InvalidArgumentError: 值不能为 null。 参数名: value at errorFromW3CJsonCode (C:\Users\Administrator\AppData\Roaming\nvm\v22.3.0\node_modules\appium\node_modules\@appium\base-driver\lib\protocol\errors.js:1112:25) at ProxyRequestError.getActualError (C:\Users\Administrator\AppData\Roaming\nvm\v22.3.0\node_modules\appium\node_modules\@appium\base-driver\lib\protocol\errors.js:981:14) at WADProxy.proxyReqRes (C:\Users\Administrator\AppData\Roaming\nvm\v22.3.0\node_modules\appium\node_modules\@appium\base-driver\lib\jsonwp-proxy\proxy.js:410:58) at processTicksAndRejections (node:internal/process/task_queues:95:5)}}
Appium server log is as follows:
[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
Thers is same problem when I try to use mouseUp/mouseDown method. How can I solve this problem?
Thanks.
😱
The text was updated successfully, but these errors were encountered:
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.
😱
The text was updated successfully, but these errors were encountered: