10 use Magento\Mtf\Block\Form;
11 use Magento\Mtf\Client\Element\SimpleElement;
12 use Magento\Mtf\Client\Locator;
13 use Magento\Mtf\Fixture\FixtureInterface;
50 if (isset(
$fields[
'website_id'])) {
53 return parent::dataMapping(
$fields, $parent);
63 $this->_rootElement->find($this->saveButton)->click();
91 foreach (array_keys(
$customer->getData()) as $field) {
92 $element = $this->_rootElement->find(sprintf($this->validationText, str_replace(
'_',
'-', $field)));
94 $messages[$field] =
$element->getText();
109 return $this->_rootElement->find(
110 $mapping[
'customer'][
'value'][
'firstname'][
'selector']
122 return $this->_rootElement->find(
123 $mapping[
'customer'][
'value'][
'lastname'][
'selector']
136 $this->_rootElement->find(
137 $mapping[
'change_email'][
'selector'],
138 $mapping[
'change_email'][
'strategy'],
140 )->setValue(
$value ?
"Yes" :
"No");
152 $this->_rootElement->find(
153 $mapping[
'change_password'][
'selector'],
154 $mapping[
'change_password'][
'strategy'],
156 )->setValue(
$value ?
"Yes" :
"No");
167 return $this->_rootElement->find(
168 $mapping[
'customer'][
'value'][
'current_password'][
'selector']
180 return $this->_rootElement->find(
181 $mapping[
'customer'][
'value'][
'password'][
'selector']
193 return $this->_rootElement->find(
194 $mapping[
'confirmation'][
'selector'],
195 $mapping[
'confirmation'][
'strategy']
207 return $this->_rootElement->find(
208 $mapping[
'customer'][
'value'][
'email'][
'selector']