We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d77d08 commit a76f797Copy full SHA for a76f797
2 files changed
sample/Tests/test/test_windows.py
@@ -7,6 +7,7 @@
7
These tests require proper authentication URL logging to work correctly.
8
"""
9
10
+import os
11
import time
12
import unittest
13
@@ -108,7 +109,12 @@ def _perform_login(self):
108
109
stop_browser()
110
if attempt == 0:
111
print(f"Login attempt 1 failed: {err}")
- print("Retrying login...")
112
+ print("Retrying login... clearing browser data for fresh session")
113
+ import shutil
114
+ brave_data = r"C:\temp\brave_debug"
115
+ if os.path.exists(brave_data):
116
+ shutil.rmtree(brave_data, ignore_errors=True)
117
+ print("Cleared browser user data to avoid cached session issues")
118
time.sleep(5)
119
bring_sample_app_to_foreground()
120
else:
0 commit comments