fix websample and add wait_for_value to wdriver.py