from pathlib import Path
from datetime import datetime, timedelta# Pathlib for cross-platform file paths (no Windows backslash bugs):
report_path = Path("reports") / "test_summary.html"
# Generating unique test email:
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
user_email = f"test_{timestamp}@targetqa.com"
# List comprehension to clean extracted table values:
raw_cells = [" Row 1 ", " Row 2 ", " "]
clean_cells = [c.strip() for c in raw_cells if c.strip()]