Created
July 8, 2015 15:03
-
-
Save adamhavel/a51335b9f3e4e9a23376 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var scope = angular.element('[ng-switch="gridView"]').scope(); | |
var delButton = document.body.querySelector('#contentAction_delete_myx'); | |
var okButton; | |
function deleteItems() { | |
for (var i = 0; i < 10; i++) { | |
scope.onSelect(i); | |
}; | |
scope.$apply(); | |
delButton.click(); | |
okButton = document.body.querySelector('#dialogButton_ok_myx'); | |
okButton.click(); | |
setTimeout(function() { | |
okButton = document.body.querySelector('#dialogButton_ok_myx'); | |
okButton.click(); | |
deleteItems(); | |
}, 5000); | |
} | |
deleteItems(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment