9 use Magento\Mtf\Client\Locator;
22 private $authorizenetForm = [
23 "cc_number" =>
"//*[@id='authorizenet_directpost_cc_number']",
24 "cc_exp_month" =>
"//*[@id='authorizenet_directpost_expiration']",
25 "cc_exp_year" =>
"//*[@id='authorizenet_directpost_expiration_yr']",
26 "cc_cid" =>
"//*[@id='authorizenet_directpost_cc_cid']",
36 return $this->_rootElement->find($this->authorizenetForm[
'cc_number'], Locator::SELECTOR_XPATH)->getValue();
46 return $this->_rootElement->find($this->authorizenetForm[
'cc_exp_month'], Locator::SELECTOR_XPATH)->getValue();
56 return $this->_rootElement->find($this->authorizenetForm[
'cc_exp_year'], Locator::SELECTOR_XPATH)->getValue();
66 return $this->_rootElement->find($this->authorizenetForm[
'cc_cid'], Locator::SELECTOR_XPATH)->getValue();