mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 06:18:21 +08:00
Fix: Cannot use xpath in appear_then_click
This commit is contained in:
@@ -102,6 +102,7 @@ class ModuleBase:
|
|||||||
return appear
|
return appear
|
||||||
|
|
||||||
def appear_then_click(self, button, screenshot=False, genre='items', offset=0, interval=0, threshold=None):
|
def appear_then_click(self, button, screenshot=False, genre='items', offset=0, interval=0, threshold=None):
|
||||||
|
button = self.ensure_button(button)
|
||||||
appear = self.appear(button, offset=offset, interval=interval, threshold=threshold)
|
appear = self.appear(button, offset=offset, interval=interval, threshold=threshold)
|
||||||
if appear:
|
if appear:
|
||||||
if screenshot:
|
if screenshot:
|
||||||
|
|||||||
Reference in New Issue
Block a user