/** * {@inheritdoc} */ public function clickPayButtonForGivenPayment(PaymentInterface $payment) { $table = $this->getElement('table'); $row = $this->tableAccessor->getRowWithFields($this->getElement('table'), ['#' => $payment->getId()]); $actions = $this->tableAccessor->getFieldFromRow($table, $row, 'Action'); $actions->clickLink('Pay'); }
/** * {@inheritdoc} */ public function getUsedThemeName($channelCode) { $table = $this->getDocument()->find('css', 'table'); $row = $this->tableAccessor->getRowWithFields($table, ['code' => $channelCode]); return trim($this->tableAccessor->getFieldFromRow($table, $row, 'theme')->getText()); }