add click_by_script function