kastldratza/zoomrec

Unable to join Meeting: Does not find "Join a Meeting" button

Hamza-Kamran opened this issue · 1 comments

Describe the bug
No matter how long I wait, I am unable to join a meeting. Zoom Window opens but Pyautogui is unable to detect the "Join a Meeting" button.

To Reproduce
Steps to reproduce the behavior:

  1. Modify the given docker file by adding: apt-get install --no-install-recommends -y gnome-screenshot && \ to install gnome-screenshot for recent versions of PIL >= 9.2.0
  2. In the requirements.txt file, change pillow>=8. 1.0 to pillow>=9.2.0
  3. In join_meeting_id(meet_id) function add a minimum search time for pyautogui locateCenterOnScreen: pyautogui.locateCenterOnScreen(os.path.join(IMG_PATH, img_name), minSearchTime=2, confidence=0.9)
  4. Build an image with the new changes
  5. Run the container with docker run -d --restart unless-stopped \ -e DEBUG=True \ -v $(pwd)/recordings:/home/zoomrec/recordings \ -v $(pwd)/example/audio:/home/zoomrec/audio \ -v $(pwd)/example/meetings.csv:/home/zoomrec/meetings.csv:ro \ -p 5901:5901 \ --security-opt seccomp:unconfined \ <IMAGE_NAME>

Expected behavior
Expect zoom window to open and the "Join a Meeting" button to be clicked

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10 Education with WSL

seems the confidence scores are off. I was able to resolve this error by changing the code in zoomrec.py with a try except block.
try: result = pyautogui.locateCenterOnScreen(os.path.join(IMG_PATH, img_name), minSearchTime=2, confidence=0.6) x, y = result pyautogui.click(x, y) found_join_meeting = True except Exception as e: logger.info("Unable to join meeting yet..Wait 1 sec")
Seems the confidence isnt greater than 0.7 no matter what.