Skip to content

Commit

Permalink
Update screenPath.py (#1385)
Browse files Browse the repository at this point in the history
  • Loading branch information
JabLuszko authored Sep 20, 2024
1 parent cd3fb2c commit bc213d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mapadroid/ocr/screenPath.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,10 @@ async def __handle_ptc_login(self) -> ScreenType:
exit_keyboard_y: int = 300

for item in xmlroot.iter('node'):
if "android.widget.ProgressBar" in item.attrib["class"]:
logger.warning("PTC page still loading, sleeping for extra 12 seconds")
await asyncio.sleep(12)
return ScreenType.PTC
if "Access denied" in item.attrib["text"]:
logger.warning("WAF on PTC login attempt detected")
# Reload the page 1-3 times
Expand Down

0 comments on commit bc213d8

Please sign in to comment.