Click the button with the given label.
763533
def press_button(self, value):
    
    button = find_button(world.browser, value)
    if not button:
        raise AssertionError(
            "Cannot find a button named '{}'.".format(value))
    button.click()
491208
def setLabel(self, value, label):
        
        if label:
            self._labels[value] = label
        else:
            self._labels.pop(value, None)
474329
public void setLabel(String label) {
		final boolean entryExitLogging = log.isLoggable(Level.FINER);
		final String methodName = "setLabel"; //$NON-NLS-1$
		if (entryExitLogging) {
			log.entering(DependencyList.class.getName(), methodName, new Object[]{label});
		}
		this.label = label;
		if (entryExitLogging) {
			log.exiting(DependencyList.class.getName(), methodName);
		}
	}
622932
function(labelNode) {
			labelNode.id = this._dropdownTriggerButtonLabel.id;
			this._dropdownTriggerButton.replaceChild(labelNode, this._dropdownTriggerButtonLabel);
			this._dropdownTriggerButtonLabel = labelNode;
		}
1263265
function () {
            this.$Input._init.call(this);
            var label = this.getLabel();
            if (label) {
                ariaUtilsEvent.addListener(label, "click", {
                    fn : this._onLabelClick,
                    scope : this
                });
            }
        }
739457
def _on_click(self, *args):
        
        if callable(self._callback):
            self._callback(self.selection)
969070
@Override
    public void visitLabel(Label label) {
        if (enabled && handlers.containsKey(label)) {
            handlerPendingInstruction = label;
        }
        super.visitLabel(label);
    }
1016394
public void setLabel(final String label) {
        if (label != null)
            attrMixin.setAttribute(LABEL, label);
        else
            attrMixin.removeAttribute(LABEL);
    }
829703
public void setStatementLabel(String label) {
        if (statementLabels == null) statementLabels = new LinkedList<String>();
        statementLabels.add(label);
    }
1175990
def button_with_label(self, description, assistants=None):
        
        btn = self.create_button()
        label = self.create_label(description)
        if assistants is not None:
            h_box = self.create_box(orientation=Gtk.Orientation.VERTICAL)
            h_box.pack_start(label, False, False, 0)
            label_ass = self.create_label(
                assistants, justify=Gtk.Justification.LEFT
            )
            label_ass.set_alignment(0, 0)
            h_box.pack_start(label_ass, False, False, 12)
            btn.add(h_box)
        else:
            btn.add(label)
        return btn
133879
public static JButton createActionButton (String label, String command)
    {
        JButton button = new JButton(label);
        configureAction(button, command);
        return button;
    }
376471
public void pushLoop(String labelName) {
        pushState();
        continueLabel = new Label();
        breakLabel = new Label();
        initLoopLabels(labelName);
    }
1253281
public void setLabel(String label) {

        int ix = lstSizes.indexOf(label);
        if (ix != -1) {
            setLabel(ix);
        }
    }
1214346
public void click() {
        String cantClick = "Unable to click ";
        String action = "Clicking " + prettyOutput();
        String expected = prettyOutputStart() + " is present, displayed, and enabled to be clicked";
        try {
            if (isNotPresentDisplayedEnabled(action, expected, cantClick)) {
                return;
            }
            WebElement webElement = getWebElement();
            webElement.click();
        } catch (Exception e) {
            reporter.fail(action, expected, cantClick + prettyOutputEnd() + e.getMessage());
            log.warn(e);
            return;
        }
        reporter.pass(action, expected, "Clicked " + prettyOutputEnd().trim());
    }
1135621
def click_button_with_value(value, opts={})
        if opts && opts[:index]
          wait_before_and_after { button(:value => value, :index => opts[:index]).click }
        else
          wait_before_and_after { button(:value, value).click }
        end
    end
233937
private void addLabelHoverHandler(Label label) {

        removeLabelHoverHandler();
        LabelHoverHandler hoverHandler = new LabelHoverHandler();
        m_labelOutRegistration = label.addMouseOutHandler(hoverHandler);
        m_labelOverRegistration = label.addMouseOverHandler(hoverHandler);
    }
1359138
def _on_click(self, event):
        
        if callable(self.__callback):
            self.__callback(self.selection)