Skip to content

Click on App is not done at middle of the element #2608

@lucashimpens

Description

@lucashimpens

For APP (Android and iOS), the click seem to be done on the top left corner of the element defined by xpath and, sometimes, Cerberus says it click on the element but no action is performed. For the web, all seems to be OK.

I notice that when we calculate the coords (AppiumService.java line 216), we never calculate the middle of X and Y when we don't have offset configured in Cerberus. When no offset defined on Cerberus side, it's not null and equals to 0, so we never add the half of the length, but 0, that means we stay to the top left corner (rect.getX() + 0)

Image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions