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.")
|
print("Chat direkt erreicht.")
|
||||||
except Exception:
|
except Exception:
|
||||||
# Join-Lobby or redirect — try navigating to Teams chat list instead.
|
# Join-Lobby or redirect — navigate back to Teams main.
|
||||||
# The meeting chat is accessible from Chat sidebar without joining the call.
|
# User navigates to the meeting chat via the Chat sidebar (no call join needed).
|
||||||
print("Join-Lobby erkannt — navigiere zur Chat-Übersicht...")
|
print("Join-Lobby erkannt — bitte im Browser zum Chat navigieren:")
|
||||||
page.goto(TEAMS_URL + "/#/conversations/")
|
print(" Linke Sidebar → Chat (Icon) → laufendes Meeting anklicken\n")
|
||||||
try:
|
page.goto(TEAMS_URL)
|
||||||
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")
|
|
||||||
else:
|
else:
|
||||||
print("\nBitte im Browser-Fenster zum Meeting-Chat navigieren:")
|
print("\nBitte im Browser-Fenster zum Meeting-Chat navigieren:")
|
||||||
print(" Linke Sidebar → Chat → laufendes Meeting anklicken\n")
|
print(" Linke Sidebar → Chat → laufendes Meeting anklicken\n")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user