Issue #2269287 by steven.wichers: PressButton method assumes jQuery is available.

Signed-off-by: Jonathan Hedstrom <jhedstrom@gmail.com>