Skip to content

Joining error failing fix #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions bots/teams_bot_adapter/teams_ui_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ def attempt_to_join_meeting(self):

self.fill_out_name_input()

# Check if the mic is off and turn it on if needed
logger.info("Checking if the microphone is off...")
mic_off_button = self.find_element_by_selector(By.XPATH, "//div[@data-cid='toggle-mute-false']//div[contains(@class, 'ui-checkbox__indicator')]")
if mic_off_button:
logger.info("Microphone is OFF. Clicking to turn it ON.")
self.click_element(mic_off_button, "mic_toggle_button")
else:
logger.info("Microphone is already ON. No action needed.")

logger.info("Waiting for the Join now button...")
join_button = self.locate_element(step="join_button", condition=EC.presence_of_element_located((By.CSS_SELECTOR, '[data-tid="prejoin-join-button"]')), wait_time_seconds=10)
logger.info("Clicking the Join now button...")
Expand Down