dogtail: Fix tests depending on click items in the main menu