I run my tests which complete an Action for an object based on the action passed in to the main function which is called ObjectInteraction and in here we pass in the object, find the type of object and then pass in the Action to perform on that object (Ex: Click). This action is in a Case statement and once it finds the Action to perform in the Case statement it excutes the line within it.
Now that is all fine, but once in a while the action does not execute and I get an error in the log the object does not exist or some other error. It then tries to execute every Case option following that correct one that failed.
This should not happen. It should go to End Select and not go into every other Case option that does NOT match the Action passed in.