10 use Magento\Mtf\Client\Locator;
11 use Magento\Mtf\Fixture\FixtureInterface;
12 use Magento\Mtf\Client\Element\SimpleElement;
25 private $templateBlockSelector =
'./ancestor::body';
35 public function fill(FixtureInterface $fixture, SimpleElement
$element =
null, array $replace =
null)
40 $sections = $this->
prepareData($sections, $replace);
42 return $this->fillContainers($sections,
$element);
54 foreach ($replace as $tabName =>
$fields) {
55 foreach (
$fields as $key => $pairs) {
56 if (isset($tabs[$tabName][$key])) {
57 $tabs[$tabName][$key][
'value'] = str_replace(
60 $tabs[$tabName][$key][
'value']
76 $this->waitForElementVisible($this->header);
77 $this->getTemplateBlock()->waitLoader();
85 private function getTemplateBlock()
87 return $this->blockFactory->create(
89 [
'element' => $this->_rootElement->find($this->templateBlockSelector, Locator::SELECTOR_XPATH)]