Updated the click, commit, submit click function with wrapper to check for page not found errors
Done with re-factoring the code for using the wrapper function for click, commit and submit. Tested all the code to make sure it is not broken