How do you design an automation framework from scratch for a multi-platform application, such as mobile, web, and Smart TV?