1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 05:08:19 +08:00

Fix: Cannot use xpath in appear_then_click

This commit is contained in:
LmeSzinc
2022-07-27 01:11:50 +08:00
parent 02ea711144
commit a72b99ac8d

View File

@@ -102,6 +102,7 @@ class ModuleBase:
return appear
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)
if appear:
if screenshot: