How to automatically switch from WiFi to mobile data when no internet on WiFi?
If you have 4.4.x you can go to Settings -> Wi-Fi -> press Menu button -> Advanced Wi-Fi -> check Internet available (another possible name -  "Avoid poor connection") . That wil disconnect WiFi automatically when there is no internet in it.