2gis / Winium.Desktop

Winium.Desktop is Selenium Remote WebDriver implementation for automated testing of Windows application based on WinFroms and WPF platforms.
Mozilla Public License 2.0
402 stars 140 forks source link

Use click with offcet by a certain value #228

Open krigsmahtana opened 6 years ago

krigsmahtana commented 6 years ago

Hi! I hope you can help me. I found element by ID or name and click them.

 [INFO] COMMAND findChildElement
{  "id": "5835324-1",
  "using": "name",
  "value": "7",
  "SESSIONID": "AwesomeSession",
  "ID": "5835324-1"}
 [DEBUG] RESPONSE:
OK: {  "sessionId": "AwesomeSession",
  "status": 0,
  "value": {    "ELEMENT": "986474-3" }}
[INFO] COMMAND clickElement
{
  "id": "986474-3",
  "SESSIONID": "AwesomeSession",
  "ID": "986474-3"
}
Click on 'type: ControlType.Button, uid: 137, name: 7' element at (-867, 345) ClickablePoint

But actually - pressing occurs with offset by a certain value. And I click to another button. What that is value? I cant found about it. I checked the location (-867, 345) of the elements by SPY (and etc), but it is not my.

netzulo commented 6 years ago

same noob question for me please, can clarify this response at documentation ? :)

started with --verbose i get the same error

18:02:14 [DEBUG] Waiting for a connection...
18:02:22 [DEBUG] ACCEPTED REQUEST POST /session/AwesomeSession/element/264981-223/click HTTP/1.1
18:02:22 [INFO] COMMAND clickElement
{
  "id": "264981-223",
  "sessionId": "AwesomeSession",
  "SESSIONID": "AwesomeSession",
  "ID": "264981-223"
}
18:02:22 [DEBUG] Element 'type: ControlType.Button, name: BlackDesert64.exe: 1 ventana en ejecución' not have ClickablePoint
18:02:23 [INFO] Click on 'type: ControlType.Button, name: BlackDesert64.exe: 1 ventana en ejecución' element at (-1271, 1205) BoundingRectangle center
18:02:23 [DEBUG] RESPONSE:
OK: {
  "sessionId": "AwesomeSession",
  "status": 0,
  "value": null
}
18:02:23 [DEBUG] Client closed

18:02:23 [DEBUG] Waiting for a connection...