Skip to content

Commit

Permalink
Enhanced test_mouse_move.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Pratmarty committed Mar 30, 2021
1 parent c1b75ef commit cc81417
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pywinauto_recorder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Pywinauto recorder uses accessibility technologies via the Pywinauto_ library.
"""

__version__ = "0.4.0"
__version__ = "0.4.1"

from .player import *
from .recorder import Recorder
Expand Down
8 changes: 8 additions & 0 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,20 @@ def test_mouse_move(self):
""" Tests the precision of the relative coordinates in an element"""
with Window("Untitled - Paint||Window"):
find().set_focus()

left_click("*->||Custom->Home||Custom->Image||ToolBar->Resize||Button")
with Region("Resize and Skew||Window"):
left_click("Pixels||RadioButton")
left_click("Resize Horizontal||Edit")
set_text("Resize Horizontal||Edit", "1900")

left_click("*->||Custom->Home||Custom->Tools||ToolBar->Pencil||Button")
send_keys("{VK_LWIN down}""{VK_UP}""{VK_LWIN up}")
wrapper = move("||Pane->Using Pencil tool on Canvas||Pane")

time.sleep(1)
recorder = Recorder()
recorder.relative_coordinate_mode = True
recorder.start_recording()
time.sleep(2.0)
for i in range(9):
Expand Down

0 comments on commit cc81417

Please sign in to comment.