Skip to content

Commit

Permalink
add delay between mouse action
Browse files Browse the repository at this point in the history
  • Loading branch information
XVs32 committed Jan 14, 2024
1 parent 6120707 commit a1fced4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kcauto/util/kca.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,8 @@ def hover(self, region):
is InteractionModeEnum.CHROME_DRIVER):
self._chrome_driver_hover_method(r)

self.sleep(0.5)

def click(self, region, pad=(0, 0, 0, 0)):
"""Helper method that clicks a passed in region. The pad parameter
allows for further tweaking of the valid click region.
Expand All @@ -566,6 +568,8 @@ def click(self, region, pad=(0, 0, 0, 0)):
is InteractionModeEnum.CHROME_DRIVER):
self._chrome_driver_click_method(r, pad)

self.sleep(0.5)

def click_existing(
self, region, asset, similarity=DEFAULT, pad=(0, 0, 0, 0),
cached=False):
Expand Down

0 comments on commit a1fced4

Please sign in to comment.