/** * Add custom attribute to product. * * @return void */ public function run() { $productForm = $this->catalogProductEdit->getFormPageActions(); $productForm->addNewAttribute(); $this->catalogProductEdit->getAddAttributeModal()->createNewAttribute(); }