Additions to UI test steps

What's the reason for this & the `gsub` in `element_has_id` versus the `"([^"]*)"` pattern used in some other definitions?