I have been working on developing a chrome extension to automate form filling. The particular form I am dealing with has a next button with an ng-click attribute set to "forward()" like so-
<button type="button" ng-class="{disabled: !showNext()}" ng-click="forward()" class="btn btn-success btn-lg default pull-right" style="font-size: 18px;">Next <i class="fa fa-chevron-right white-color"></i></button>
I attempted to call
angular.element($('button.pull-right')).scope().forward()
or $('button.pull-right').scope().forward()
, and while the function runs, the view does not update. I am aware that using $('button.pull-right').click()
works, but I specifically need to bypass the click event. In order to achieve this, I aim to bind the click to a script function external to the page (which will be injected by my extension) and then trigger the forward()
function from within my script.
I spent a significant amount of time searching for solutions online without success. Requesting assistance!