Update alert.rb

use wait_true because execute_script return true or false