Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
fix(AXClasses): call correct method with getElementAtPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
daveenguyen committed Mar 27, 2019
1 parent 2b967f7 commit 4438bb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion atomacos/AXClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def getElementAtPosition(self, coord):
If self is behind other windows, this function will return self.
"""
return self._getElementAtPosition(float(coord[0]), float(coord[1]))
return self.get_element_at_position(float(coord[0]), float(coord[1]))

def activate(self):
"""Activate the application (bringing menus and windows forward)"""
Expand Down
2 changes: 1 addition & 1 deletion tests/test_atomacos.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def test_element_at_current_position(self, front_title_ui):
position.x + size.width / 2.0,
position.y + size.height / 2.0,
)
element_at_position = system_ref.get_element_at_position(center_x, center_y)
element_at_position = system_ref.getElementAtPosition((center_x, center_y))
assert element_at_position == front_title_ui

def test_get_empty_field(self, finder_app):
Expand Down

0 comments on commit 4438bb3

Please sign in to comment.