# Take screenshot at key pointssend_message(session_id, "Add item to cart")time.sleep(5)screenshot, info = get_screenshot(session_id)screenshot.save("after_add_to_cart.jpg")print(f"Currently on: {info['title']}")
# Verify successful form submissionsend_message(session_id, "Submit the contact form")time.sleep(3)screenshot, info = get_screenshot(session_id)# Check if on success pageif "success" in info['url'].lower() or "thank" in info['title'].lower(): print("Form submitted successfully")else: print("Submission may have failed")