Added pressButton() method