I have taken a screenshot showing the specific click action I am trying to execute from the Chrome console, along with different values being passed. The button highlighted in gray at the top right can be found by inspecting the element. I am specifically interested in utilizing the savePublish()
function.
https://i.sstatic.net/01d03.png
The button element is enclosed within a
<div ng-controller="ProductEditCtrl as ctrl" .. >
container, although there are multiple controller wrappers on the page under the alias ctrl
.
My main query revolves around how I can directly access the savePublish()
method via the Chrome console. Additionally, I would appreciate any insights on how to load the ProductEditCtrl
controller and then invoke the savePublish method on a separate page.