/** * Custom constructor * * @return void */ protected function _init() { $this->_blocks['downloadableViewBlock'] = ['name' => 'downloadableViewBlock', 'class' => 'Magento\\Downloadable\\Test\\Block\\Catalog\\Product\\View', 'locator' => '.product-info-main', 'strategy' => 'css selector']; parent::_init(); }