Skip to content

Commit

Permalink
fix hovering bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Cybergenik committed Mar 26, 2022
1 parent 6e35c96 commit 818b26c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bot/screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ async def __cached_screenshot(self, name:str, action:str) -> BytesIO:
await page.click("//html/body/div[1]/div[1]/div[1]")
else:
return None
await page.mouse.move(0, 0)
except Exception as e:
print(f'Error in Cached Screenshot at: {url} :\n {e}')
await page.close()
Expand Down Expand Up @@ -85,6 +86,7 @@ async def get_screenshot(self, name:str, action:str, prefix: str) -> BytesIO:
await page.click("//html/body/div[1]/div[5]/div[2]")
else:
return None
await page.mouse.move(0, 0)
except Exception as e:
print(f'Error in Screenshot at: {url} :\n {e}')
await page.close()
Expand Down

0 comments on commit 818b26c

Please sign in to comment.