Web application automation framework