public static void clickButtonByLabel(String text){
  if (verbose) {
    log("clickButtonByLabel(" + text + ")");
  }
  Button b=(Button)findLabelText(text);
  waitFor(20);
  b.pressed();
  waitFor(20);
  b.released();
  waitFor(20);
}

public static void clickButtonByLabel ( String text ) { if ( verbose ) { log ( "clickButtonByLabel(" + text + ")" ) ; } Button b = ( Button ) findLabelText ( text ) ; waitFor ( 20 ) ; b . pressed ( ) ; waitFor ( 20 ) ; b . released ( ) ; waitFor ( 20 ) ; }
clicks the button with the given label
