Enhancing edit test case helper methods to improve element detection and waits