Skip to content

Commit

Permalink
Refactored mouse left click and mouse left double click.
Browse files Browse the repository at this point in the history
Modified new keywords:
mouse click
mouse double click
  • Loading branch information
eeromakiesko authored and eeter committed Feb 7, 2019
1 parent 14f5623 commit 1583708
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions atests/feature_tests/mouse.robot
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ Verify Mouse Right Click
Sleep 2
Verify Label selectionIndicatorLabel right button up

Verify Mouse Left Click
Verify Mouse Click
Click Item event_label
Sleep 2
Mouse Left Click
Mouse Click
Sleep 2
Verify Label selectionIndicatorLabel left button up

Expand All @@ -61,14 +61,14 @@ Verify Mouse Right Double Click
Sleep 2
Verify Label selectionIndicatorLabel right button up

Verify Mouse Left Double Click
Verify Mouse Double Click
Click Item event_label
Sleep 2
Mouse Left Double Click
Mouse Double Click
Sleep 2
Verify Label selectionIndicatorLabel left button up

Verify Incomplete Mouse Position Exception
${status} ${error_msg} Run Keyword And Ignore Error Mouse Left Click 300
${status} ${error_msg} Run Keyword And Ignore Error Mouse Click 300
${MOUSE_X} ${MOUSE_Y} Get Mouse Location
Should Contain ${error_msg} Either x or y value missin
Should Contain ${error_msg} Either x or y value missing
4 changes: 2 additions & 2 deletions src/WhiteLibrary/keywords/items/mouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def mouse_right_click(self, x=None, y=None):
Mouse.Instance.RightClick()

@keyword
def mouse_left_click(self, x=None, y=None):
def mouse_click(self, x=None, y=None):
"""Left clicks mouse at given position.
Position (``x``, ``y``) is relative to application window top left.
Expand Down Expand Up @@ -115,7 +115,7 @@ def mouse_right_double_click(self, x=None, y=None):
Mouse.Instance.RightClick()

@keyword
def mouse_left_double_click(self, x=None, y=None):
def mouse_double_click(self, x=None, y=None):
"""Left double clicks mouse at given position.
Position (``x``, ``y``) is relative to application window top left.
Expand Down

0 comments on commit 1583708

Please sign in to comment.