Get KM to click on AngularJS buttons in Safari (or any web browser)

Hi,

I can't get KM to click on some buttons on the webpage I'm trying to automate (a boring accounting webapp written in AngularJS).

Even the "Move or Click Mouse" action doesn't actuate the button (the pointer goes where it's supposed to go but nothing happens).

I also tried to use some js but it looks like AngularJS buttons don't have a .click method (and I don't know much about js and near to nothing about AngularJS)

In Safari's inpector, the button's code looks like this:

<button class="btn wizard-btn btn-primary btn-margin-right ng-binding" ng-click="vm.importPdf()" ng-disabled="vm.BusinessUnit.Id == 0 || !vm.isAllowedType(vm.importType)" ng-hide="vm.isIOS" type="button">
<span class="fa fa-file-pdf-o">
::before
</span>
" Tuo PDF"
</button>

What I eventually would like to do is to have this vm.importPdf() method run so that I can pass it files.

Thanks for your help!

-Guillaume

You can try something like:

Move Mouse to desired location
Pause
Click and Hold at current location
Pause
Release

It may be that it is not sensing the click because the moment is too fast.

Other than that, you might have to figure out how to simulate the click within the JavaScript, although I don't see how the click would fail to work.

Thanks!

that worked.