示例#1
0
 /**
  * {@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');
 }
示例#2
0
 /**
  * {@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());
 }