We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d70788e commit 39c3642Copy full SHA for 39c3642
sample/Tests/test/test_windows.py
@@ -51,9 +51,12 @@ def test_1_device_code_login(self):
51
if attempt == 0:
52
# Reset app
53
54
- # Relogin
+ # Relogin (optional: only if the button is present)
55
print("Try reset the app and log out once...")
56
- self.altdriver.wait_for_object(By.NAME, "ReloginBtn").tap()
+ try:
57
+ self.altdriver.wait_for_object(By.NAME, "ReloginBtn").tap()
58
+ except Exception as e:
59
+ print("ReloginBtn not found, skipping relogin step. User may already be in AuthenticatedScene.")
60
61
# Wait for authenticated screen
62
self.altdriver.wait_for_current_scene_to_be("AuthenticatedScene")
0 commit comments