Clicks a button on the left menu (Search, Browse, Trash).

@param string $buttonName
358101
public function clickButton(string $buttonName)
    {
        $this->context->getElementByText($buttonName, $this->fields['buttonSelector'])->click();
    }
1028627
public function flushQueue(string $connectionName = null)
    {
        if (empty($this->queues)) {
            return;
        }

        if ($connectionName === null) {
            foreach ($this->queues as $queueConnectionName => $queue) {
                $this->flushQueueItem($queueConnectionName, $queue);
            }
        } elseif (array_key_exists($connectionName, $this->queues)) {
            $this->flushQueueItem($connectionName, $this->queues[$connectionName]);
        }
    }
322297
public function addButtonButton(string $name) : Element\Button\Button
    {
        $button = new Element\Button\Button($this, $name);
        $this->addComponent($name, $button);

        return $button;
    }
435456
private function sortListeners(string $eventName)
    {
        krsort($this->listeners[$eventName]);
        $this->sorted[$eventName] = [];

        foreach ($this->listeners[$eventName] as &$listeners) {
            foreach ($listeners as $k => $listener) {
                if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure) {
                    $listener[0] = $listener[0]();
                }
                $this->sorted[$eventName][] = $listener;
            }
        }
    }
803495
protected function click($name)
    {
        $link = $this->crawler()->selectLink($name);

        if (! count($link)) {
            $link = $this->filterByNameOrId($name, 'a');

            if (! count($link)) {
                throw new InvalidArgumentException(
                    "Could not find a link with a body, name, or ID attribute of [{$name}]."
                );
            }
        }

        $this->visit($link->link()->getUri());

        return $this;
    }
754073
public function click($xpath) {
    $elements = $this->findElement($xpath, 1);
    $this->browser->click($elements["page_id"], $elements["ids"][0]);
  }
208794
protected function addBottomResetButton()
    {
        /** @var Button $btn */
        $btn = $this->addButton($this->bottomLocation, $this->resetButtonKey, URL::current());
        $btn->text('清空');
    }
357568
public function clickListElement(string $name): void
    {
        $this->context->getElementByText($name, $this->fields['listElement'])->click();
    }
413800
public function deactivate($username)
    {
        $user = $this->findUserByUsernameOrThrowException($username);
        $user->setEnabled(false);
        $this->userManager->updateUser($user);

        $event = new UserEvent($user, $this->getRequest());
        $this->dispatcher->dispatch(Events::USER_DEACTIVATED, $event);
    }
252643
public function handleEdit(string $fileName): void
	{
		if ($this->presenter->isAjax() && $this->editable) {
			$file = $this->getFileInfo($fileName);
			if ($file->editable) {
				$this->viewFile($file);
				$form = $this['editForm'];
				$form->setDefaults([
					'id' => $file->name,
					'content' => $file->content
				]);
				$this->template->editFile = true;
			}
			$this->redrawControl('fileManagerContainer');
		} else {
			exit;
		}
	}
1098347
public function delete(string $id = null): void
    {
        $this->request->allowMethod(['post', 'delete']);
        $menuItem = $this->MenuItems->get($id);
        if ($this->MenuItems->delete($menuItem)) {
            $this->Flash->success((string)__('The menu item has been deleted.'));
        } else {
            $this->Flash->error((string)__('The menu item could not be deleted. Please, try again.'));
        }

        $this->redirect($this->referer());
    }
12837
public function clickButtonInDialog(string $buttonLinkLocator)
    {
        $I = $this->tester;
        $this->canSeeDialog();
        $I->click($buttonLinkLocator, self::$openedModalButtonContainerSelector);
        $I->waitForElementNotVisible(self::$openedModalSelector);
    }
1093549
public function pressButton($button)
    {
        // Wait for any open autocomplete boxes to finish closing.  They block
        // form-submission if they are still open.
        // Use a step 'I press the "Esc" key in the "LABEL" field' to close
        // autocomplete suggestion boxes with Mink.  "Click" events on the
        // autocomplete suggestion do not work.
        try {
            $this->getSession()->wait(1000, 'typeof(jQuery)=="undefined" || jQuery("#autocomplete").length === 0');
        } catch (UnsupportedDriverActionException $e) {
            // The jQuery probably failed because the driver does not support
            // javascript.  That is okay, because if the driver does not support
            // javascript, it does not support autocomplete boxes either.
        }

        // Use the Mink Extension step definition.
        return parent::pressButton($button);
    }
749398
public function click($cssSelector)
    {
        $element = $this->getElementByCssSelector($cssSelector);

        $this->assert($element != null, "{$cssSelector} not found on the page");

        $element->click();
    }
1052182
public function doubleClick($xpath) {
    $elements = $this->findElement($xpath, 1);
    $this->browser->doubleClick($elements["page_id"], $elements["ids"][0]);
  }
219622
function(buttonOption) {
        buttonOption = buttonOption || [];
        var bottom = this.$container.find('.biz-panel-bottom'),
            self = this;
        bottom.find('button').bizButton('destroy').off().remove();
        $.each(buttonOption, function(index, buttonOption) {
            var button = $('<button></button>').appendTo(bottom).bizButton(buttonOption);
            if (buttonOption.onClick) {
                button.click(function(e) {
                    buttonOption.onClick.call(self, e);
                });
            }
        });
    }
1175074
def buttonDown(self, button=mouse.LEFT):
        
        self._lock.acquire()
        mouse.press(button)
        self._lock.release()