I am currently trying to determine how to automatically click on all elements that have a specific state. The page appears to be built using Angular, although I am unsure of the exact version being used. My approach involves using the console in Chrome to run JavaScript code that will simulate clicking on elements where the ng-if condition is equal to !isFollowing
.
<div class="follow-button ng-scope" ng-if="Auth.user._id && Auth.user._id != follower._id">
<!-- ngIf: !isFollowing -->
<a ng-if="!isFollowing" ng-click="follow()" class="ng-scope md-ideaspark-theme"> Follow</a>
<!-- end ngIf: !isFollowing -->
<!-- ngIf: isFollowing -->
</div>