fix: remove broken hash-URL navigation, stay on Teams main as fallback
This commit is contained in:
parent
a4727454b9
commit
8c91d8839e
18
main.py
18
main.py
@ -97,19 +97,11 @@ def main():
|
||||
)
|
||||
print("Chat direkt erreicht.")
|
||||
except Exception:
|
||||
# Join-Lobby or redirect — try navigating to Teams chat list instead.
|
||||
# The meeting chat is accessible from Chat sidebar without joining the call.
|
||||
print("Join-Lobby erkannt — navigiere zur Chat-Übersicht...")
|
||||
page.goto(TEAMS_URL + "/#/conversations/")
|
||||
try:
|
||||
page.wait_for_selector(
|
||||
"[data-tid='channel-pane-message'], [data-tid='chat-pane-message']",
|
||||
timeout=5000,
|
||||
)
|
||||
print("Chat erkannt.")
|
||||
except Exception:
|
||||
print("Bitte im Browser-Fenster zum laufenden Meeting-Chat navigieren:")
|
||||
print(" Linke Sidebar → Chat → laufendes Meeting anklicken\n")
|
||||
# Join-Lobby or redirect — navigate back to Teams main.
|
||||
# User navigates to the meeting chat via the Chat sidebar (no call join needed).
|
||||
print("Join-Lobby erkannt — bitte im Browser zum Chat navigieren:")
|
||||
print(" Linke Sidebar → Chat (Icon) → laufendes Meeting anklicken\n")
|
||||
page.goto(TEAMS_URL)
|
||||
else:
|
||||
print("\nBitte im Browser-Fenster zum Meeting-Chat navigieren:")
|
||||
print(" Linke Sidebar → Chat → laufendes Meeting anklicken\n")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user