Fixing: NameError: global name 'findElement' is not defined