MenuUItest changes to the way we get handle to cmp

@bug W-2234265@
Merging origin/rshah/master-pending-MenuUITest into master